Repository navigation
ci: require native Linux x86-64 runtime tests - #446
Conversation
## Problem Experimental Linux x86-64 support has no native pull request test jobs. ARM-only test guards also leave existing containment assertions untested on x86-64, so the required CI Gate cannot catch those regressions. ## Solution Add Ubuntu x86-64 to the existing workspace and deterministic test matrices. Enable EXPERIMENTAL_X86_SUPPORT only in the x86 jobs. Admit x86-64 in portable Rust tests and the installed-package lifecycle runner. Preserve existing assertions, namespace prerequisites, skip checks, and gate policy. Update the manual workflow and contributor documentation. No production permissions, startup defaults, or packaging behavior change. ## Tests The native x86 workspace passed: 5,623 passed, zero failed, 20 ignored. The unchanged Linux output checker, workspace Clippy, and formatting passed. The new runner admission tests fail against the old x86 guard; all 13 runner tests and 88 packaging/script tests pass. Removing unsupported-host refusal fails the negative runner test. Required reusable workflows pass actionlint. Eight controlled inputs to the pinned gate action preserve failure handling. ARM deterministic tests passed 131 cases, with ten declared macOS-only exclusions; all seven lifecycle cases passed. The full ARM workspace retains two ETXTBSY failures in the unchanged mcp_alias_fallback fixture. An immutable base build reproduces that launch failure. All 46 affected integration tests pass. This shared fixture repair is outside the x86 CI milestone. Native x86 release-mode and lifecycle checks are running. Candidate hosted matrix checks and macOS validation await publication. These pending checks and the ARM fixture failure remain explicit validation limits.
|
Assessment: Comment The CI wiring looks correct. I found one problem in how tests are admitted, covered in the inline comment: on x86-64, box-spawning tests now fail instead of skipping when a contributor runs them locally without Assumptions and rules checked that held
The ARM64 |
|
Assessment: Approve (from my side; no open findings) Re-reviewed at da780d7. The x86 opt-in is now a prerequisite in the shared Box test helper, so local x86-64 runs without it skip, and the CI skip checker still turns a missing opt-in into a job failure. I found no new issues. Assumptions and rules re-checked at da780d7
The hosted run for da780d7 was still pending when the PR description was written. Its result is the remaining gate. |
Description
Linux x86-64 support is experimental, but pull request checks currently run Linux only on ARM64. Add native Ubuntu x86-64 jobs to the existing workspace and deterministic containment suites. Their failures contribute to the existing required
CI Gatecheck.The x86 jobs set Box's
EXPERIMENTAL_X86_SUPPORTenvironment variable to exactlyTRUEbefore running Box. Existing portable tests and the process-lifecycle runner now admit x86-64. On Linux x86-64, the shared Box test helper treats that exact opt-in as a prerequisite: an absent or different value produces askipping:diagnostic before tests try to start Box. The helper never enables the flag itself.CONTRIBUTING.mdtells local contributors how to enable it.The same assertions, namespace requirements, skip checks, and failure rules apply on both Linux architectures. The existing Linux test-output checker rejects the new prerequisite skips, so a job that omits the flag still fails. The new opt-in prerequisite does not change ARM64 or macOS tests. The manual full-test workflow also offers the x86 runner.
Figure 1: Native ARM64, x86-64, and macOS jobs contribute to the required check. The x86 jobs enable the experimental runtime. Other existing gate dependencies are omitted.
Editable diagram.
Related Issues
Part of #45 (X2: required native x86 test coverage). Also supports the shared CI work in #48. Packaging, download selection, and release qualification remain separate milestones.
Type of Change
Other: continuous integration coverage and test-host admission.
Testing
Final revision:
da780d7. Hosted checks for this revision passed all three workspace jobs, all three deterministic containment jobs, andCI Gate. The earlier local and hosted results below apply to the earlier revision8e70c1f, before the ten-line test-helper and documentation fix.The final Ubuntu x86-64 workspace reported 5,623 passed, 20 ignored, and zero failures. The unchanged skip checker accepted only the two existing alias-read and missing credential-daemon gaps, with no missing-opt-in diagnostics. Its containment job passed 3/3 filesystem-mode tests, 131 deterministic cases, and 7/7 process-lifecycle checks; the deterministic result includes 10 declared macOS-only exclusions and records all 141 expected cases.
On macOS, the informational signed-native receipt check reported a stale receipt. That step is unchanged from the base and explicitly permits failure. The macOS test
bridge_denials_shutdown_errors_and_signed_device_idsintest-native-filesystem/tests/bridge.rsalso returned before its checks for permission events, device identifiers, and shutdown errors because the runner lacks the macOS 27 software development kit (SDK). The successful macOS job does not establish that either check passed.The fix passed native x86 controls using
cargo test -p strands-box --all-features --test box_shell_cwdand the unchanged Linux test-output checker:EXPERIMENTAL_X86_SUPPORTFALSEtrueTRUEBefore the fix, the same suite on
8e70c1ffailed all 15 tests when the flag was unset; the base helper did not admit x86-64. Formatting and focused Box Clippy passed after the fix. The final hosted run also passed after this fix.Earlier hosted run: 43477815663 passed all three workspace jobs, all three deterministic jobs, and
CI Gate. The hosted ARM64 workspace reported 5,619 passed, 20 ignored, and zero failures, including all ninemcp_alias_fallbacktests. Its unchanged skip checker accepted only the existing alias-read and missing credential-daemon gaps. The hosted checkout's tree matches8e70c1f.Earlier local validation at
8e70c1f:mcp_alias_fallbackfixture error described below. All 46 tests in the ten affected integration suites passed. Scoped Clippy and the build without default features passed.cache-modeschema error in the base and candidate; no new lint error was introduced.The local ARM64 run failed while starting the alias test executable with
ETXTBSY(Text file busy). The fixture source is unchanged. An isolated, immutable base build at70eb3afreproduces the same failure; the affected candidate cases pass alone and fail intermittently in a parallel group. The failed full-suite result and base controls remain recorded. The later hosted pass does not establish a repair. This PR preserves all failure rules, and the shared fixture repair remains outside X2.At
8e70c1f, the x86 patch compiled and passed 34 tests that were previously excluded. Another 16 existing tests executed their assertions instead of returning early for ARM-only restrictions. All code, runners, and workflows used in that native validation match published revision8e70c1f; this correspondence predates the ten-line review fix. The local deterministic report retainsbox_commit: unknown; separate source and executable hash records identify the tested build. These checks use locally built executables and do not qualify a published package or installer.The diagram uses the pinned draw.io container at scale 2 with a 20-pixel border. The existing startup diagram re-export was byte-identical. The new diagram passed layout checks and was visually inspected.
just check, orcargo test --workspace --all-features)cargo fmt --allandcargo clippy --workspace --all-targets --all-features -- -D warningsChecklist
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.