Skip to content

ci(rust): reclaim runner disk so the test job can link - #207

Merged
athvin merged 1 commit into
mainfrom
ci/reclaim-runner-disk
Oct 20, 2026
Merged

athvin merged 1 commit into
mainfrom
ci/reclaim-runner-disk

Conversation

@athvin

@athvin athvin commented Oct 20, 2026

Copy link
Copy Markdown
Owner

main has been red on the test job since #188. Nothing is wrong with the code.

What's actually failing

The surfaced error is error: linking with 'cc' failed: exit status: 1, which reads like a toolchain problem. Buried under ~280 lines of unrelated ld: warning: object file ... built for newer macOS version noise is the real line:

ld: write() failed, errno=28 (No space left on device)

cargo test --workspace links a separate debug binary for each of the 27 crates, and with bundled duckdb plus full debug info that overruns ubuntu-latest's ~14 GB of free space. #188 added the er-entity-lint crate, which was enough to cross the line — the last green test job was 319e01b.

This is why it looked mysterious: only this one job is affected. lint runs clippy and never links; the e2e, bench and scale jobs each build a -p-scoped subset. On the red runs, every other job passed:

job main @ 69c398e
test ❌ no space left
fmt + clippy + docs ✅
DuckLake + extensions e2e ✅
benchmarks (compile) ✅
scale golden (50k) ✅
cargo-deny ✅

The fix

Drop the preinstalled dotnet, android, ghc, boost and swift trees before building — none are used by this workflow, and they return ~25 GB.

Two deliberate choices:

  • Inline rm -rf rather than a third-party disk-reclaim action, so every uses: in this workflow stays SHA-pinned.
  • The hosted tool cache is left alone. It's another ~10 GB, but it backs the setup-* actions, and dotnet + android already give far more headroom than this job needs.

Verification

This is a CI-capacity fix, not a size regression in the code — the same failure reproduces on main with duckdb 1.10505.0, i.e. with no dependency change at all. actionlint is clean. This PR's own test run exercises the fix.

Worth noting separately: the identical failure happens locally. A full rust/target for this workspace is ~33 GB, and the repo had accumulated 342 GB across worktrees — enough to fill a 926 GB disk and fail local make check the same way. A [profile.test] debug = "line-tables-only" setting would shrink both, at the cost of less detailed backtraces; left out of this PR since it changes developer experience and deserves its own decision.

🤖 Generated with Claude Code

`main` has been red on the `test` job since #188. The reported error is
`linking with cc failed`, which reads like a toolchain problem but is not —
the real line is

    ld: write() failed, errno=28 (No space left on device)

`cargo test --workspace` links a separate debug binary for each of the 27
crates, and with bundled duckdb plus full debug info that overruns
ubuntu-latest's ~14 GB of free space. #188 added the er-entity-lint crate,
which was enough to cross the line; the last green `test` was 319e01b.

Only this job is affected, which is why the failure looked mysterious:
`lint` runs clippy and never links, and the e2e, bench and scale jobs each
build a `-p`-scoped subset. On the red runs every other job passed.

Drop the preinstalled dotnet, android, ghc, boost and swift trees before
building — unused by this workflow, worth ~25 GB. Inline `rm -rf` rather than
a third-party disk-reclaim action, so every `uses:` here stays SHA-pinned. The
hosted tool cache is left alone: it is another ~10 GB but backs `setup-*`, and
this is already more headroom than the job needs.

This is a CI-capacity fix, not a size regression in the code — the same
failure reproduces on main with duckdb 1.10505.0.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
@athvin
athvin merged commit 67a3f8d into main Oct 20, 2026
14 checks passed
athvin pushed a commit that referenced this pull request Oct 20, 2026
Supersedes #191, #192, #193, #197, #198, #199, #200. Three sibling
dependabot PRs are NOT included because they cannot resolve — see below.

CI actions:
- sccache-action 0.0.9 -> 0.0.11 (5 call sites in rust.yml)
- taiki-e/install-action 2.87.28 -> 2.87.29

