Skip to content

test: separate integration runtime discovery from fixture execution - #249

Merged
kevin-orellana merged 7 commits into
mainfrom
feature/integration-when-then-names
Nov 4, 2026
Merged

kevin-orellana merged 7 commits into
mainfrom
feature/integration-when-then-names

Conversation

@kevin-orellana

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

Copy link
Copy Markdown
Collaborator

Human readable section

Problem: Runtime discovery, workspace setup, and fixture execution share one large integration-harness module. A contributor must navigate unrelated code to change how a test finds an interpreter or its libraries.

Solution: Move runtime discovery and its existing unit tests into a private module. Keep the fifteen public helper exports at the crate root, so existing cases use the same interface. Document the runtime module's responsibility.

Trade-off: This is a code-organization change. It adds no coverage and changes no containment behavior. Existing test names, selectors, assertions, and platform restrictions remain unchanged. Concurrent cleanup and shared scenario helpers came from the separate #256, now on main.

Description

The runtime module owns native interpreter discovery and the runtime library grants used by integration fixtures. Its public exports remain eleven functions, two types, and two constants. Thirteen existing unit-test functions move beside this implementation; all thirteen apply on Linux, and twelve apply on macOS because one checks Linux-specific host discovery.

The diff against merged main contains four files: lib.rs, runtime.rs, runtime/tests.rs, and the harness README. It retains main's tool-copy helper and updates the moved configuration test to use main's separate tool directory.

The final diff contains no bulk test renames, selector changes, Box tests, credential tests, or policy changes. Existing test names remain. Naming improvements should accompany a substantive case change when an existing name is unclear. This PR replaces the standalone runtime-extraction proposal in #257 and preserves its implementation.

Related Issues

Continues the integration-maintenance work from #187. Supersedes #257. Cleanup and shared move-scenario helpers came from #256, now on main.

Type of Change

Other: Runtime-helper organization and matching documentation.

Testing

Current main refresh at b233dbe

Head b233dbebcd4f457bb9c5d66a59338bbf7019e3bb merges main at 67e378ae16f2a8457a6b856228343086f404e743, including #288's metadata repair and Linux test compilation fix. The merge required no conflict edits.
The complete four-file diff against current main is byte-identical to the previously reviewed diff. Independent review verified the preserved helpers, tests, exports, and documentation in tree d9a5878e4e919bc64a236951a7d75691b361cf7e. Cargo.lock is unchanged.

Standalone harness formatting and scoped whitespace checks passed. No local build or runtime suite was repeated for this merge of unchanged PR content.

Current-head CI Gate passed. Linux ARM64 passed 131 integration cases with nine declared platform skips; macOS passed 128 with twelve platform skips. Each platform recorded all 140 cases, with zero failures or setup errors and Cargo exit zero. The previously failing metadata query case (SH-PROBE-PERMISSION) passed on both platforms.
The same jobs passed all 104 Linux and 103 macOS harness library tests, with zero ignored or filtered tests. GitHub tested merge 2005e52bb4f77db6a979a05201fcba3c7c2548cc; its tree exactly matches the reviewed source above.

The workspace Rust, site-manifest, separate Verdict, and native-filesystem jobs were skipped by changed-path filters. This is fresh harness and integration evidence, not a new full-workspace run. Rust CodeQL analysis also passed at this head.
Automated review at b233dbe reported an Approve assessment, independently passed strict harness Clippy and the 13 runtime unit tests, and found no new issue. It does not replace formal human approval.

The previous head's Linux and macOS metadata failures occurred before #288 merged. Retrying that old run did not import the repair. The new run above supplies current integration evidence. The earlier approvals were dismissed; renewed human approval remains required. Squash auto-merge is enabled.

Earlier conflict repair at d1c37bd

Head d1c37bd19d3582778b0ce875bdbc939f25bb4695 merges main e95d0c808f33d05afb246415fb9b57cf35cb0078. The reviewed source tree is c1db9f5ae22ae9dab8636e5ca8a219f753b28ca1.
Local checks ran on this frozen merged tree before the merge commit was created. The committed tree is identical.

The resolution retains the extracted runtime module and main's private install_tool helper. The moved configuration test uses /b/tools/built-hello, matching main.
The thirteen moved tests and their two test helpers match main after formatting. The runtime implementation differs from main only in a qualified rustdoc link.
Independent review confirmed the preserved exports, helper implementation, test bodies, and documentation.

