ci.yml's test and coverage floor jobs are red on every branch, master's base included #6

Closed
opened 2026-11-24 05:03:53 +00:00 by pallas · 3 comments
Member

Purpose (defect): make test and coverage floor (lines) green in this repository's ci.yml again, so a pull request here can prove anything at all.

Both jobs are red on every branch checked so far, master's base included, for work that did not touch tests or coverage.

run tip job task state
3228 df8812c (PR 4, deps bump) test 8419 failure
3228 df8812c coverage floor (lines) 8420 failure
3265 cabf252e (PR 5, rename) test 8584 failure
3265 cabf252e coverage floor (lines) 8585 failure

Both branches sit on the same base, master 39135a7 ("Merge PR 3"), and the union of what they change is: two release workflow files, .cargo/config.toml, the advisories stand-in and Cargo.lock. Neither touches tests/, src/ or the coverage wiring, so this is the port's state rather than either change's.

The pair also inverts against an earlier run: in 3228 rust in . (container) ran and passed while rust in . was skipped; in 3265 the container job was SKIPPED and the host job ran, and failed. Whatever decides that is part of the same picture.

What is known about the cause so far: a member token cannot read job logs on a private repository (the web log route answers 404 for every job index), so the first failure needs either a log read by the Supervisor or a local replay. A replay of the test job in the image it names, at cabf252e, is running; its result is appended to this issue when it lands.

Not proposed here: any new check. If the fix needs one, it goes to Raf first (DECIDED 2026-11-19).

**Purpose (defect):** make `test` and `coverage floor (lines)` green in this repository's `ci.yml` again, so a pull request here can prove anything at all. Both jobs are red on every branch checked so far, master's base included, for work that did not touch tests or coverage. | run | tip | job | task | state | |-----|-----|-----|------|-------| | 3228 | `df8812c` (PR 4, deps bump) | `test` | 8419 | failure | | 3228 | `df8812c` | `coverage floor (lines)` | 8420 | failure | | 3265 | `cabf252e` (PR 5, rename) | `test` | 8584 | failure | | 3265 | `cabf252e` | `coverage floor (lines)` | 8585 | failure | Both branches sit on the same base, master `39135a7` ("Merge PR 3"), and the union of what they change is: two release workflow files, `.cargo/config.toml`, the advisories stand-in and `Cargo.lock`. Neither touches `tests/`, `src/` or the coverage wiring, so this is the port's state rather than either change's. The pair also inverts against an earlier run: in 3228 `rust in . (container)` ran and passed while `rust in .` was skipped; in 3265 the container job was SKIPPED and the host job ran, and failed. Whatever decides that is part of the same picture. What is known about the cause so far: a member token cannot read job logs on a private repository (the web log route answers 404 for every job index), so the first failure needs either a log read by the Supervisor or a local replay. A replay of the `test` job in the image it names, at `cabf252e`, is running; its result is appended to this issue when it lands. Not proposed here: any new check. If the fix needs one, it goes to Raf first (DECIDED 2026-11-19).
Author
Member

State at park (Supervisor, 2026-11-24): both jobs reproduced on two branches at base 39135a7; a local replay of test at cabf252e in the job's own image built the toolchain and the teststation cleanly and reached cargo test --workspace --all-features --locked before the session was parked, so the error text is one rerun of ~/.claude/sessions/pallas/repro-rust3265-test.sh on msi00 away. Nothing here was changed; the branches and worktrees stay as they are.

State at park (Supervisor, 2026-11-24): both jobs reproduced on two branches at base `39135a7`; a local replay of `test` at `cabf252e` in the job's own image built the toolchain and the teststation cleanly and reached `cargo test --workspace --all-features --locked` before the session was parked, so the error text is one rerun of `~/.claude/sessions/pallas/repro-rust3265-test.sh` on msi00 away. Nothing here was changed; the branches and worktrees stay as they are.
Member

Named the error (read the job logs directly now that Forgejo 17 serves them; no local replay needed).

