Repository navigation
[code-review] Scripts self-test chunk cleanup: dropped run() input, weak refusal and exit-code checks, host-dependent cargo-deny test, reaped-PGID kill - #10366
Merged
Conversation
[code-review] Scripts self-test chunk cleanup: dropped run() input, weak refusal and exit-code checks, host-dependent cargo-deny test, reaped-PGID kill Outcome: success Orbit-Task: ORB-26223 Fixes: 2d25ec8 ("fix: [friction-curation] Release and PR-state guard self-tests fail ci-… [ORB-16740] (#5196)") Fixes: 1ef9830 ("fix: [code-review] Repair script guards and behavioral QA claims [ORB-21222] (#7679)") Fixes: 55bdd05 ("fix: [code-review] Keep benchmark cancellation fixture process identiti… [ORB-21023] (#7577)") Fixes: 629e77c ("fix: [code-review] Scripts self-test module [ORB-25945] (#10212)") Fixes: b4945b4 ("fix: Wait for the shard coverage proof to acquire [ORB-25704] (#10062)") Fixes: 1a5fa5b ("fix: [code-review] Preserve platform gates below redirected Rust file m… [ORB-22723] (#8430)") Fixes: a06f281 ("feat: Guard: flag Linux-gated test items left ungated for macOS [ORB-18296] (#6128)") Fixes: 4a57ff7 ("feat: Ship orbit-orchestrate skill for continuous task preparation, del… [ORB-11216] (#1339)") Regression-From: ORB-16740 Regression-From: ORB-21222 Regression-From: ORB-21023 Regression-From: ORB-25945 Regression-From: ORB-25704 Regression-From: ORB-22723 Regression-From: ORB-18296 Regression-From: ORB-11216 Regression: defect_in_new; escape=no_test; severity=low Regression: defect_in_new; escape=review_missed; severity=low Regression: defect_in_new; escape=no_test; severity=nit
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.
Task
ORB-26223 — [code-review] Scripts self-test chunk cleanup: dropped run() input, weak refusal and exit-code checks, host-dependent cargo-deny test, reaped-PGID kill
Description
Whole-module rotation review (ORB-26217) of module scripts chunk (47 direct files
scripts/release_schema_oracle.py…scripts/test-pr-state-workflows.py, 23,473 lines) at pinnedagent-mainSHA8ab34e3ce6e1015bc44905efd82764a88aa9bd21. Module ID: the sortedfile:selectors of those 47 files (recorded in ORB-26217'sreviewed-modules.json). Every finding was verified at the pinned SHA; no opencode-reviewtask covers any of them. Highest grouped severity: low.Findings
self_test_hang.run()silently dropsinput=unless the caller also passesstdin=PIPE— low.scripts/self_test_hang.py:130(def run(argv, *, step, timeout=None, check=False, input=None, ...)) and:176(proc.communicate(input=input, timeout=limit)). Unlikesubprocess.run, nothing setspopen_kwargs["stdin"] = subprocess.PIPEwheninputis given;Popen.communicateignoresinputwhenproc.stdinis None, so the child inherits the parent's stdin and a stdin-reading child hangs until the 120 s ceiling (reported as a hung step). Latent: the one currentinput=caller also passesstdin=PIPE. Culprit ORB-16740 (2d25ec8) introduced thecommunicate(input=...)wrapper;defect_in_new/no_test.scripts/smoke-plugin-install.sh:35-42:if "$repo_root/scripts/validate-codex-plugin.sh" "$invalid_root" >/dev/null 2>&1; then ... fi(same forvalidate-agent-plugin.sh). Output is discarded and only the status is checked, so a validator that crashes (traceback, missing support file) still printsplugin-invalid-install-is-refused; the check never confirms the refusal is thenot-semverversion error it provokes. Culprit ORB-21222 (1ef9830);defect_in_new/review_missed.cancellation-identityscenario never executesbench-build-budget.sh— low.scripts/test-bench-build-budget.py:946(scenario_cancellation_identity) patchessubprocess.PopenwithFakeBenchmark(:1137) plusos.pidfd_open/os.kill/os.killpg/select.select/read_arm_proc_identity/pid_alive;FakeBenchmarkwrites the arm files itself. The scenario only exercises this test file's own teardown helpers, yet reports "passed" alongside the real-script scenarios; a regression inbench-build-budget.shcannot fail it. Either drive the real script or rename/document it as a harness self-check. Culprit ORB-21023 (55bdd05);defect_in_new/review_missed.scripts/test-ci-fast-guards.py:2562-2566(CargoDenyGuardrailTests.test_real_cargo_deny_with_writable_fixture) copiesPath.home()/".cargo/advisory-dbs"when it exists (ignoringCARGO_HOME, whichcargo-deny.shhonours) and runsscripts/cargo-deny.sh check advisorieswith nocwd=, so it checks whatever workspace the caller is in. On a host with a live DB a new RUSTSEC advisory against a real Orbit dependency fails this wrapper test (which only claims to test writable-DB handling), and the outcome differs by host. Use_write_minimal_advisory_dbplus a tiny fixture workspace viacwd=. Culprit ORB-25945 (629e77c) added the host-DB copy;defect_in_new/review_missed.scripts/test-pr-state-workflows.py:856-861(nestedstop_process_groupinNextestShardWorkflowTests.test_proof_start_waits_for_lock_and_wait_propagates_result) runsos.killpg(process.pid, SIGKILL)in cleanup, but both leaders are reaped earlier (start.waitat :879,wait.communicateat :890). Once the background proof exits the PGID can be reused, and cleanup can SIGKILL an unrelated group. Sibling fixtures already avoid this (unreaped anchor intest-codeql-rust-local.pystop_group, pidfds in this file's_stop_owned_processes). Culprit ORB-25704 (b4945b4);defect_in_new/review_missed.scripts/test-openpty-portability.py:104,111,115(OpenptyPortabilityTests.test_redirected_descendants_keep_gates_and_loading_contexts, also :122,:130-131) andscripts/test-linux-gated-test-items.py:174(test_inline_format_arguments_and_attribute_arguments_are_uses) callcheck_tree(files, 1)without checking stderr, whilescripts/check-openpty-portability.py/check-linux-gated-test-items.pymain()also return 1 onexcept (OSError, ValueError). A scanner change that raises while resolving the ungated fixture passes these cases with no finding produced. Assert the expected finding line, astest_incident_shapes_and_repairsdoes. Culprits: ORB-22723 (1a5fa5b) for the openpty cases and ORB-18296 (a06f281) for the linux-gated case; bothdefect_in_new/review_missed.sync-plugin-skills.sh"no skills found" error is unreachable — nit.scripts/sync-plugin-skills.sh:16-28:for entry in "$source_root"/*/withoutnullglobleaves the literal glob for an empty/missing source, so thecanonical skill is missing: .../*/SKILL.mdexit at :20-22 fires before theno skills foundbranch at :27. Still exits non-zero; only the diagnostic is wrong. Culprit ORB-11216 (4a57ff7);defect_in_new/no_test.Acceptance Criteria
self_test_hang.run(..., input=...)delivers the input to the child without the caller also passingstdin=PIPE.scenario_cancellation_identityeither drives the realbench-build-budget.shor is named and documented as a harness self-check.test_real_cargo_deny_with_writable_fixtureuses a fixture advisory DB and fixture workspace independent of the host's~/.cargoand the caller's cwd.sync-plugin-skills.shreportsno skills foundfor an empty or missing source directory.Execution Summary
Click to expand
Outcome: success
Changes:
Criteria:
Validation:
Reconciliation:
Strategic decisions:
Design weaknesses / risks:
Deviations from original plan: none. The build-budget runbook was not edited because it does not name cancellation-identity.
Assessment: Each finding now fails its own check when the refusal text, finding line, stdin delivery, fixture isolation, group reservation, or empty-source diagnostic regresses. No Rust sources changed.
Validation
Branch Freshness
refs/remotes/origin/agent-mainorbit/ORB-26223-6bb2bc1a