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

supabase / storage / 44505589057
88%

Build:
DEFAULT BRANCH: master
Ran 19 Nov 2026 10:27AM UTC
Jobs 2
Files 393
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

19 Nov 2026 10:25AM UTC coverage: 88.338% (+0.6%) from 87.721%
44505589057

push

github

web-flow
feat: in-repo queue manager with pg-boss and SQS adapters (#1697)

## What kind of change does this PR introduce?

Feature. Supersedes #1292.

## What is the current behavior?

Events go through the v1 queue: a pg-boss fork, one `Event` base class
that mixes sending, handling and configuration, and a `Queue` singleton
that every event reaches into.

#1292 replaced that with the external `wave` packages. Wave is a log and
pub/sub abstraction: subscription groups with fan-out, ordered and
key-shared subscriptions, group membership, partitions, replay. Storage
uses none of that. It needs queues with competing consumers, and most of
wave's code and concepts were weight we had to carry and reason about
without using.

## What is the new behavior?

The queue lives in this repo, in `src/internal/queue`, and only does
queue semantics: one queue per name, competing consumers, no ordering,
no fan-out.

```
src/internal/queue/
  manager/     engine-agnostic core: registry, messages, handlers, middleware, workers
  adapters/
    pgboss/    one pg-boss queue per queue
    sqs/       one SQS queue per queue (standard, or FIFO for dedup)
    memory/    in-memory, used by tests
    conformance.ts   the contract every adapter is tested against
```

The engine is one choice per deployment: `QUEUE_ADAPTER=pgboss`
(default) or `QUEUE_ADAPTER=sqs`. The same queue declarations, messages
and handlers run on either.

The starting point is #1292 squashed onto current master, so the storage
events keep the shape introduced there. What changes is everything
underneath them. Compared with the wave packages the core is about 3,400
lines instead of 7,700, the pg-boss adapter 570 instead of 2,200, and
the SQS adapter 1,740 instead of 2,500.

### Declaring a queue

A queue is declared once, in a registry, together with its policy. The
retry budget, the dead-letter queue and the liveness window belong to
the queue because that is where both engines keep them. `start()`
provisions eve... (continued)

9823 of 11691 branches covered (84.02%)

Branch coverage included in aggregate %.

2962 of 3203 new or added lines in 97 files covered. (92.48%)

2 existing lines in 2 files now uncovered.

16969 of 18638 relevant lines covered (91.05%)

1253.79 hits per line

Uncovered Changes

Lines Coverage ∆ File
66
7.76
src/storage/events/upgrades/move-jobs.ts
36
12.28
src/internal/queue/boss.ts
33
63.69
src/storage/events/upgrades/move-jobs-sqs.ts
23
63.04
src/internal/queue/instance.ts
15
87.55
-9.39% src/internal/monitoring/metrics.ts
9
32.14
-43.18% src/internal/queue/database.ts
7
73.61
src/internal/queue/adapters/sqs/client/queues.ts
6
82.05
src/internal/queue/adapters/sqs/client/messages.ts
5
4.62
-0.47% src/storage/events/upgrades/sync-catalog-ids.ts
4
94.08
src/internal/queue/adapters/sqs/settle.ts
4
86.17
0.15% src/storage/storage.ts
3
82.42
-0.92% src/test/common.ts
2
85.67
-0.98% src/http/routes/admin/tenants.ts
2
94.44
src/internal/queue/adapters/memory/memory.ts
2
96.3
src/internal/queue/manager/queue.ts
2
92.45
src/internal/queue/manager/sync-queue.ts
2
25.0
8.33% src/storage/events/jwks/jwks-create-signing-secret.ts
2
91.67
9.06% src/storage/events/migrations/reset-migrations.ts
2
91.89
3.0% src/storage/events/objects/object-admin-delete.ts
2
97.1
src/test/queue/queue-integration.ts
1
93.05
-0.94% src/config.ts
1
41.03
-4.21% src/http/routes/admin/iceberg-admin.ts
1
94.12
src/internal/queue/adapters/sqs/client/errors.ts
1
95.59
src/internal/queue/adapters/sqs/consumer.ts
1
90.97
src/internal/queue/adapters/sqs/message.ts
1
97.83
src/internal/queue/adapters/sqs/queues.ts
1
93.1
src/internal/queue/manager/test-support.ts
1
94.42
src/internal/queue/middleware.ts
1
93.55
1.97% src/storage/events/iceberg/delete-iceberg-resources.ts
1
20.0
3.33% src/storage/events/iceberg/reconcile-catalog.ts
1
91.67
7.05% src/storage/events/jwks/jwks-roll-url-signing-key.ts
1
60.0
6.67% src/storage/events/lifecycle/bucket-created.ts
1
98.48
11.25% src/storage/events/migrations/run-migrations.ts
1
94.67
src/storage/events/webhooks/webhook.ts

Coverage Regressions

Lines Coverage ∆ File
1
4.62
-0.47% src/storage/events/upgrades/sync-catalog-ids.ts
1
54.76
2.38% src/storage/events/lifecycle/bucket-deleted.ts
Jobs
ID Job ID Ran Files Coverage
1 rest-pg18 - 44505589057.1 19 Nov 2026 10:34AM UTC 368
69.05
GitHub Action Run
2 unit - 44505589057.2 19 Nov 2026 10:27AM UTC 384
71.39
GitHub Action Run
Source Files on build 44505589057
  • Tree
  • List 393
  • Changed 39
  • Source Changed 38
  • Coverage Changed 37
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #44505589057
  • 91f67257 on github
  • Prev Build on master (#44491890867)
  • Next Build on master (#44548656761)
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