• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

supabase / cli / 40521826005
47%
develop: 46%

Build:
Build:
LAST BUILD BRANCH: gh-readonly-queue/develop/pr-7380-74d4774766936b6e6141a58d061c3396a01c85c9
DEFAULT BRANCH: develop
Ran 27 Oct 2026 02:32PM UTC
Jobs 1
Files 119
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

27 Oct 2026 02:30PM UTC coverage: 46.568%. Remained the same
40521826005

push

github

web-flow
fix(stack): reuse the Deno cache when booting Edge Function workers (#7347)

## Summary

In stack mode, Edge Functions that boot at the same time can fail with
`503 BOOT_ERROR`. The logs show `Failed caching npm package … File
exists (os error 17)`, or `No such file or directory` when reading a
cached package file. This sets `noModuleCache: false` when the stack
bootstrap creates user workers, which is what classic `functions serve`
already does.

### What's going on

`noModuleCache: true` puts the worker's Deno cache into reload mode.
Each worker builds its own npm cache, so nothing is shared between
workers, and each one downloads every npm package it imports again. When
that package is already in the shared `DENO_DIR`, Deno extracts it again
in place, over the live copy, deleting and recreating each file. Two
workers doing that at the same time collide, and a worker that reads a
file in the middle of it finds it missing.

```mermaid
flowchart TD
  boot["Worker boots and imports npm:pkg"] --> flag{"noModuleCache"}
  flag -- "false" --> cached{"pkg in the cache?"}
  cached -- "yes" --> reuse["Reuse it"]
  cached -- "no" --> temp["Extract to a temp dir,<br/>then rename into place"]
  flag -- "true" --> cached2{"pkg in the cache?"}
  cached2 -- "no" --> temp
  cached2 -- "yes" --> inplace["Extract again in place,<br/>over the live copy"]
  inplace --> fail["Concurrent boots collide<br/>503 BOOT_ERROR"]
```

```mermaid
sequenceDiagram
  participant A as Worker A
  participant C as Shared Deno cache
  participant B as Worker B
  A->>C: create pkg/README.md (exists, so delete it)
  B->>C: create pkg/README.md (succeeds)
  A->>C: create pkg/README.md
  C-->>A: File exists (os error 17)
  Note over A: 503 BOOT_ERROR
```

This explains the odd parts of the report:

- A package that isn't cached yet goes through the temp dir and rename,
which is safe. That's why a cold first round often passes, and why a
warm-up request doesn't help.
- Native keeps its cache ... (continued)

5591 of 12006 relevant lines covered (46.57%)

25.05 hits per line

Jobs
ID Job ID Ran Files Coverage
1 40521826005.1 27 Oct 2026 02:31PM UTC 119
46.57
GitHub Action Run
Source Files on build 40521826005
  • Tree
  • List 119
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #40521826005
  • 2918d932 on github
  • Prev Build on develop (#40498830527)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc