Repository navigation
test(release): coordinate fake curl fixture materialization - #1425
EffortlessSteven merged 2 commits into
Conversation
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configuration
You can disable this status message by setting the Use the checkbox below for a quick retry:
Comment |
EffortlessSteven
left a comment
There was a problem hiding this comment.
Independent exact-head review: no material findings in this bounded repair.
Candidate 1022a85db2dcdc1e0931375e29f59dbd23fa8014, tree 36ff38c29416849af59559416c34c2b1955efe5e, base/prerequisite #1401 93fd1e4701f8f5e20571628eda55c639fec5d3b4. Live head/base were re-read unchanged before submission. Exact diff is tests/cli.rs only, one insertion/two deletions.
The production resolver really executes PATH curl (action.yml lines 477/482), while the test puts this fake curl first in PATH. The helper takes the exclusive lock before fs::write and holds it through chmod. Every process creation in this CLI test process uses the shared spawn boundary; the shared guard lives through Command::spawn returning, covering the inherited-descriptor window, then drops before wait/wait_with_output. No retry, error flattening or child-wait serialization is introduced. Bash reads runner scripts; archive source candidates are copied into archives and execution occurs on extracted inodes. Their unchanged writes do not justify expanding this patch. Separate cli_run integration binaries have separate process descriptor tables and are not same-process lock participants.
Independent Linux/Rust 1.95.0 execution:
- Exact candidate:
cargo test --locked --offline --test cli executable_fixture -- --test-threads=1: 2/2 passed, including concurrent native launches, live-child unlocked lifetime, original OS26 and capture/expected-failure I/O semantics. - Exact candidate:
cargo test --locked --offline --test cli release_resolver_ -- --test-threads=1: 2/2 passed, including the real fake resolver contract and its malformed archive/identity controls. - Separate std-only probe imports the exact candidate helper and extracts its byte-identical fake curl script. One fixed 500-attempt unguarded concurrent run observed 6 ETXTBSY/500, with 4,000 background /bin/true launches; one coordinated run observed 0/500 with the same background count. No stress repetition to obtain a desired result. These independently observed counts are distinct from the author's 29/2,500.
- Holding a real writer caused immediate direct OS26 and Bash PATH-curl exit126; closing it restored exact copied archive bytes. Native capture preserved null-stdin EOF, stdout
out, stderrerr, and exit7. Missing-parent and directory write failures remained errors. - Local current-main composition: main
2b8e66ebe5f11608fb9e85da4af7c5747252f86fplus candidate; isolated commit0e161d0681d3656216ceac6878709d3708585628, tree59f2c81c8a736e52b91e2c74d973870c28ad89ae. Both focused commands passed 2/2 each. Clean merge-tree and diff checks passed. This is local composition, not a claim about the hosted checkout.
Probe source SHA2561c2acf951755da454194b62212263a986cf3173b9c859fe01978509bc5b19a36, retained at /tmp/review1425-probe.rs. Initial probe stress invocation omitted fake curl arguments and failed setup; that invocation establishes no race result. Corrected invocation above was run once. Initial rustup default-home and tree-as-commit setup failures likewise supplied no candidate evidence.
Current checks read: independent-baseline and its seven components completed successfully; required ub-review/gate run38483539460 remained in progress. CodeRabbit explicitly skipped review for this non-default base. Keep Draft: prerequisite #1401 integration, its retained Required2/max0 boundary, and final hosted qualification remain with owner coordination. This review grants no gate waiver, Windows qualification, Ready or merge. No author source/branch was edited. All execution commands finished.
|
Delivery checkpoint: marked Ready at unchanged head 1022a85 after independent review5511243959 and successful gate38483539460 / baseline38483539527. No inline threads remain. Actual hosted checkout9c212092b6b1365c96803009f1548455182261bb has the exact owner-base/candidate parents and reviewed tree36ff38c29416849af59559416c34c2b1955efe5e. The integration target remains fix/doctor-etxtbsy-root-cause at93fd1e4701f8f5e20571628eda55c639fec5d3b4, not main. This does not waive #1401's separate main-qualification boundary. Ready-triggered checks must finish successfully before normal expected-head companion squash integration. No source, parent readiness, protection or release change. |
|
Exact-head repair handoff: d4acd06, tree7c3f1fbf2d3c800ad50d6590b541b54947381e16, base93fd1e4701f8f5e20571628eda55c639fec5d3b4. Distinct hosted golden patch race filed as #1431; isolated TempDir lifetime fixes it. Native overlapping-lifetime regression passes and compiling original-shared-path mutant fails with the hosted RIGHT-line39 error. Full local baseline, artifact verifier and staged precommit passed; missing sensor tools and existing warnings recorded in updated body. Push readback confirms this exact head. Review5511243959 is superseded for the changed candidate. Stop for fresh independent review and hosted qualification; no merge/release/deploy or gate waiver authorized. |
EffortlessSteven
left a comment
There was a problem hiding this comment.
Independent exact-head review: no material source findings in this bounded fixture repair. The #1431 causal regression is independently discriminating; review5511243959 remains historical for the earlier head.
Reviewed head d4acd068acd8b486da7a02e890f1bd6bc6850838, tree 7c3f1fbf2d3c800ad50d6590b541b54947381e16, target/base 93fd1e4701f8f5e20571628eda55c639fec5d3b4. Read handoff6157709215, issue1431, substantive comments and authenticated review threads (empty). Live head/base and main were re-read unchanged before submission.
The fresh TempDir is returned together with PostArgs and retained by a named binding through production validation and rendering. Early errors also drop the owner; the truncating handle in the regression drops before the directories. Temporary paths do not enter the serialized golden output. Golden fixture tree 9ce2a9bbbcf06095ddfc3ffa38662dcb1cedab22 and action blob are unchanged. The earlier curl fix and executable-fixture helper are byte-identical to head1022a85; create/chmod exclusion, spawn boundary and child-wait semantics remain intact. A separate narrow source audit found no material issue.
Independent Linux/Rust1.95.0 execution in detached labs, using separate Cargo targets:
- Exact candidate:
cargo test --locked --offline review_golden -- --test-threads=8: 7/7 passed. - Mutant changes only snapshot output back to the original shared
target/review-goldendirectory, retaining the regression and production validator. Mutated tree121f53f8192a2f39779111fc6e93d004ee6c82f4, src/tests.rs blobf1fb14a2945d15ecf36cbc798c8440154002a685.cargo test --locked --offline --bin ub-review review_golden::overlapping_snapshots_keep_independent_validation_patches -- --exact --test-threads=1compiled successfully, then exited101 withgithub review comment src/buffer.rs:39 is not a valid RIGHT-side diff line in /workspace/review-1425/target/review-golden/inline-suggestion.patch. Both initial validations pass; failure follows a real second-file truncation. No retry or timing dependence. - Restored pristine source:
cargo test --locked --offline --bin ub-review review_golden -- --test-threads=8: 7/7 passed. Dedicated TMPDIR was empty afterward. Checked-in golden bytes matched without blessing. fmt and diff checks passed. - Pristine-candidate compiled CLI test binary: release_resolver_ 2/2 and executable_fixture 2/2 passed with eight threads.
- Current main
2b8e66ebe5f11608fb9e85da4af7c5747252f86fplus candidate merged cleanly into isolated commitb4542229d9b228f5dcd2b703a9365a34f985639c, treee60d4aff5b50b357e91136058810deeffde1af60. Composed golden suite 7/7;cargo test --locked --offline --test cli -- --test-threads=8: 63 passed/1 intentional ignore, including doctor_rejects_failed_version_probe_even_when_it_prints_the_pin.
Hosted evidence is separate: gate38487096654/job115603259495 and independent baseline38487094959 completed successfully. All11 current-head check runs returned in one page are successful; CodeRabbit status explicitly skips this non-default base. Gate job logs confirm actual checkout ff8ddea63d04cf74277f51a3fc136675379c4f91; connected Git data confirms parents base93fd1e4/head d4acd06 and exact candidate tree. The gate logs enforce conclusion pass. They also contain a shadow-only contradictory reconciliation with required_proof_unproven and three pass_without_required_receipt identities (proof-0000-291419f6f509, proof-0001-d97c389baa65, proof-0002-d2ae3e742e84). Preserve that qualification concern for owner reconciliation; a green check alone does not resolve it or #1401's separate boundary. This review clears the bounded source/causal repair, not broader merge qualification.
Local logs/diff retained under /tmp/review1425-evidence: mutant log SHA256 f1f46b96ba473845a4d33c1e2992b93ec85741a2050babc91ba623227c331513; restored golden log a15d3b732bc96bbfbaf65974064b8bf2932be0f27a5a4d31a2aadfed78b517d6; composed CLI log d244ac450f88cdbceb6edafe95dbd78c8355b3ed7b8447918c169444d2ccb9a9. These are local receipts, not hosted artifacts. Both labs restored/clean; no author branch edits or Ready/merge/policy/release/deployment actions. All commands finished.
EffortlessSteven
left a comment
There was a problem hiding this comment.
Qualification clarification for review5511507057: the three shadow observations are not a regression introduced by d4acd06 and are not a blocking finding for this bounded fixture repair into the existing #1401 branch. My prior review left their scope unresolved; the comparison below resolves that question.
Observed historical comparison:
- Pre-repair head1022a85, actual merge checkout9c212092b6b1365c96803009f1548455182261bb: green gate38483539460/job115591612084 already reports legacy_pass_with_required_proof_unproven, legacy_pass_with_truthful_not_proven, and pass_without_required_receipt for proof-0000-291419f6f509, proof-0001-d97c389baa65, proof-0002-d2ae3e742e84.
- The same pre-repair checkout's failed Ready-triggered gate38485135060/job115596836703 reports those same three unsatisfied request IDs (its actual cargo-test failure additionally prevents pass).
- Current gate38487096654/job115603259495, checkoutff8ddea63d04cf74277f51a3fc136675379c4f91, repeats the same three missing satisfactions. All three reconciliation manifests identify byte-identical review/proof_requests.json: 1554 bytes, SHA256 3a465f1b79e4668e4dcce8fbf80ce43f5f9f99bcef6142e4e414262ca91185e5. Proof-receipt documents have distinct run digests; I do not claim they are interchangeable or that similar successful commands satisfy these IDs.
Normative enforcement at the reviewed base/head is unchanged:
- Workflow selects intelligent-ci, fail-on-gate defaults auto; auto resolves true in this mode. The run records first and the final gate-check enforces legacy conclusion, so enforcement is actually on.
- .ub-review.toml configures three proof.required policies but has no gate.blocking.required_proof_unproven opt-in. That flag defaults false. Missing/skipped/non-discriminating proof contributes skipped and truthful not_proven; demonstrated required-proof failure/timeout still blocks. src/gate.rs explicitly preserves this compatibility policy.
- The workflow's live task-projection reconciliation explicitly has continue-on-error:true and documents shadow-only authority. Its regression tests are enforced separately. Its observations remain meaningful evidence gaps, but do not independently change the configured legacy gate contract.
- Gate/config/gate-truth, proof planners, workflow, action and reconciliation source are byte-identical between target93fd1e4 and head d4acd06. The PR changes only src/tests.rs and tests/cli.rs.
- Independently reran gate_outcome_counts_passed_and_skipped_required_proof_without_failing and gate_outcome_blocks_unproven_required_proof_only_when_policy_opts_in on the pristine exact candidate: 1/1 each passed. No source edits.
This is a real existing product evidence-truth limitation, not evidence that the three obligations passed. Canonical ownership already exists: #926 explicitly records required proof missing while legacy check passes; #957 owns task/receipt/projection reconciliation; #960 explicitly retains legacy enforcement while showing shadow disagreement. No duplicate issue is warranted, and no policy/enforcement change is part of this repair.
Recommendation: do not hold this companion fixture repair for the unrelated outcome/ledger authority migration. The independent source/causal review and observed successful current-head checks support normal owner integration into its unchanged #1401 target, subject to live protections and owner authority. This is not an assertion of fully satisfied canonical Required evidence, nor acceptance of #926/#957/#960 or #1401-to-main qualification.
Evidence limit: full current ZIP11859774399 was returned by the connected download, but supported local materialization failed with 'library file transfer failed: download failed'; no alternate transfer route was used. The receipt-ID comparison above comes from the exact hosted job logs and their source-artifact digest manifests, not locally opened ZIP contents. No denial occurred; detailed per-receipt skip-cause analysis remains outside this evidence.
331f39b
into
fix/doctor-etxtbsy-root-cause
Two test fixture repairs preserve native validation while removing shared writable-file windows. The release resolver's fake PATH curl now uses #1401's inherited-writer exclusion (#1423). Golden review snapshots now own temporary patch workspaces (#1431), so parallel golden tests cannot read another invocation's truncated patch.
Fresh hosted gate 38485135060/job 115596836703 failed on the prior head 1022a85. Verified checkout 9c21209, tree 36ff38c29416849af59559416c34c2b1955efe5e, parents base 93fd1e4 and head1022a85. Parent recovered artifact11860185488 (326092 bytes, SHA256 0c9218dd28116959fca17f93ed22e4b2f77a4ec7029ea3dc45e081f7eb4dd083): review_golden::snapshot_uses_the_production_inline_delivery_transform rejected src/buffer.rs:39 in target/review-golden/inline-suggestion.patch (1133 passed/1 failed). This is distinct from the curl writer cause.
Both golden tests wrote that same patch path with fs::write and then the production validator reopened it. The complete hunk adds RIGHT lines39–41; another writer's truncation window removes that anchor. Each snapshot now keeps its own TempDir alive through validation and rendering. Production validation, checked-in golden bytes, curl script bytes, spawn coordination and child waits remain intact.
Exact candidate head d4acd06, tree 7c3f1fbf2d3c800ad50d6590b541b54947381e16, base #1401 branch fix/doctor-etxtbsy-root-cause at 93fd1e4. New repair commit changes src/tests.rs only; cumulative PR also retains the original tests/cli.rs curl helper change. Branch rook/1401-release-fixture-writers.
Deterministic native regression creates two live snapshots of the same case, validates both complete patches, holds a real truncating writer on the second patch, then validates the first successfully and verifies the second gets the same RIGHT-line39 error. No timing, retry or stress-to-green. A compiling mutant restores the original shared target directory: regression fails with that exact hosted error (cargo exit101). Fixed golden suite passes7/7.
Final Linux/Rust1.95.0 local nonpublishing validation passed: fmt; locked/offline workspace/all-target check, tests and Clippy -D warnings; no-deps docs; policy-check; artifact-verifier self-test; staged precommit (zero blockers). Workspace tests:1259 top-level passes plus one nested pass, one intentional ignore; CLI62 passed/1ignored. Precommit reports missing cargo-allow, RIPR, unsafe-review and ast-grep, unchanged-workflow actionlint skipped. Existing ambiguous rustdoc link and overdue policy warnings remain.
Local logs retained: /tmp/pr1431-baseline.log SHA256 31ebb93ab1624fa57a834236eda0fec895b35f9bcf1e42fc3edb21f4155fbbca; /tmp/pr1431-mutant.log SHA256 50ce6459c36bf6fbe00cd78ec7f8273f480556438d89e33ba04b27c2d419e35e; /tmp/pr1431-focused.log SHA256 2a7c91ed5606e3f2700dba58c277190b8882225388bec16f02aa6018759204b9; /tmp/pr1431-precommit.log SHA256 18058197ea62d0420ecb781df14b51fa3bf996062365727fda3f135dccf1eff2. These are executor-local evidence, not hosted artifacts.
Historical exact-head review5511243959 and earlier passing gate38483539460 apply only to superseded head1022a85. Fresh independent review and hosted qualification are required for d4acd06. Prior curl causal controls and main-composition results remain historical evidence in the PR discussion; no fresh hosted success is claimed.
Rust test-only repair using existing tempfile dependency and ownership. No production/action, controlled non-Rust surface, suppression, policy, workflow, pin, gate threshold, security, release or deployment change. Stop here for parent-coordinated fresh independent review; #1401's separate gate remains unwaived.