Rust (#193 rust-minor-patch group, #197):
- duckdb 1.10505.0 -> 1.10506.1 (exact pin), tokio -> 1.54.0,
  unicode-normalization -> 0.1.26
- rand 0.9 -> 0.10

rand 0.10 renamed the core trait: `RngCore` is gone from the crate root and
`Rng` now carries `fill_bytes` (the old extension trait became `RngExt`). Two
sites broke, both minting secrets — the API-key secret in `pg.rs` and the
webhook HMAC secret in `lib.rs`. Both are `use rand::RngCore` ->
`use rand::Rng`; the RNG itself is unchanged. Verified against rand 0.10.3's
source that `ThreadRng` is still ChaCha12-backed and `TryCryptoRng`, so the
cryptographic property these two secrets depend on is preserved.

Frontend (#198 group of 22, #199, #200):
- next 16.3.8 -> 16.4.2, react/react-dom 19.3.0 -> 19.3.1, eslint -> 10.13.0,
  zod -> 4.6.7, @anthropic-ai/sdk -> 0.135.0, lucide-react -> 1.58.0 and the
  rest of the minor-patch group
- motion 13.4.4 -> 14.3.0, @testing-library/jest-dom ^6.9.1 -> ^7.0.1

`@playwright/test` stays pinned at 1.63.0 (it must equal the docker tag) and
`typescript` stays at `5.x`; neither was in any of the bumps.

Not included, both blocked on an external pin rather than on anything here:

- #195 arrow 58 -> 59. The `duckdb` crate depends on arrow 58.4.0 even at
  1.10506.1, and DuckDB's Arrow batches ARE the workspace Arrow type — e.g.
  er-entities returns `::duckdb::Result<Vec<::arrow::record_batch::RecordBatch>>`.
  Putting the workspace on 59 while duckdb emits 58 stops that type-checking;
  pr/195's own lock resolves three arrow versions (57.3.1/58.4.0/59.3.1).
  Needs `duckdb` on arrow 59 first.
- #194 / #196 datafusion-common and datafusion-expr 52 -> 55. er-sql-check
  depends on both datafusion and `ff-analysis`, and feather-flow (git tag
  er-entity-v0.1.4) pins `datafusion-* = "52"`, a caret requirement that
  cannot unify with 55. Needs a feather-flow tag on datafusion 55 first.

No MSRV change is needed: duckdb 1.10506.1 declares rust-version 1.88, and
#203 already raised the workspace to 1.88 (with the 10 let-chain rewrites
clippy then asks for, across er-sql-check, er-golden, er-eval and
er-entity-gen). This branch leaves that line alone.

Rebased onto #207, which fixes the runner disk exhaustion that had the `test`
job failing on main since #188 — unrelated to these bumps and reproducible on
main with duckdb 1.10505.0.

Verified locally: frontend `pnpm check` 164 unit tests pass and a fresh-server
e2e run is 324 passed; `make check` 263 tests pass with no genuine failures.
Note that `make frontend` runs `test:e2e` rather than `test:e2e:fresh`, so it
can adopt a stale server and report phantom failures — clean main does the
same, with a different set of grow.spec.ts tests failing each run.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
athvin added a commit that referenced this pull request Oct 20, 2026
* ci(frontend): filter pushes to main, not just PRs

Dropping the `paths:` filter was necessary to make the frontend jobs
required status checks — a workflow a path filter skips never reports, so
a required check sits pending forever. But `detect` only filtered
`pull_request`, so every push to main ran the whole gate, and the first
Rust-only merge after #206 duly spent ~5 minutes in the Playwright
container to re-test a tree it had already tested: a squash commit and
the PR head it came from are near-identical, and that PR ran this exact
gate to green minutes earlier.

rust.yml always runs on main for a good reason — it IS the gate
protecting that branch, so it must never self-skip there. That reasoning
does not transfer to this workflow, which was copied from it.

`push` now diffs `event.before...event.after` through the same
`^frontend/` filter the PR case uses. It fails SAFE: an all-zeroes
`before` (a branch's first push) or one git cannot resolve (after a
force-push) runs the gate rather than skipping it — a wasted run beats a
silent one. Nightly and manual runs are unchanged, and so is the
`pull_request` path, so required checks keep behaving exactly as
verified.

All eight event paths were exercised against real commits before pushing
— #206 as a frontend-touching merge, #207 as a Rust-only one — covering
push/PR × touching/not-touching plus the two degenerate `before` values
and schedule/dispatch.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>

* ci: cap cargo Dependabot at 2 open PRs

Adding the cargo ecosystem in #187 closed a real gap — the repo's own
security notes flagged that nothing bumped Rust advisories — but it
opened five PRs at once, and that turned out to matter.

Each cargo PR carries a different Cargo.lock, so Swatinem/rust-cache
(keyed on the lockfile) misses and the workspace compiles near-cold.
Five of those in parallel starved the runners enough to push
`fmt + clippy + docs` past its 30-minute timeout — on the dependabot
branches and on main. The job takes ~16 minutes uncontended; #206 took
28m39s under this load, so the timeout was already marginal and the
burst tipped it over.

The grouping config batches minor/patch into one PR, but majors are
deliberately separate — a major is a migration to schedule, not a bump
to merge on green — so a week with several major releases is exactly
when this happens. arrow 59.3.1, rand 0.10.3 and two datafusion 55.2.0
bumps all landed together.

Capping at 2 fixes the cause rather than the symptom; Dependabot queues
the rest and opens them as these merge, so no update is lost. npm stays
at 5, since those PRs do not compile Rust.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>

---------

Co-authored-by: bmoore813 <[email protected]>
Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
athvin pushed a commit that referenced this pull request Oct 20, 2026
Supersedes #191, #192, #193, #197, #198, #199, #200. Three sibling
dependabot PRs are NOT included because they cannot resolve — see below.

CI actions:
- sccache-action 0.0.9 -> 0.0.11 (5 call sites in rust.yml)
- taiki-e/install-action 2.87.28 -> 2.87.29

Rust (#193 rust-minor-patch group, #197):
- duckdb 1.10505.0 -> 1.10506.1 (exact pin), tokio -> 1.54.0,
  unicode-normalization -> 0.1.26
- rand 0.9 -> 0.10

rand 0.10 renamed the core trait: `RngCore` is gone from the crate root and
`Rng` now carries `fill_bytes` (the old extension trait became `RngExt`). Two
sites broke, both minting secrets — the API-key secret in `pg.rs` and the
webhook HMAC secret in `lib.rs`. Both are `use rand::RngCore` ->
`use rand::Rng`; the RNG itself is unchanged. Verified against rand 0.10.3's
source that `ThreadRng` is still ChaCha12-backed and `TryCryptoRng`, so the
cryptographic property these two secrets depend on is preserved.

Frontend (#198 group of 22, #199, #200):
- next 16.3.8 -> 16.4.2, react/react-dom 19.3.0 -> 19.3.1, eslint -> 10.13.0,
  zod -> 4.6.7, @anthropic-ai/sdk -> 0.135.0, lucide-react -> 1.58.0 and the
  rest of the minor-patch group
- motion 13.4.4 -> 14.3.0, @testing-library/jest-dom ^6.9.1 -> ^7.0.1

@playwright/test stays pinned at 1.63.0 (it must equal the docker tag) and
typescript stays at 5.x; neither was in any of the bumps.

Also raises the lint and ducklake-e2e job timeouts from 30 to 45 minutes.
Bumping duckdb invalidates the sccache/rust-cache, so both jobs rebuild the
bundled duckdb C++ tree from scratch. On that cold run lint measured 30+ min
and was cancelled mid-job with every gate already green — fmt, clippy with
-D warnings, er-entity verify and rustdoc all passed, and only the step the
workflow itself labels advisory (the OpenAPI breaking-change diff, which ends
in `|| true`) was cut off. ducklake-e2e finished at 29 min, one minute inside
the old limit. That margin was luck, and any future duckdb bump hits the same
wall.

Not included, both blocked on an external pin rather than on anything here:

- #195 arrow 58 -> 59. The `duckdb` crate depends on arrow 58.4.0 even at
  1.10506.1, and DuckDB's Arrow batches ARE the workspace Arrow type — e.g.
  er-entities returns `::duckdb::Result<Vec<::arrow::record_batch::RecordBatch>>`.
  Putting the workspace on 59 while duckdb emits 58 stops that type-checking;
  pr/195's own lock resolves three arrow versions (57.3.1/58.4.0/59.3.1).
  Needs `duckdb` on arrow 59 first.
- #194 / #196 datafusion-common and datafusion-expr 52 -> 55. er-sql-check
  depends on both datafusion and `ff-analysis`, and feather-flow (git tag
  er-entity-v0.1.4) pins `datafusion-* = "52"`, a caret requirement that
  cannot unify with 55. Needs a feather-flow tag on datafusion 55 first.

No MSRV change is needed: duckdb 1.10506.1 declares rust-version 1.88, and
#203 already raised the workspace to 1.88 along with the 10 let-chain rewrites
clippy then asks for. This branch leaves that line alone.

Rebased onto #207, which fixes the runner disk exhaustion that had the `test`
job failing on main since #188 — unrelated to these bumps and reproducible on
main with duckdb 1.10505.0.

Verified: CI green on the previous push for test, DuckLake e2e, cargo-deny,
semgrep, pnpm audit, frontend lint/types/unit and the playwright tier.
Locally, frontend `pnpm check` passes 164 unit tests and a fresh-server e2e run
is 324 passed. Note that `make frontend` runs `test:e2e` rather than
`test:e2e:fresh`, so it can adopt a stale server and report phantom failures —
clean main does the same, with a different set of grow.spec.ts tests failing
each run.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
athvin pushed a commit that referenced this pull request Oct 20, 2026
Supersedes #191, #192, #193, #197, #198, #199, #200. Three sibling
dependabot PRs are NOT included because they cannot resolve — see below.

CI actions:
- sccache-action 0.0.9 -> 0.0.11 (5 call sites in rust.yml)
- taiki-e/install-action 2.87.28 -> 2.87.29

Rust (#193 rust-minor-patch group, #197):
- duckdb 1.10505.0 -> 1.10506.1 (exact pin), tokio -> 1.54.0,
  unicode-normalization -> 0.1.26
- rand 0.9 -> 0.10

rand 0.10 renamed the core trait: `RngCore` is gone from the crate root and
`Rng` now carries `fill_bytes` (the old extension trait became `RngExt`). Two
sites broke, both minting secrets — the API-key secret in `pg.rs` and the
webhook HMAC secret in `lib.rs`. Both are `use rand::RngCore` ->
`use rand::Rng`; the RNG itself is unchanged. Verified against rand 0.10.3's
source that `ThreadRng` is still ChaCha12-backed and `TryCryptoRng`, so the
cryptographic property these two secrets depend on is preserved.

Frontend (#198 group of 22, #199, #200):
- next 16.3.8 -> 16.4.2, react/react-dom 19.3.0 -> 19.3.1, eslint -> 10.13.0,
  zod -> 4.6.7, @anthropic-ai/sdk -> 0.135.0, lucide-react -> 1.58.0 and the
  rest of the minor-patch group
- motion 13.4.4 -> 14.3.0, @testing-library/jest-dom ^6.9.1 -> ^7.0.1

@playwright/test stays pinned at 1.63.0 (it must equal the docker tag) and
typescript stays at 5.x; neither was in any of the bumps.

Also raises the lint and ducklake-e2e job timeouts from 30 to 45 minutes.
Bumping duckdb invalidates the sccache/rust-cache, so both jobs rebuild the
bundled duckdb C++ tree from scratch. On that cold run lint measured 30+ min
and was cancelled mid-job with every gate already green — fmt, clippy with
-D warnings, er-entity verify and rustdoc all passed, and only the step the
workflow itself labels advisory (the OpenAPI breaking-change diff, which ends
in `|| true`) was cut off. ducklake-e2e finished at 29 min, one minute inside
the old limit. That margin was luck, and any future duckdb bump hits the same
wall.

Not included, both blocked on an external pin rather than on anything here:

- #195 arrow 58 -> 59. The `duckdb` crate depends on arrow 58.4.0 even at
  1.10506.1, and DuckDB's Arrow batches ARE the workspace Arrow type — e.g.
  er-entities returns `::duckdb::Result<Vec<::arrow::record_batch::RecordBatch>>`.
  Putting the workspace on 59 while duckdb emits 58 stops that type-checking;
  pr/195's own lock resolves three arrow versions (57.3.1/58.4.0/59.3.1).
  Needs `duckdb` on arrow 59 first.
- #194 / #196 datafusion-common and datafusion-expr 52 -> 55. er-sql-check
  depends on both datafusion and `ff-analysis`, and feather-flow (git tag
  er-entity-v0.1.4) pins `datafusion-* = "52"`, a caret requirement that
  cannot unify with 55. Needs a feather-flow tag on datafusion 55 first.

No MSRV change is needed: duckdb 1.10506.1 declares rust-version 1.88, and
clippy then asks for. This branch leaves that line alone.

Rebased onto #207, which fixes the runner disk exhaustion that had the `test`
job failing on main since #188 — unrelated to these bumps and reproducible on
main with duckdb 1.10505.0.

Verified: CI green on the previous push for test, DuckLake e2e, cargo-deny,
semgrep, pnpm audit, frontend lint/types/unit and the playwright tier.
Locally, frontend `pnpm check` passes 164 unit tests and a fresh-server e2e run
is 324 passed. Note that `make frontend` runs `test:e2e` rather than
`test:e2e:fresh`, so it can adopt a stale server and report phantom failures —
clean main does the same, with a different set of grow.spec.ts tests failing
each run.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
athvin added a commit that referenced this pull request Oct 20, 2026
Supersedes #191, #192, #193, #197, #198, #199, #200. Three sibling
dependabot PRs are NOT included because they cannot resolve — see below.

CI actions:
- sccache-action 0.0.9 -> 0.0.11 (5 call sites in rust.yml)
- taiki-e/install-action 2.87.28 -> 2.87.29

Rust (#193 rust-minor-patch group, #197):
- duckdb 1.10505.0 -> 1.10506.1 (exact pin), tokio -> 1.54.0,
  unicode-normalization -> 0.1.26
- rand 0.9 -> 0.10

rand 0.10 renamed the core trait: `RngCore` is gone from the crate root and
`Rng` now carries `fill_bytes` (the old extension trait became `RngExt`). Two
sites broke, both minting secrets — the API-key secret in `pg.rs` and the
webhook HMAC secret in `lib.rs`. Both are `use rand::RngCore` ->
`use rand::Rng`; the RNG itself is unchanged. Verified against rand 0.10.3's
source that `ThreadRng` is still ChaCha12-backed and `TryCryptoRng`, so the
cryptographic property these two secrets depend on is preserved.

Frontend (#198 group of 22, #199, #200):
- next 16.3.8 -> 16.4.2, react/react-dom 19.3.0 -> 19.3.1, eslint -> 10.13.0,
  zod -> 4.6.7, @anthropic-ai/sdk -> 0.135.0, lucide-react -> 1.58.0 and the
  rest of the minor-patch group
- motion 13.4.4 -> 14.3.0, @testing-library/jest-dom ^6.9.1 -> ^7.0.1

@playwright/test stays pinned at 1.63.0 (it must equal the docker tag) and
typescript stays at 5.x; neither was in any of the bumps.

Also raises the lint and ducklake-e2e job timeouts from 30 to 45 minutes.
Bumping duckdb invalidates the sccache/rust-cache, so both jobs rebuild the
bundled duckdb C++ tree from scratch. On that cold run lint measured 30+ min
and was cancelled mid-job with every gate already green — fmt, clippy with
-D warnings, er-entity verify and rustdoc all passed, and only the step the
workflow itself labels advisory (the OpenAPI breaking-change diff, which ends
in `|| true`) was cut off. ducklake-e2e finished at 29 min, one minute inside
the old limit. That margin was luck, and any future duckdb bump hits the same
wall.

Not included, both blocked on an external pin rather than on anything here:

- #195 arrow 58 -> 59. The `duckdb` crate depends on arrow 58.4.0 even at
  1.10506.1, and DuckDB's Arrow batches ARE the workspace Arrow type — e.g.
  er-entities returns `::duckdb::Result<Vec<::arrow::record_batch::RecordBatch>>`.
  Putting the workspace on 59 while duckdb emits 58 stops that type-checking;
  pr/195's own lock resolves three arrow versions (57.3.1/58.4.0/59.3.1).
  Needs `duckdb` on arrow 59 first.
- #194 / #196 datafusion-common and datafusion-expr 52 -> 55. er-sql-check
  depends on both datafusion and `ff-analysis`, and feather-flow (git tag
  er-entity-v0.1.4) pins `datafusion-* = "52"`, a caret requirement that
  cannot unify with 55. Needs a feather-flow tag on datafusion 55 first.

No MSRV change is needed: duckdb 1.10506.1 declares rust-version 1.88, and
clippy then asks for. This branch leaves that line alone.

Rebased onto #207, which fixes the runner disk exhaustion that had the `test`
job failing on main since #188 — unrelated to these bumps and reproducible on
main with duckdb 1.10505.0.

Verified: CI green on the previous push for test, DuckLake e2e, cargo-deny,
semgrep, pnpm audit, frontend lint/types/unit and the playwright tier.
Locally, frontend `pnpm check` passes 164 unit tests and a fresh-server e2e run
is 324 passed. Note that `make frontend` runs `test:e2e` rather than
`test:e2e:fresh`, so it can adopt a stale server and report phantom failures —
clean main does the same, with a different set of grow.spec.ts tests failing
each run.

Co-authored-by: bmoore813 <[email protected]>
Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants