Skip to content

ci: require real Linux test execution - #185

Merged
kevin-orellana merged 2 commits into
mainfrom
feature/linux-ci-coverage
Oct 30, 2026
Merged

kevin-orellana merged 2 commits into
mainfrom
feature/linux-ci-coverage

Conversation

@kevin-orellana

@kevin-orellana kevin-orellana commented Oct 27, 2026 •

Copy link
Copy Markdown
Collaborator

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 Gate is already required on main.

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 required CI Gate when 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 main 6418aad802e92880b6c5c431c942cef5a283aaef. The tests covered the identical tree before the commit. The diff against main changes no Rust source.

Check Result
Native Amazon Linux 2023 ARM64 build cargo build --workspace --locked --all-targets --all-features passed in 294 seconds.
Unfiltered native workspace tests cargo test --workspace --locked --all-features --no-fail-fast -- --show-output passed 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.
Containment and configuration targets 390 containment units and 24 configuration integration tests passed. The nested containment child result is excluded from the outer totals.
Python tests All 43 passed, including nine reporter tests.
Independent review controls Nine command-line controls passed. All eight in-memory defects were detected. Four workflow files parsed, and their shell commands passed syntax checks.
Real captured output The corrected reporter still accepts the previous successful native log and reports its two known gaps. The earlier failed log remains rejected.
Explicit ignored alias-read diagnostic Failed at 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.
Hosted checks at 902e252 Ubuntu ARM64 and macOS workspace and deterministic jobs, lint, and CI Gate passed.
Hosted checks at this revision Passed: Ubuntu ARM64 and macOS workspace tests, both deterministic jobs, lint, native macOS checks, and CI Gate. Automated re-review recommends approval; human approval remains pending.

The 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.

  • I ran the relevant suites (just check, or cargo test --workspace --all-features) — the complete command above passed, and the skip reporter accepted its output.
  • If I touched Rust, I ran cargo fmt --all and cargo clippy --workspace --all-targets --all-features -- -D warnings — not applicable to the diff against main; no Rust source changed.

Checklist

  • I have read the CONTRIBUTING document
  • I have reviewed and understand every line of code in this PR, including any generated by AI tools, and I can explain why it works
  • My change is focused and reasonably small; I have split unrelated work into separate PRs
  • I have added any necessary tests that prove my fix is effective or my feature works
  • I have updated the documentation accordingly
  • My changes generate no new warnings — the unchanged vendored shell tests retain eight existing Rust warnings.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

## 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.
Comment thread .github/workflows/rust-test-lint.yml Resolved
Comment thread scripts/check-linux-test-output.py Resolved
Comment thread scripts/check-linux-test-output.py Resolved
@github-actions

Copy link
Copy Markdown

Assessment: Comment

Solid, well-scoped CI hardening: removing continue-on-error for Linux, pinning the namespace suite to ARM64 with an explicit prerequisite probe, dropping the name-based skips, and gating on a skip-auditing script are all the right moves, and the exit-code handling in the Linux test step is correct. Not an API change, so no API review needed. My one substantive concern is the skip detector's robustness under --show-output.

Review themes
  • Correctness / false positives: The skip detector's bare-substring match combined with -- --show-output can flag unrelated test stdout as an unexpected skip and fail the job (reproduced locally). Worth anchoring the match. See inline.
  • Maintainability / coupling: Expected-skip reasons are byte-for-byte copies of Rust diagnostic prose; silent drift risk. See inline.
  • Docs accuracy: A free-disk comment still cites the old x86 ubuntu-latest numbers. See inline.
  • Testing: New reporter has good edge coverage (color, hidden skips, failed target, missing result); tests pass locally and are wired into the unconditional packaging job.

Nice to see the advisory-leg loophole closed and the coverage gaps made explicit rather than hidden behind name filters.

@github-actions

Copy link
Copy Markdown

Assessment: Approve

Re-reviewed at 087a850. All three points from my earlier review are addressed:

  • Skip detector false positive — now anchored to a line-start SKIP_DIAGNOSTIC regex (optional cargo test <name> ... prefix). My original repro now returns accepted: True, genuine line-start skips are still caught, and the new test_incidental_skip_text_does_not_fail_a_passing_suite locks in the behavior. All 9 reporter tests pass locally.
  • EXPECTED_SKIPS coupling — the two constants now carry Keep this text aligned with … pointers to their emitting Rust sources.
  • Stale disk comment — rewritten to describe the disposable Ubuntu ARM64 runner with no unmeasured free-space claims.

Nice, tight follow-up. LGTM.

Comment thread .github/workflows/full-tests.yml Resolved
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.

3 participants