Earlier local check Result and limit
Formatting, build, and lint Harness formatting passed. The Box and containment build with test-support passed. Strict all-target/all-feature harness Clippy passed with -D warnings and no command-line allowances.
Complete helper library 104 passed, zero failed or ignored. The first invocation ran before Box was built: 101 passed and three failed because strands-box was absent from PATH. Building Box and placing its binaries first on PATH corrected setup; no assertion changed. The initial failure log remains preserved.
Complete deterministic integration GREEN: 124 passed, nine declared macOS-only exclusions, and all 133 expected cases recorded. Zero failures/errors, no quarantine, and coverage_gate=full; runner exit zero in 240.48 seconds. Exclusions remain unexecuted assertions.
Harness support execution The deterministic runner also passed the same 104 helper tests in release mode. These are repeated tests, not 104 additional unique tests. One documentation example remained ignored.
Scope No full workspace suite or local macOS suite was repeated for this harness-only conflict repair. Earlier workspace and hosted results remain historical evidence below.

Local execution used Amazon Linux 2023 ARM64, Rust/Cargo 1.98.1, four build jobs, and four test threads. EXPERIMENTAL_LINUX_SUPPORT=TRUE was set.
Box and its trampoline used fresh debug binaries. The deterministic harness used release binaries and separate absolute build and result directories.
Shared fixture access was coordinated; a final process check found no remaining fixture consumers.

Commands ran from the repository checkout with those environment settings:

cargo fmt --manifest-path test-integ/Cargo.toml --all --check
cargo build --locked -p strands-box -p strands-box-containment --features test-support
cargo test --manifest-path test-integ/Cargo.toml --locked --all-features --lib
cargo clippy --manifest-path test-integ/Cargo.toml --locked --all-targets --all-features -- -D warnings
cargo test --manifest-path test-integ/Cargo.toml --release --locked --no-run
bash test-integ/run.sh --locked

Earlier hosted validation failed. CI Gate failed. Both deterministic jobs failed the shared metadata-budget test (SH-PROBE-PERMISSION).

Both jobs checked out merge b327f0ad26616c8a80a90e076161f5da0ab25b51, combining this head with newer main 917e71d010243f4a6ed72533ceb5d7047494f50f from #268.
That integration contains 137 cases. The local 133-case result above covers the separately stated e95d0c8 merge tree.

Hosted platform Passed Failed Declared skips Recorded / expected
Linux ARM64 127 1 9 137 / 137
macOS 124 1 12 137 / 137

Both verdicts are RED, with zero setup errors and Cargo exit 101. The test expects PY=False after a permission-refused metadata query.
Both platforms instead report PermissionError: .../locked/f.txt: cannot be resolved to a path this box acts on. The subsequent file read succeeds (keptCAT=0), so the expected metadata-budget refusal is not observed.

The failing file, test-integ/tests/shell/sh_probe_permission.rs, was introduced by #268 and is absent from authored head d1c37bd.
Its blob dc88afb4bc96bcdf65388985b4dcf0aa6d4f2e2b is identical in newer main and the hosted merge. No retry or source change has been made for this failure.
This failed result remains preserved. The current refresh above includes the shared repair and starts a new integration run.

The changed-path filters skipped Rust, Site manifest, Verdict, and Native Filesystem jobs. Separate Rust CodeQL analysis passed.

Automated review. The current-head assessment is Approve, for d1c37bd compared with e95d0c8.
It confirms the preserved extraction, exports, lint, and documentation. It separately reports 101 helper passes and three failures also seen on main on its host.
Our built-binary and corrected-PATH invocation passed all 104 helpers, as recorded above. The automated assessment does not clear the newer-main CI failure.

At Kevin's request, Codex reviewed this conflict resolution and recorded its validation.
The prior formal approval at beb0389 was dismissed after this push. A new formal maintainer approval remains required. Squash auto-merge remains enabled.

Historical validation before the main merge

The following evidence covers tree 9a19007bf36c8af10ce627d1a34cc541a72e5680 and its stated earlier revisions. It does not cover the current merged tree.

