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

supabase / etl / 43180917123
79%

Build:
DEFAULT BRANCH: main
Ran 12 Nov 2026 08:17AM UTC
Jobs 1
Files 251
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

12 Nov 2026 08:11AM UTC coverage: 81.297% (+0.03%) from 81.268%
43180917123

push

github

web-flow
refactor(etl): model apply-loop state with two enums (#1235)

* refactor(etl): encapsulate apply-loop state

Route every read and write of the apply loop's lifecycle and flush
fields through ApplyLoopState methods. No behavior change. This keeps
the upcoming enum swaps inside the state type.

* refactor(etl): model apply-loop flush as an enum

Replace pending_flush_result and processing_paused with FlushState.
A batch can now only be queued behind a flush that is in flight, which
the two fields could not guarantee. No behavior change for any state
the loop reaches.

* refactor(etl): model apply-loop lifecycle as an enum

Replace exit_intent, draining_for_shutdown and
abandoned_work_for_shutdown with LoopPhase. Draining now always carries
an exit intent, and abandoned work always exits paused. No behavior
change for any state the loop reaches.

* docs(etl): trim apply-loop comments held by enums

LoopPhase and FlushState variants now document the abandoned and
queued-batch states, so the call sites link to them instead of
restating them.

* docs(etl): correct apply-loop phase comments

A draining loop still runs after-flush table-sync processing, so the
Draining doc must only exclude quiescent coordination. Also drop a test
assertion the FlushState type now guarantees.

* refactor(etl): finish apply loop with one rule

A draining loop always carries an exit intent, so the active and
draining iterations finish the same way: once no buffered or in-flight
destination work remains, return the requested exit. Merge
finish_shutdown and try_finish_active_iteration into try_finish and
drop the unreachable Paused fallback.

* refactor(etl): name flush methods after FlushState

pause_processing, resume_processing and is_processing_paused kept the
removed flag's vocabulary. Rename them to queue_batch_behind_flush,
finish_flush and has_batch_queued_behind_flush so call sites read like
the FlushState variants. The shutdown-drain log field is renamed to
match: proce... (continued)

108 of 114 new or added lines in 1 file covered. (94.74%)

56 existing lines in 5 files now uncovered.

61679 of 75869 relevant lines covered (81.3%)

41290.72 hits per line

Uncovered Changes

Lines Coverage ∆ File
6
90.35
0.2% crates/etl/src/replication/apply/mod.rs

Coverage Regressions

Lines Coverage ∆ File
49
88.26
-2.04% crates/etl-destinations/src/ducklake/encoding.rs
2
94.88
-0.25% crates/etl-destinations/src/bigquery/encoding.rs
2
86.61
-0.04% crates/etl-destinations/src/ducklake/core.rs
2
77.03
-0.07% crates/etl-maintenance/src/ducklake/runner.rs
1
98.26
0.0% crates/etl-destinations/src/ducklake/schema.rs
Jobs
ID Job ID Ran Files Coverage
1 43180917123.1 12 Nov 2026 08:17AM UTC 251
81.3
GitHub Action Run
Source Files on build 43180917123
  • Tree
  • List 251
  • Changed 9
  • Source Changed 1
  • Coverage Changed 9
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #43180917123
  • 383cf23a on github
  • Prev Build on main (#43175414032)
  • Next Build on main (#43187478045)
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