Run 6272 (ci.yml on PR #7 tip eba9c4a), jobs 25906 test and 25907 coverage floor (lines), both red for the SAME three tests — 206 pass, 3 fail:

---- keystore::tests::delete_is_idempotent stdout ----
thread 'keystore::tests::delete_is_idempotent' panicked at src/keystore.rs:368:14:
Store::new/build should succeed -- keyutils is always available on Linux: Backend(NoStorageAccess(PermissionDenied))

---- keystore::tests::load_before_any_save_reports_not_found stdout ----
(…) same: Backend(NoStorageAccess(PermissionDenied))

---- keystore::tests::save_then_load_returns_the_same_key stdout ----
(…) same: Backend(NoStorageAccess(PermissionDenied))

So the red is LinuxKeyutilsStore::new(...) in test_store() (src/keystore.rs:368) returning Backend(NoStorageAccess(PermissionDenied)). The Linux kernel-keyring backend is NOT reachable from the job's container: the keyutils keyctl/add_key path returns EPERM, so the assumption "keyutils is always available on Linux" the test comment states is false in the forge's macula-ci-otp job container. It is a container/runner environment fact, not a code defect in save/load/delete. This matches the inversion noted here earlier: the jobs that ran on the host passed, the jobs that ran in the container hit this.

Not a small fix: the tests deliberately hit the real keyring backend ("not mocked"), so the choice is (a) skip/guard them in the container, (b) run them on a host with a keyring, or (c) fix the container/runner to expose the kernel keyring — a decision for Raf, not a one-line change.

Named the error (read the job logs directly now that Forgejo 17 serves them; no local replay needed). Run 6272 (ci.yml on PR #7 tip eba9c4a), jobs 25906 `test` and 25907 `coverage floor (lines)`, both red for the SAME three tests — 206 pass, 3 fail: ``` ---- keystore::tests::delete_is_idempotent stdout ---- thread 'keystore::tests::delete_is_idempotent' panicked at src/keystore.rs:368:14: Store::new/build should succeed -- keyutils is always available on Linux: Backend(NoStorageAccess(PermissionDenied)) ---- keystore::tests::load_before_any_save_reports_not_found stdout ---- (…) same: Backend(NoStorageAccess(PermissionDenied)) ---- keystore::tests::save_then_load_returns_the_same_key stdout ---- (…) same: Backend(NoStorageAccess(PermissionDenied)) ``` So the red is `LinuxKeyutilsStore::new(...)` in `test_store()` (src/keystore.rs:368) returning `Backend(NoStorageAccess(PermissionDenied))`. The Linux kernel-keyring backend is NOT reachable from the job's container: the keyutils `keyctl`/`add_key` path returns EPERM, so the assumption "keyutils is always available on Linux" the test comment states is false in the forge's macula-ci-otp job container. It is a container/runner environment fact, not a code defect in save/load/delete. This matches the inversion noted here earlier: the jobs that ran on the host passed, the jobs that ran in the container hit this. Not a small fix: the tests deliberately hit the real keyring backend ("not mocked"), so the choice is (a) skip/guard them in the container, (b) run them on a host with a keyring, or (c) fix the container/runner to expose the kernel keyring — a decision for Raf, not a one-line change.
Member

Done-when, checked against the landed tree (master 347cef29ea4bf2c462a268411a07450a7682b5e8, fast-forwarded from 39135a78; PR 8):

  • test and coverage floor (lines) are green again. ci.yml run 6403 on the landed tip: test job 26347 SUCCESS, coverage floor (lines) job 26348 SUCCESS. The keystore tests were the only cause (206 passed, 3 failed before); nothing else was red in those jobs.
  • The keyring tests skip visibly, not silently. In both jobs the skip line skipped: no kernel keyring appears 3× — once per round-trip test (save_then_load_returns_the_same_key, load_before_any_save_reports_not_found, delete_is_idempotent) — and each of those tests still reports ... ok.
  • Only the no-keyring case skips; every other error still fails. the_no_kernel_keyring_error_is_skipped pins the skip to exactly NoStorageAccess(PermissionDenied); a_different_backend_error_still_fails proves NoStorageAccess(AccessDenied), PlatformFailure and NotFound do not skip.
  • The no-jobs run that blocked verify_range is gone. sealed-interop.yml no longer triggers on pull_request; the round on the landed tip has only ci.yml 6403, with no sealed-interop run at all.

The work in two parts: the skip predicate in src/keystore.rs (16ed3ab, with the fix that writes the skip line to the stderr handle 68ce1d0), and the sealed-interop.yml trigger guard (19a2cc8, refined in 347cef2).

The remaining reds on that run, Dependency advisories (26357) and rust in . (26360), are the separate advisories defect tracked by #4, not this one.

Done-when, checked against the landed tree (master `347cef29ea4bf2c462a268411a07450a7682b5e8`, fast-forwarded from `39135a78`; PR 8): - **`test` and `coverage floor (lines)` are green again.** `ci.yml` run 6403 on the landed tip: `test` job 26347 SUCCESS, `coverage floor (lines)` job 26348 SUCCESS. The keystore tests were the only cause (206 passed, 3 failed before); nothing else was red in those jobs. - **The keyring tests skip visibly, not silently.** In both jobs the skip line `skipped: no kernel keyring` appears 3× — once per round-trip test (`save_then_load_returns_the_same_key`, `load_before_any_save_reports_not_found`, `delete_is_idempotent`) — and each of those tests still reports `... ok`. - **Only the no-keyring case skips; every other error still fails.** `the_no_kernel_keyring_error_is_skipped` pins the skip to exactly `NoStorageAccess(PermissionDenied)`; `a_different_backend_error_still_fails` proves `NoStorageAccess(AccessDenied)`, `PlatformFailure` and `NotFound` do not skip. - **The no-jobs run that blocked verify_range is gone.** `sealed-interop.yml` no longer triggers on `pull_request`; the round on the landed tip has only `ci.yml` 6403, with no `sealed-interop` run at all. The work in two parts: the skip predicate in `src/keystore.rs` (16ed3ab, with the fix that writes the skip line to the stderr handle 68ce1d0), and the `sealed-interop.yml` trigger guard (19a2cc8, refined in 347cef2). The remaining reds on that run, `Dependency advisories` (26357) and `rust in .` (26360), are the separate advisories defect tracked by #4, not this one.
titan closed this issue 2026-12-01 16:44:16 +00:00
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
macula-io/macula-rust#6
No description provided.