Category What the tests prove Results and remaining gaps
Containment: 78 deterministic cases Cases distinguish allowed operations, required refusals, and recorded filesystem, execution, process, network, and environment limits. The identical source tree passed 69 cases on Linux with nine macOS-only skips, and 66 on macOS with twelve Linux-only skips. Terminal observations do not prove terminal isolation; complete parity is not established.
Policy: 9 deterministic cases Mediated requests follow authorization rules and retain deny-only protections. Nine passed on each platform. No authorization or denial assertion changed.
Shell: 24 deterministic cases Shell requests preserve checked results, policy refusals, error distinctions, and request isolation. Twenty-four passed on each platform.
Monty restricted Python: 14 deterministic cases Restricted Python requests retain their supported operations and policy boundaries. Fourteen passed on each platform. This does not establish native Python containment.
Telemetry: 8 deterministic cases Records retain checked identity, decision, destination, trace, and payload protections. Eight passed on each platform. A deployed telemetry service remains outside this qualification.

The nine Linux skips remain CN-D-01, CN-D-02, CN-E-04, CN-F-02, CN-F-03, CN-I-13, CN-L-01, CN-P-02, and CN-T-05. They are actual test cases declared for macOS. Linux-specific cases check different boundaries. Test-gate enforcement from #185 is unchanged; deployment qualification remains separate.

Earlier exact source. Base e4ca8b80359b2213d684de31cd6ef32e0d61478a; published head beb038964d485bbef3e0664ca8f7621efddce8e2; tree 9a19007bf36c8af10ce627d1a34cc541a72e5680. That earlier commit removed the naming changes without rewriting reviewed history.

This complete tree is byte-identical to runtime head 2ebeeade92a82598e0034a670403b15e90904aef and hosted test merge 3c4114302277385b07b355d443e384ee3c258875. The GitHub merge-commit object and local tree comparison both confirm that identity. The full-suite results below therefore cover the same source. That earlier head obtained a passing hosted CI Gate, with rerun evidence below. Formal GitHub approval remains required.

Check Result and execution boundary
Earlier formatting and strict harness lint Formatting and strict all-target/all-feature Clippy passed.
Earlier compilation and restored selectors All test targets compiled. The containment binary discovered its existing names; all three fault-script selections passed: normal capture, deliberately permissive execution, and refused workload entry. Expected failures/errors and incomplete-subset RED verdicts were preserved.
Earlier runtime unit tests All thirteen passed, with zero failed or ignored, using the original runtime-discovery environment. An initial run with cached Python 3.12 first reported twelve passes and one failure: that interpreter imports _ctypes without a shared-library file, so the existing host-discovery assertion found no extension directory. Independent probes confirmed the environment difference; the identical test binary passed with system Python. No assertion changed.
Independent final review Approved the final tree. Independent checks restored all 137 original names and original selectors; confirmed all test bodies, identifiers, platforms, and ignores are retained; and verified byte identity with the previously reviewed runtime extraction. The Python-environment limitation above remains recorded.
Identical-tree hosted Linux integration Run 41286776896 passed 124 integration cases with nine declared platform skips, zero failures/errors, and all 133 cases recorded.
Identical-tree hosted macOS integration The same run passed 121 integration cases with twelve declared platform skips, zero failures/errors, and all 133 cases recorded.
Identical-tree hosted helper units and support checks Linux passed 93 library unit tests and 16 support checks; macOS passed 92 library unit tests and 11 support checks. Both passed their selected filesystem-mode controls and ignored one documentation example. These counts are separate from integration cases.
Earlier full Linux workspace validation Unit/bin targets: 1,873 passed, seven ignored. Integration targets: 2,709 reported passes, nine ignored. One reported pass returned before its absent-daemon assertion; another omitted alias-read protection but executed write checks. Thus 2,707 passes had neither documented omission. The successful custom box_library target emits no count and is excluded. Documentation: 13 passed, one ignored. This earlier run covers unchanged workspace sources; it was not rerun for this standalone-harness change.
Earlier build and lint gates Workspace build, formatting, repository Clippy, example gate, strict harness lint, and strict private-item rustdoc passed. The example gate ran zero examples because no scripted examples remain; the manual tutorial was not run. Workspace Clippy uses the existing allowances listed below.
Hosted checks for earlier head beb0389 CI Gate passed on attempt 3 on November 3, 2026, at unchanged earlier head beb0389. Linux recorded 124 passes, nine declared platform skips, and all 133 cases, with zero failures/errors. The retained macOS result from attempt 2 recorded 121 passes, twelve platform skips, and all 133 cases. Rust, native-filesystem, and Verdict jobs were skipped by changed-path filters; this was not a new workspace-suite execution. Formal GitHub approval remains required.

