Repository navigation
ci: require real Linux test execution - #185
Merged
Merged
Conversation
## Problem Linux workspace tests run on x86 runners that cannot execute the ARM64 backend. Eighteen namespace tests are filtered out. Linux deterministic failures do not fail CI Gate. ## Solution Use Ubuntu ARM64 and require the namespace operations that the tests need. Remove the namespace filters and install the alias helper beside unit tests. Reject unexpected skip diagnostics and preserve the Cargo failure status. Report the existing alias-read and credential-daemon exceptions explicitly. Make Linux deterministic failures affect CI Gate and update contributor docs. ## Tests The unfiltered all-features workspace run passed on Amazon Linux 2023 ARM64 in 618 seconds: 4,490 reported passes, 17 ignored tests, and no failures. Two reported passes omit assertions: alias reads and the real credential daemon. The containment target ran 378 tests; run_config ran 24 tests. All 28 Python tests passed, including eight skip-reporter tests. Six workflow controls verified success, Cargo failure, failed targets, missing results, unexpected skips, and the declared daemon exception. Independent review mutation-tested each new reporter test. YAML parsing, Bash syntax, and git diff --check passed. An initial local mock invoked Cargo and contaminated documentation artifacts. After isolating the mock shell, documentation and the full workspace passed. Hosted Ubuntu validation remains pending. No Rust source changed; the eight existing vendored shell warnings remain.
kevin-orellana
enabled auto-merge (squash)
October 27, 2026 19:15
|
Assessment: Comment Solid, well-scoped CI hardening: removing Review themes
Nice to see the advisory-leg loophole closed and the coverage gaps made explicit rather than hidden behind name filters. |
This was referenced Oct 28, 2026
|
Assessment: Approve Re-reviewed at
Nice, tight follow-up. LGTM. |
8 tasks done
zastrowm
approved these changes
Oct 30, 2026
This was referenced Oct 30, 2026
8 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Human readable section
Problem: Linux workspace tests run on x86 runners that cannot execute Box's ARM64 backend. Some tests return before their assertions, and the workflow explicitly excludes 18 namespace tests. The separate Linux deterministic job also allows failures without failing the merge gate.
Solution: Run the Linux workspace job on Ubuntu ARM64, require working namespaces, and remove the namespace exclusions. Install the alias helper where its unit test expects it. Reject unexpected skip diagnostics and preserve the test command's failure status. Make Linux deterministic failures affect
CI Gate.Trade-off: The accepted partial alias-read check and missing credential-daemon fixture remain explicit exceptions. Each exception may appear only once. Rust ignored tests and deliberate diagnostic name filters remain separate. This change does not claim complete Linux coverage.
Description
The manual full-test workflow selects the same ARM64 runner. Contributor documentation describes the updated checks. The latest four completed ARM64 deterministic jobs passed before this enforcement change;
CI Gateis already required onmain.Architecture scope
This PR makes ARM64 Linux workspace and deterministic tests mandatory. Adding x86 runners or x86 containment tests is out of scope.
The planned December 2026 x86 launch is separate work under issue #45. Its test coverage is tracked with issue #48. Current Linux containment refuses x86, and this workflow explicitly requires ARM64, so adding x86 to this matrix now would cause expected failures to block unrelated merges.
Separate x86 preparation can cover compilation, portable unit tests, and the current unsupported-platform refusal. Mandatory x86 containment tests belong with the x86 implementation and validation. This PR does not expand platform support or claim x86 readiness.
Coverage boundaries
The Linux/macOS case reconciliation maps the nine macOS-only deterministic cases to Linux counterparts, unsupported contracts, and remaining evidence gaps. These are integration contracts; unit totals do not establish equivalent enforcement.
PR #187 supplies separate Linux boundary tests. This PR does not include that branch or claim its tests ran at this revision. Permission work under issue #51 and the existing shared policy and shell defects remain outside this change. Live HTTPS and real credential-daemon fixtures remain follow-up coverage work.
The macOS workspace test job remains advisory through its job-level
continue-on-error. The macOS deterministic and native filesystem build/test jobs affect the requiredCI Gatewhen selected. Only the native signed-receipt freshness step is informational. This PR makes Linux workspace and deterministic execution blocking; it does not change macOS enforcement or qualify deployments.Related Issues
Refs #48. Other coverage work in that issue remains open.
Type of Change
Bug fix
Testing
Tested revision:
087a850e4c6ea81382fc1070a35cc2fbd0a57752, including main6418aad802e92880b6c5c431c942cef5a283aaef. The tests covered the identical tree before the commit. The diff against main changes no Rust source.cargo build --workspace --locked --all-targets --all-featurespassed in 294 seconds.cargo test --workspace --locked --all-features --no-fail-fast -- --show-outputpassed in 764 seconds. The outer results report 4,511 passes, zero failures, 17 ignored tests, and zero filters. Two reported passes omit assertions as disclosed above.087a850: the positive read control completed, but the workload read an alias byte. The intended read-denial assertion failed. This confirms the existing backend gap separately from the passing default suite.902e252The native commands used
EXPERIMENTAL_LINUX_SUPPORT=TRUE,RUSTFLAGS="-C debuginfo=0", and two build jobs.The 17 ignored entries are not 17 missing Linux tests: six are child-process helpers invoked by parent tests, three are manual long-running checks, two need live HTTPS fixtures, four record shared policy or shell defects, one pins the Linux alias-read limitation, and one is a documentation example. The absent credential daemon produces a separate runtime skip.
Before the first publication, a local mock invoked real Cargo and contaminated documentation artifacts. Isolating that shell corrected the setup. The subsequent full runs passed; the failed attempt remains recorded separately.
just check, orcargo test --workspace --all-features) — the complete command above passed, and the skip reporter accepted its output.cargo fmt --allandcargo clippy --workspace --all-targets --all-features -- -D warnings— not applicable to the diff against main; no Rust source changed.Checklist
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.