Repository navigation
fix(openhands): protect native shard discovery before macOS CI retirement - #959
Merged
seathatflowsinourveins merged 1 commit intoOct 10, 2026
Conversation
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
seathatflowsinourveins
deleted the
codex/runtime-workers-validate-shards-push-gate-20261010
branch
October 10, 2026 07:38
This was referenced Oct 10, 2026
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.
Scope
Recognise
python3 scripts/validate_shards.py runas repository-roottest*.pydiscovery in the OpenHands resolver's trusted push gate. This is the prerequisite for #957: replaying its current head showed 258 of 321tests/*.pyfiles losing protection when the macOS workflow was retired; the fixed gate protects all 321 and gives a new moduleci_discovered.a30c2188e4423f05a7448e5f7a3bcfd858e0f5b8.lane:foundation.blueprints/runtime-workers/openhands/resolver/push_gate.py, its datedevidence/shard-discovery-protection-20261010.json,tests/test_runtime_worker_openhands_push_gate.py,docs/decisions/2026-10-10-openhands-shard-discovery-protection.md, andmanifests/evidence.json.The repository-tree regression keeps the real shard suite step, removes other workflows and injects a new test module. It fails before the fix on main and on exact #957 source/tree
7df900f7dd6f24b20e3d9e54cfd21aba318d75e8, then passes. The existing protected expectation becomes the strongerci_discoveredrule. A MemoryTree regression retains Git-free derivation and rejectsaggregate,runnerandrun-againas discovery calls.Correctly identifying
tests/test_catalogs.pyas a discovered test also removes its eight locations from advisory gate-script import tracing. The historical monitoring receipt stays intact; the test asserts this exact correction, every remaining script count and every recorded shape.SOTA sources
scripts/validate_shards.py:94-96ata30c2188e4423f05a7448e5f7a3bcfd858e0f5b8: the shipped wrapper delegates discovery to the native loader withtest*.py; lines 186-197 establish the current working directory as root.v3.12.3,Lib/unittest/loader.py:229-233, 344-374 and 419-444:TestLoader.discoverroot/pattern semantics and package recursion. The existing native runner and existing gate traversal are reused.Evidence-class table
ci_discoveredafterward when only the real shard suite step is presentsyntheticfail_beforelocal_integrationrepository_tree_measurementssyntheticgit_free_regressionlocal_integrationsource_reviewReceipt: shard-discovery-protection-20261010.json. The source pin is CPython 3.12.3; execution used the installed Python 3.13.16 client. The existing importable-package discovery boundary still applies.
Local commands run
Decision record
2026-10-10-openhands-shard-discovery-protection.md records the sources, measured comparison, monitoring correction and the wrapper changes that would require revisiting this mapping.
Host evidence
Not applicable: the added receipt records local gate integration and synthetic regression fixtures.
Checklist
permissions: {}and grant each job only what it needs.CC Claude read at this head gates landing. #957 rebases onto this prerequisite after it lands.