Hosted rerun evidence. Both reruns checked out merge 98c892f403b9d399d44b274e50d21ddbc7d15cf1, combining published head beb038964d485bbef3e0664ca8f7621efddce8e2 with base e4ca8b80359b2213d684de31cd6ef32e0d61478a. They did not test a newer main revision. Attempt 2's Linux job recorded 123 passes, nine platform skips, and one error. CN-W-05 encountered ExecutableFileBusy (Text file busy) while executing its host control outside Box, before its containment assertions. One failed-job retry passed without source changes. Attempt 3's Linux job records CN-W-05 as PASS.

The unchanged case checks allowed Git and hook execution, plus refusals for read-only writes, an ungranted program, and protected configuration reads. It also checks refusal of agent hook execution and undeclared Git. The earlier error's cause remains unresolved; the retry is not a source fix.

The initial status query did not expose CI Gate. A later complete check query returned the original successful Gate, the failed attempt-2 Gate, and the successful attempt-3 Gate. This evidence does not establish that the original Gate never existed or explain its earlier absence from the query.

The raw deterministic verdict records box_commit: unknown; verified Git trees, checkout logs, and build receipts identify its source. Successful Cargo wrappers for platform-inapplicable cases are reported as skips in the integration verdict.

Earlier Linux environment. Those targeted checks use Amazon Linux 2023.12.20261102 as reported by /etc/os-release, AArch64, kernel 6.12.113-138.209.amzn2023.aarch64, Rust/Cargo 1.98.1, EXPERIMENTAL_LINUX_SUPPORT=TRUE, and CARGO_BUILD_JOBS=2. The built Box binaries precede the host defaults on PATH; runtime discovery uses the original system Python selection. Python 3.12.16 is first only during fault-script execution, which needs tomllib. HOME is unchanged. The standalone harness uses an absolute shared CARGO_TARGET_DIR. Hosted platforms were Ubuntu 24.04 ARM and macOS latest. Earlier native macOS helper validation used Darwin 27.2 ARM64.

Earlier targeted commands, from that candidate checkout:

cargo fmt --manifest-path test-integ/Cargo.toml --check
cargo clippy --manifest-path test-integ/Cargo.toml --all-targets --all-features -- -D warnings
cargo test --manifest-path test-integ/Cargo.toml --release --all-features --no-run --message-format=json
<compiled-library-test-binary> runtime::tests --show-output
<compiled-containment-test-binary> --list
cargo build --manifest-path test-integ/Cargo.toml --release --all-features --bin emit-verdict
python3 test-integ/tools/phase3-faults.py --binary <compiled-containment-test-binary> --emitter <compiled-emit-verdict> --results <fresh-results-directory>

Earlier applicable gates and full-suite commands:

cargo build --workspace --all-features
cargo fmt --all --check
cargo clippy --workspace --all-targets --all-features -- -D warnings -A clippy::too_many_arguments -A clippy::only_used_in_recursion -A clippy::await_holding_refcell_ref -A clippy::explicit_auto_deref -A clippy::chunks_exact_to_as_chunks -A dead_code -A non_snake_case
cargo test --workspace --all-features --no-fail-fast -- --show-output
python3 scripts/check-linux-test-output.py <workspace-test.log>
bash scripts/test-all.sh box-examples
RUSTDOCFLAGS='-D warnings --document-private-items' cargo doc --manifest-path test-integ/Cargo.toml --all-features --no-deps
DET_RESULTS_DIR=<fresh-results-directory> bash test-integ/run.sh --all-features

just was absent on the local Linux host, so its relevant gates ran through the direct commands above. The existing Linux execution reporter retained exactly the missing-daemon and partial alias-read omissions. The identical-tree hosted workspace Rust and native-filesystem jobs were skipped by changed-path filters; the earlier local workspace evidence remains separate.

  • I ran the relevant suites (just check, or cargo test --workspace --all-features); exact-source and earlier unchanged-workspace boundaries are stated above.
  • If I touched Rust, I ran formatting and the repository Clippy gate; workspace allowances and strict harness lint are distinguished above.

Checklist

  • I have read the CONTRIBUTING document.
  • I have reviewed and understand every line of code in this PR, including generated code, and can explain why it works.
  • My change is focused and reasonably small; behavioral cleanup remains separate in test: clean up concurrent integration fixtures and share move scenarios #256.
  • Existing tests and assertions are retained; source equivalence and targeted execution verify preservation.
  • I updated the documentation accordingly.
  • My changes generate no new 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

Short integration case codes obscure the checked behavior in test output.
The readable-name request covers the complete 133-case deterministic inventory
and four related workspace integration tests, not only the initial examples.

## Solution

Rename 137 test functions to when_<condition>_then_<expected_outcome>.
Preserve case IDs, filenames, platform declarations, assertions, and ignored
status. Update exact-name documentation and the test naming example. Separate
one documentation paragraph from its preceding list to satisfy harness Clippy.

## Tests

Linux workspace all-features tests passed: 1868 unit/bin and 2709 reported
integration passes, with the absent credential daemon and partial alias-read
coverage explicitly retained. Documentation tests: 13 passed. Deterministic
rerun: 124 passed, 9 declared macOS skips, 0 failures/errors. The initial run hit
one CN-W-05 host-control Text file busy setup error; unchanged rerun passed.
Build, format, Clippy with repository allowances, strict harness Clippy, and
credential documentation passed. All 133 renamed deterministic functions were
discovered; inverse renaming verifies all test bodies remain unchanged.
Native macOS compiled all 133 cases and executed credentials tests on the
previous candidate base; its real-daemon case also returned early.
Box and credentials also built with default features disabled. The examples
command reported no scripted examples; no example behavior was exercised.
@github-actions github-actions Bot added chore Maintenance tasks, dependency updates, CI changes, refactoring with no user-facing impact Area - Release strands-running labels Oct 30, 2026
@github-actions

Copy link
Copy Markdown

Important (blocking): test-integ/tools/phase3-faults.py selects cases by the old <stem>::<stem> path. After this rename it selects no tests, so the Phase 3 fault check cannot run. The PR says fault-injection scripts are unaffected, but this one is affected.

Example: Line 78 builds the filters as f"{name}::{name}", for example cn_t_01::cn_t_01 and cn_i_11::cn_i_11. Before this PR, those strings matched the old functions. Now the paths are cn_t_01::when_tool_reads_files_then_… and similar, so the strings match nothing. I checked this against the compiled containment binary at 6a97718:

$ containment-… --list cn_t_01::cn_t_01 cn_p_01::cn_p_01 cn_i_08::cn_i_08 … cn_l_04::cn_l_04
0 tests, 0 benchmarks
$ containment-… --test-threads=1 cn_i_11::cn_i_11
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 83 filtered out

The normal-capture step requires returncode == 0, and that check passes. The script then fails with FileNotFoundError on CN-I-11.jsonl, so the eight Phase 3 refusal fault checks never run. Nothing in CI calls this script, so the hosted checks do not show the break.

Suggestion: Select by module, as the README now recommends. On line 78, use *[f"{name}::" for name, _ in selected.values()]. The trailing :: keeps the filter tied to one module. Then run the script once to confirm that all three selections still pass.

@github-actions

Copy link
Copy Markdown

Assessment: Request Changes

The rename is consistent and keeps case IDs, filenames, and assertions. One consumer still uses the old function path to select tests, so it now selects nothing (see the comment about phase3-faults.py).

Checks that held
  • verdict.json and emit-verdict key on id: (run_case_on($id, …)), not on the function name, so reports do not change.
  • Every old name: was the same as its file stem, so module filters still select each case: run.sh, the README's cargo test --test containment cn_y_05, and fault-inject.sh subset po_9.
  • scripts/check-linux-test-output.py matches diagnostic messages, not test names. The ci: require real Linux test execution #185 reporter does not change.
  • No premise-pinning test named in root AGENTS.md is renamed, and no doc or workflow refers to a removed name. I searched all 138 old names.
  • The --exact filter in crates/credentials/README.md matches the real path: credsd_e2e is a top-level module of end_to_end.
  • I compared a sample of new names with their desc: strings (shell/*, PO-9, CN-I-11, CN-T-01, CN-B-02), and they agree.

After the one-line filter fix, the PR is ready to merge.

## Problem

The Phase 3 fault-check script constructs module::function filters from case
stems. The renamed functions no longer match, so each filter selects no tests.

## Solution

Select each stable module path with its trailing double colon. Preserve the
fault fixtures, expected refusals, result validation, and test assertions.

## Tests

Compiled discovery confirms all eight old filters select zero tests and each
replacement selects one intended case. With Python 3.12.16, all three fault
selections pass: normal capture, permissive execution, and refused entry.
The reducer preserves expected FAIL/ERROR distinctions and RED subset verdicts.
The first script run stopped on Python 3.9 lacking tomllib; the interpreter
was corrected without changing any fixture or assertion.
@github-actions

Copy link
Copy Markdown

Assessment: Approve

At 49f7f1b, the earlier blocking finding is fixed. phase3-faults.py now selects "{name}::", and the new commit changes only that one line.

What I re-verified at 49f7f1b
  • Each of the eight new filters (cn_t_01:: … cn_l_04::) selects exactly one test from the compiled containment binary, and together they select 8.
  • I ran tools/phase3-faults.py end to end on Linux with Python 3.13, and all three selections passed:
    • normal-capture: CN-I-11 PASS.
    • permissive: CN-T-01 ERROR, CN-I-11 PASS, the other six FAIL.
    • no-entry: all eight ERROR.
    • The diagnostic-subset verdict stayed RED in all three.
  • Every check listed in my previous summary still holds. No other file changed.

@kevin-orellana
kevin-orellana enabled auto-merge (squash) November 1, 2026 06:02
## Problem

Native interpreter discovery and tool configuration share one large file with fixture execution.
Their platform-specific unit tests make that file harder to extend and review.

## Solution

Move runtime discovery and configuration into a private runtime module.
Move its thirteen existing unit test functions into runtime/tests.rs.
Preserve all fifteen root helper exports and every integration case and platform declaration.
The moved implementation and test bodies are unchanged except for indentation and a qualified documentation link.
Document the helper boundary and preserve the one-file-per-case extension pattern.

## Tests

Thirteen runtime unit functions pass on Linux; twelve pass on macOS, where one Linux-only function is excluded.
linux_python_discovery_grants_runtime_libraries_without_the_usr_prefix pins Linux runtime selection.
the_probe_config_grants_only_the_runtime_directories_and_declares_the_search_path pins narrow runtime grants.
the_git_tool_config_declares_the_real_git_and_claims_nothing_about_lookup pins the tool configuration.
Independent source comparison verifies all moved bodies and public root exports.
The combined rename and both helper patches pass 124 Linux integration cases with nine declared macOS-only skips.
All 133 case records are present; 100 harness library unit tests and sixteen support checks pass.
Full workspace tests, all-features build, formatting, repository Clippy, strict harness Clippy, and strict private rustdoc pass.
Workspace output retains the missing credential-daemon and partial alias-read diagnostics.
The example gate builds successfully but executes zero examples because no scripted examples remain.
No new functional coverage is claimed. Native macOS checks cover helper units and compilation;
full macOS integration and deployment qualification are separate.
@github-actions

github-actions Bot commented Nov 1, 2026

Copy link
Copy Markdown

Assessment: Approve

At beb0389, the PR tree matches 2ebeead exactly: git diff 2ebeead beb0389 is empty. The bulk renames, the selector change, and the unrelated files are all gone. What remains against main is the runtime-helper move plus three doc-only edits, and the updated description matches it.

Checks that held
  • The move keeps the code the same. I compared the lines removed from lib.rs with runtime.rs and runtime/tests.rs, ignoring indentation. The only differences are rewrapped lines, the crate::BoxFixture link, #[cfg(test)] mod tests;, and the test imports.
  • No public name is lost. All 15 public items that left lib.rs are re-exported by name from the crate root.
  • Test counts add up. main had 46 #[test] items. Now lib.rs has 33 and runtime/tests.rs has 13. The Linux-only discovery test keeps its #[cfg(target_os = "linux")].
  • Lint and docs pass. Strict harness Clippy and strict private rustdoc are clean.
  • Unit tests pass here. All 13 runtime:: unit tests pass on Linux.
  • The fault check works on the original names. With the selector change gone, tools/phase3-faults.py passes against the original case names.

@kevin-orellana kevin-orellana changed the title test: name integration cases by condition and expected outcome test: clarify integration case names and organize runtime helpers Nov 1, 2026
@kevin-orellana
kevin-orellana enabled auto-merge (squash) November 1, 2026 09:34
@github-actions

github-actions Bot commented Nov 1, 2026

Copy link
Copy Markdown

Assessment: Approve

At 99385e0, I reviewed what the merge brings in from #257: the runtime-helper move (2ebeead) and #246, which is already on main. I found nothing to change. The merge resolution itself adds no hunks (git show --cc is empty).

Checks that held at 99385e0
  • The move keeps the code the same. I compared the lines removed from lib.rs with runtime.rs and runtime/tests.rs, ignoring indentation. The only differences are rewrapped lines, the crate::BoxFixture link, #[cfg(test)] mod tests;, and the test imports.
  • No public name is lost. All 15 pub items that left lib.rs are re-exported by name through pub use runtime::{…}.
  • Test counts add up. main had 46 #[test] items in lib.rs. Now lib.rs has 33 and runtime/tests.rs has 13, so 46 in total. linux_python_discovery_grants_runtime_libraries_without_the_usr_prefix keeps its #[cfg(target_os = "linux")].
  • Lint and docs pass. cargo clippy --all-targets -D warnings and RUSTDOCFLAGS=-D warnings cargo doc --document-private-items are clean.
  • Unit tests pass here. All 13 runtime::tests pass on Linux. The 3 tests::* failures ("strands-box not found") also happen on main at e4ca8b8, because this environment has no strands-box binary. They are not caused by this PR.
  • The fault check still works. tools/phase3-faults.py passes all three selections at this head.

@kevin-orellana kevin-orellana changed the title test: clarify integration case names and organize runtime helpers test: separate integration runtime discovery from fixture execution Nov 1, 2026
@kevin-orellana
kevin-orellana enabled auto-merge (squash) November 1, 2026 09:58
siwachabhi
siwachabhi previously approved these changes Nov 3, 2026
priyasingh2111
priyasingh2111 previously approved these changes Nov 3, 2026
@github-actions

github-actions Bot commented Nov 3, 2026

Copy link
Copy Markdown

Assessment: Approve

d1c37bd merges main into the branch, and the merge carries everything over correctly. Against main (e95d0c8), the PR now touches only four files: README.md, lib.rs, runtime.rs, and runtime/tests.rs. The egress.rs and cn_native_egress.rs edits are no longer in the PR diff because main already contains them.

Checks that held
  • Changes from main are kept. main's change to the the_probe_config_grants_only_… template (/b/ws/out/built-hello → /b/tools/built-hello, from test: clean up concurrent integration fixtures and share move scenarios #256) is now in runtime/tests.rs. install_tool and the other test: clean up concurrent integration fixtures and share move scenarios #256 and fix: prevent workload changes to configured tool commands #263 edits stay in lib.rs, outside the moved code.
  • The move is clean. I compared the lines removed from main's lib.rs with runtime.rs and runtime/tests.rs, ignoring indentation. The only differences are rewrapped lines, the crate::BoxFixture doc link, the module header and imports, and mod tests;. Nothing else was lost or added.
  • No public name is lost. The 15 public items are re-exported from the crate root.
  • Lint and docs pass. Strict Clippy and strict private rustdoc are clean.
  • Unit tests: 101 pass and 3 fail. The three failures are an_unlisted_case_cannot_skip_on_macos, the_restored_workloads_run_on_linux, and the_same_cases_still_run_their_bodies_on_macos. They fail the same way on main (e95d0c8) on this host, so this PR does not cause them.

@github-actions

github-actions Bot commented Nov 4, 2026

Copy link
Copy Markdown

Assessment: Approve

b233dbe only merges main again. The PR diff against main (67e378a) is byte-for-byte the same as the diff at d1c37bd: the same four files, all in test-integ.

Checks that held
  • main did not touch the moved code. Nothing under test-integ/src/ changed between e95d0c8 and 67e378a, so the runtime extraction did not need to absorb anything this time.
  • New tests do not use the moved helpers. The seven new test-integ/tests probe files from main do not reference any of the 15 moved runtime items.
  • Lint passes. Strict Clippy over all targets and features is clean, including those new test targets.
  • Unit tests pass here. All 13 runtime:: unit tests pass on Linux.

@kevin-orellana
kevin-orellana merged commit 1d5cb05 into main Nov 4, 2026
23 checks passed
@kevin-orellana
kevin-orellana deleted the feature/integration-when-then-names branch November 4, 2026 02:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area - Release chore Maintenance tasks, dependency updates, CI changes, refactoring with no user-facing impact

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants