Repository navigation
fix(ci): qualify legacy wheel candidates through both consumers - #7420
Conversation
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
EffortlessSteven
left a comment
There was a problem hiding this comment.
REVIEW_INCOMPLETE — exact published head2b26bf69502d5af371cf225730afd23d71f61d58/tree638f8b79117f537df1cb371ef9a0caddd4165d52; base75ecb7fdade48665aa48d01235fd9f7dfc0a3898. Actual integration merge250b24d6e12b591702e82c4f8a2fa993c04078ce has those parents and the same candidate tree.
Independent source review inspected all five changed files, exact old dispatcher provenance, raw-source capability recognition, candidate identity, strict staged output/error handling, consumer successful-build/cancellation conditions, independent policy, dispatch contracts and #7417's disjoint docs changes. Independent oracle review inspected actual shells/real Git fixtures, the full ancestor graph, real old unknown-command branch and discriminating failure/removal controls. No blocking source/oracle/public-claim findings.
Final exact-head root-native session81346 completed0:84 nonempty policy subjects including11actual wiring controls; explicit process/workflow policy, actionlint1.7.12 with ShellCheck/Pyflakes disabled, all11selected check-fast gates and canonical precommit with repo-policy/xtaskalltargetstrict Clippypassed. Selector exactlymatchesfive Gitpaths, onlyexpectedcheckfastfixture-contractskip; precommitcompletefivechanges/no skipsorlimits. Both reviewers independently inspected finalreports/loghashes and publishedclaims, without claiming commandexecution. Prior5d20ae mutations removing legacy recognition/consumer status or swallowing modern errors each fail intended behavior/native101; finalheadonlyaddsraw--no-filters andfreshgreenqualification.
The incident38185686666 at older7410head d70374d shows policy pass, unknowncommand1, fallbackbuildsuccess and consumersskip. Previous7411oracle missed failedgrandparent ancestry; corrected on#4987. This repair does not restack7410 or cancel its required run. Legacyfixture executes source-identicalunknown-command branch with stubknownowners excluded fromclaim; predicate emulation is not an observed GitHub scheduler run. Hosted currenthead wheel/Windows/UB are active; Droidqueued and Geminiquota are missing providerreview. Greenwrappers/emptythreads are not semantic review.
One ordinary Draft→Ready transition requested currenthead required proof after noactiveRoutedRust/currentfinding/hold was observed. Active main ruleset18845973 requires resolvedthreads/zero approvingreviews; settingsunchanged. Parentretainsnormalexpected-headmerge and affectedcandidatecurrent-workflowqualificationafterlanding. No rerun/dispatch/label/cancellation/settingschange/broadCI request. #4987 remainsopen; no measuredsavingsclaim. Resources retained for hosted proof/CI repair and parent acceptance.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
Summary by CodeRabbit
WalkthroughThe wheel qualification workflow validates candidate identity and selector output, recognizes a pinned legacy policy dispatcher, and allows consumers to run after a successful build even when applicability fails. Tests, CI documentation, and a changelog entry cover these paths. ChangesPython wheel qualification
Priority: ⬇️ Low Estimated code review effort: 3 (Moderate) | ~20 minutes Change: Bug fix Sequence Diagram(s)sequenceDiagram
participant GitHubActions
participant Applicability
participant BuildWheel
participant PipConsumer
participant UvConsumer
GitHubActions->>Applicability: evaluate wheel applicability
Applicability-->>GitHubActions: qualification decision or failure
GitHubActions->>BuildWheel: schedule the wheel build
BuildWheel-->>GitHubActions: report build result
GitHubActions->>PipConsumer: run after successful build when not cancelled
GitHubActions->>UvConsumer: run after successful build when not cancelled
Merge Risk: ⚪ Minimal · up to The change lets wheel qualification proceed for older candidates that lack the modern selector, while still failing on inspection errors and malformed output and still skipping cancelled or failed builds. No concrete merge-blocking risk was found. Wait for hosted qualification to pass on the successor head before merging. Security Architecture Review
Pre-merge checks |
|
There was a problem hiding this comment.
Decision
- Needs verification checks before upstream.
Verification questions
- Confirm legacy recognition key is a 40-char hex literal
248dd1bded04f3c650bbd31d03e7107dfeb5cc5a; the fixture asserts this exact blob but no automated assertion prevents future drift of the workflow constant from the fixture. - Confirm actionlint and zizmor sensor absence prevents independent workflow hardening verification; tests only exercise the step body via shell, not pin/permissions/expr audit.
Refuted
Box::from(slice)allocation failure does not returnNone; recoverable fallback claims are dropped.- The else-branch
cat "${selection}" >> "${GITHUB_OUTPUT}"could leak prior GITHUB_OUTPUT content and let a malformed selector append extra lines after a valid first line, passing thecmp -scheck.; refuted because: cmp -s compares the temporary file (which only contains that single invocation's stdout) againstprintf '%s\n' "${decision}". Any extra bytes in the temp file cause cmp to fail and exit 1 before cat. The validation contract is enforced. - Helper extraction duplicates consumer_runnable / qualification_chain across python_wheel_workflow.rs and risks future drift if a third workflow is added.; refuted because: Helpers are private to the test module, parameterized by a &str workflow, and only exist to verify the exact WORKFLOW and its targeted mutations; no consumer of a second production workflow currently exists, and adding one would extend—not duplicate—the helpers.
- devin-ai bot emitted a one-line 'No Issues Found' and gemini hit quota; these are not reviewer evidence and should not be treated as inspection coverage.
Parked follow-ups
- Test file mixes new
shell_from/select_fromhelpers with the publicFixture::selectAPI; the public test surface is preserved (select/event/shim wrappers unchanged in signature).
Evidence gaps
- Model proof intent was rejected by deterministic validation.
EffortlessSteven
left a comment
There was a problem hiding this comment.
REPAIR_REQUIRED before final readiness: the new compatibility guard uses test "$(git rev-parse HEAD)" = candidate, which does not propagate the Git command's nonzero status if stdout matches. The recognized legacy branch can then emit qualify=true despite a failed HEAD inspection, violating the explicit inspection-failures-stay-red contract. Adding a legacy-only matching-stdout/native9 control before repairing with a checked assignment. Required38189400092/current wheel/Windows successes remain intact historical proof at this head; no REVIEW_READY or merge is authorized by them. Parent retains merge after repaired-head qualification. Current main #7417 interaction is independently clear; no restack needed.
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
EffortlessSteven
left a comment
There was a problem hiding this comment.
REVIEW_INCOMPLETE — published successor182f2c4a6e5410d8e86f2d2814adfdc60ea6a3be/treec24aeb43e2a3a33b182c3cd63060fbe94890a387. The blocking HEAD inspection-status gap at2b is repaired: checked assignment preserves Git failure before equality/legacy admission. Legacy-only matching-stdout/exit9 control failed againstoldproduction(native101) and passes atsuccessor, requiringnative9/emptydecision/marker. Independent source/oracle rereview and rawproof/hash review clear current source, test stimulus/oracle and claims. Exact-head qualification87804 native0:84policy/11wiring, explicitprocess/workflow/actionlint,11checkfast/fivepaths, completecanonicalprecommitstrictrepo-policy/xtaskalltargetClippy/no skipsorlimits. Actual merge de75564/main008242106199f9fd375275cab5747ee7f7253221/tree34e7f2834a20c4df524b26a5ed7a9d27292f41fd independently inspected/conflictfree; #7417docs/allowance/testchanges compose, parser/dispatch/package inputs unchanged. Latestcombinedtree notexecuted. Old required38189400092/wheel/Windows proof staysbound2b; cannot establish successor readiness. One justified successorReady admission after local0/clearreviews/no overlappingRoutedRust requests fresh currenthead required proof. No rerun/dispatch/cancellation/label/settingschange. Parent retains normal expected-headmerge and affected7410 qualificationafterlanding. Full proof/scopes/UBquestion dispositions and missingprovider/archive/zizmorevidence are in updatedbody. #4987 remainsopen; resourcesretained. No REVIEW_READY until current-headhostedproof is inspected.
There was a problem hiding this comment.
Decision
- Needs reviewer attention before upstream: findings remain.
Confirmed findings
- scope discipline: the repair correctly excludes product/package, Windows, #4633/#4493 and release surfaces; five files only, no broad policy rework, no dispatch surface added — architecture-level scope is the smallest complete fix for the legacy qualification gap.
Verification questions
- Confirm test helpers select_from, consumer_runnable, qualification_chain are scoped to WORKFLOW; no reuse across sibling workflows, so a drift in another workflow's applicability body would not be caught by these tests.
Refuted
- Helper extraction duplicates consumer_runnable / qualification_chain across python_wheel_workflow.rs and risks future drift if other tests reimplement them locally; refuted because: Helpers are introduced in this same file as part of the new tests; no parallel implementation exists in another module. Future reimplementation risk is residual, not present duplication.
- The legacy fixture's
248dd1bde…blob could be spoofed by an attacker who modifies both the workflow constant and the fixture file together, since the test only compares the two strings.; refuted because: The hash is computed bygit hash-object --no-filters -- tools/repo-policy/src/main.rsagainst the live working tree at test time. A workflow constant tweak without a matching source change will fail the step's[ ... = 248dd1bd... ]test and abort with non-zero. The fixture is a pinned blob of an actual pre-#7411 dispatcher; both the source and the constant are reviewed by the PR.
Parked follow-ups
- Helper shape: shell_from + select_from + consumer_runnable + qualification_chain introduce parallel-ish helpers but each is narrowly scoped (one extracts a step, one runs a workflow shell, one evaluates consume condition, one aggregates). No cross-branch leakage.
Evidence gaps
- actionlint and zizmor sensors failed/missing; workflow hardening packet unavailable for this diff that touches a GitHub Actions workflow file.
EffortlessSteven
left a comment
There was a problem hiding this comment.
REVIEW_READY — exact head 182f2c4 / candidate tree c24aeb43e2a3a33b182c3cd63060fbe94890a387.
Required run 38193608364 attempt 1 is terminal success. I inspected Rust gates job 114631465189 and aggregate 114638361789, including actual checkout merge de75564 (parents 0082421 and this head), executed tree 34e7f2834a20c4df524b26a5ed7a9d27292f41fd. Strict workspace Clippy, policy/process/network/dependencies, workspace/all-target/all-feature checks, goldens/fixtures/verdict/PR evidence passed; 14,446 nextest tests passed, 2 skipped; doctests 2 passed, 1 ignored. All 11 python_wheel_workflow controls have direct PASS lines, including failed matching-stdout HEAD probe and both dispatch paths. Alternate runner/docs jobs were guarded skips; they are not additional passes. Routing selected GitHub-hosted after runner API failure; Rust gate success is substantive.
Natural wheel run 38193484564 succeeded: independent policy and modern applicability job 114631037238, producer 114631144472, pip 114634234393 and uv 114634234448. Producer receipt binds exact candidate/tree/lock, wheel SHA256 fe88e4aff7c8c34a0f13cc6234c13f779d333f541abe37b745f3da7ef0457049 and installed payload 15f7cc62464e01634f6018ea523e12c230b460340a5990da3fbbf712c8b35ee4. Missing script and mutated RECORD payload controls were rejected; both clean consumer journeys and uninstall/reinstall paths completed. Artifact 11723205185 digest 68047e3fa8d1577bc016cc65a7e47609f2accab6b7f134e297115fbab4f149c0 is supported by producer and both consumer logs; archive itself remains uninspected. Independent MCP advisory was guarded skipped on this PR, with dispatch independence source/control coverage retained.
Windows run 38193484558 succeeded, job 114631037426. Its PASS receipt binds this candidate/tree, 22 cases, five rejected controls, three literal replays and removed producer/staging aliases. Full Windows job was guarded skipped; always-on subset contract unchanged.
Bounded root-native qualification 87804 exit 0 is separately bound to candidate tree: 84 policy tests / 11 wiring controls, process/workflow checks, actionlint 1.7.12 (ShellCheck/Pyflakes disabled), 11 check-fast gates and canonical precommit strict repo-policy/xtask all-target Clippy without skips or limitations. Direct red control failed old production with native101; repaired legacy probe requires Git native9, empty GITHUB_OUTPUT and stimulus marker. Legacy positive admission, modern native/output errors, independent policy failure, full ancestor consumer guards and mutation-negative controls remain discriminating. Local shell/predicate tests do not claim a hosted failure/cancellation scheduler experiment.
Independent source and oracle reviewers reread unchanged 182 and current main d6aa97f. #7409's eight analysis/spec/traceability/changelog files are disjoint, no wheel selection/package/fixture/policy prerequisite changed; prospective combined tree 4c6641b167fff5fbc1e7d28e264d851e36199a74 is conflict-free and inspected, not executed. #7417 retirement composition remains clear. No actual finding warrants restack or repeat qualification; parent must preserve this distinction at normal expected-head merge.
Fresh UB review 5486011174 confirms scope; its helper-scope question is resolved by intentional single-WORKFLOW coverage, with no sibling audit claim. Missing provider actionlint sensor is distinct from inspected root actionlint execution; zizmor remains unexecuted. CodeRabbit 6115781785 covers successor delta and reports no actionable findings; advisory docstring percentage is not a concrete behavioral defect or repository required gate. Droid pending and Gemini quota are missing provider review, not clean semantic evidence. Independent substantive source/oracle review covers the change; empty inline threads do not substitute for it.
No current blocking finding, unresolved thread, hold or changed protection observed. Main ruleset18845973 still requires resolved threads and zero approving reviews; classic protection read remains an integration 403 gap, so normal server protections determine merge admission. This COMMENT is not an approving review or bypass. Parent retains merge and subsequent one justified #7410 current-controller qualification. #4987 remains open. Trigger audit: two ordinary pushes, two Ready admissions for distinct qualified heads, one Draft conversion; no rerun/manual dispatch/explicit cancellation/label/settings change/broad CI. Old-head receipts remain historical. No measured savings claim. Resources and proof retained for parent acceptance.
REVIEW_READY — PR #7420 head 182f2c4 / tree c24aeb43e2a3a33b182c3cd63060fbe94890a387. Final exact-head review 5486095735 records inspected native/hosted proof and review scopes. Required 38193608364 attempt 1 passed (14,446 tests, all 11 workflow controls); natural wheel 38193484564 including producer and both pip/uv consumers, and Windows 38193484558 passed. Bounded local qualification 87804 exited 0. The failed matching-stdout HEAD probe and direct positive/negative status controls remain intact.
Executed integration identity is merge de75564 / tree 34e7f2834a20c4df524b26a5ed7a9d27292f41fd at main 0082421. Fresh main d6aa97f adds disjoint #7409 analysis changes; source and oracle review clear prospective tree 4c6641b167fff5fbc1e7d28e264d851e36199a74, inspected/not executed. No restack or duplicate qualification justified. Fresh UB helper/sensor questions dispositioned; CodeRabbit successor review has no actionable findings. Droid pending/Gemini quota/zizmor absent remain disclosed gaps. No blocking finding or unresolved inline thread. Parent retains normal expected-head merge and subsequent affected #7410 qualification. #4987 remains open. No rerun/manual dispatch/explicit cancellation/broad launch/protection change; no measured savings claim.
Earlier checkpoint records below retain their historical identities:
Behavior and scope
An older exact candidate can pass independent workflow policy but lack the new wheel selector. In #7410 run38185686666, candidate d70374d reached legacy dispatcher usage/native1; fallback build succeeded, then both consumers skipped because their implicit success included failed applicability ancestry.
This bounded #4987 repair recognizes only the raw source-identical legacy dispatcher (Git blob248dd1bded04f3c650bbd31d03e7107dfeb5cc5a) and emits conservative qualify=true with an honest diagnostic. Candidate identity is checked first with a standalone HEAD-capture assignment that preserves Git failure before equality comparison. Other dispatcher versions execute the modern selector normally; inspection/command failures stay failures. Modern output is staged and published only after validating exactly one newline-terminated true/false decision.
Consumers explicitly require always(), non-cancellation and a successful build, overriding failed ancestry while preserving failed/skipped/cancelled build exclusion. Classifier and independent policy failures remain red even when fallback build and consumers execute. Broad paths, exact candidate checkout, independent cargo policy check-workflows, permissions, cancellation, ordinary qualification and independent MCP dispatch are unchanged.
Source boundary and relationships
Exact head182f2c4a6e5410d8e86f2d2814adfdc60ea6a3be; treec24aeb43e2a3a33b182c3cd63060fbe94890a387; base75ecb7fdade48665aa48d01235fd9f7dfc0a3898. Five files, no dependency, product/package, Windows, #4633/#4493, protection or release change.
Acceptance and oracle
The previous #7411 oracle asserted no consumer condition and missed transitive ancestry. The incident and evidence correction are recorded on #4987. Tests execute checked-in shells with production policy/selector and real Git, then evaluate actual job predicates with explicit full ancestry; they do not claim scheduler, wheel or pip/uv execution locally. The legacy fixture proves its actual unknown-command branch; known-command owners are stubs and do not establish full old-library policy execution. Incident logs separately establish that old candidate's actual policy pass.
Review and qualification
Independent source and oracle review inspected the complete committed diff, legacy provenance, error/output boundaries, consumer graph, mutation logs and public claims. Rebound review covers the sole final --no-filters delta; no blocking finding. Reviews are inspected-source/log review, not claimed reviewer execution of root commands.
Initial red: three intended failures/six passes. Hardened wiring:11 pass. Three external mutation controls native101 are bound to prior5d20ae7754eb28fe0bd964d4969f0116d2ef4f29; final head adds only unfiltered source hashing and receives fresh green qualification.
Final exact-head local qualification passed native0: pinned Rust1.95, serialized two-job Cargo, owned target, explicit dev/test debug0 and incremental disabled; no gate bypass. Baseline doctor/check-fast six-gate zero-path floor and policy all-target check passed. Final84 policy subjects (11 actual wiring controls), explicit process/workflow policy, actionlint1.7.12 (ShellCheck/Pyflakes disabled), all11 selected check-fast gates and canonical precommit including final xtask all-target strict Clippy passed. Check-fast selector matches all five Git diff paths; only expected fixture-contract category skipped. Precommit JSON binds exact finalhead/base and complete five-record change set, with no skips or limitations. Successor native session87804 completed0. Its receipt and precommit report bind182f2c4a/fivechanges/base75ec, with no skips/limitations; prior81346 proof is preserved at2b.
Proof retained at /workspace/4987-compat-proof, including incident log, legacy source, red/green controls and mutation native results. Hosted required proof is separate and pending; REVIEW_INCOMPLETE before merge admission.
Changelog and CI economics
Changelog disposition: changelog.d/4987-wheel-compatibility.md follows the canonical README: first-line Fixed section marker, - bullet and trailing (#4987) reference. Workflow behavior requires the fragment; no exemption/deferral.
This repair restores intended qualification rather than claiming new cost savings. Eligible unrelated-ledger skip still avoids one release-wheel build plus two consumers; no measured savings. Expected natural workflow/selector CI and one earned Ready admission are part of publication; no broad/manual launches, reruns, labels, protection changes or cancellation of #7410's active required run.
Rollback: ordinary revert of these five files restores prior routing. No settings rollback. Product/schema/spec support contracts are unchanged; infrastructure regression needs no new public product spec.
Readiness repair and current integration
Final inspection found a missed status gap at prior2b: test command substitution accepted matching HEAD stdout despite Git exit9, then admitted known legacy qualification. A legacy-only failed-probe control reproduced old selection0 versus required9/native101. Published182f2c4a uses checked assignment; the green control now requires native9, empty decision and distinctive stderr. Independent source/oracle rereview and raw-log/hash inspection cleared the repair. The old REPAIR_REQUIRED record is addressed by this successor, not by prior green CI.
Current main008242106199f9fd375275cab5747ee7f7253221 includes #7417 retirement. Actual merge de75564 has that main and182f2c4a as parents, combined tree34e7f2834a20c4df524b26a5ed7a9d27292f41fd. Independent inspection found disjoint docs hunks, only PRPlan's allowance removed, and a retirement unit test without parser/dispatch changes. Wheel fixture/predicates/package inputs remain unchanged. Latest combined tree inspected, not executed; no restack.
Previous2b hosted required38189400092/job114618759338 succeeded on merge250b24d6/tree638f8b into75ec:14,445 nextestpassed/twoskipped, doctests2passed/1ignored, strictClippy and allrequiredgates. All11wiring controls passed. Wheel38189314726 policy/build/pip/uv and Windows38189314735 native22cases/5rejectedcontrols/3replays succeeded. Those oldhead receipts remain historical. Producer log wheel95fae922186629409c03e1a5931e2993c2b1ab8ed91fcfa3c0cda5a865f73b7a/payloadd181d601814f1e617ad7c947774a7e814c06de4840bb2f68d8586a747ae9ac1b bind2b/tree638; archives uninspected, producer/native receipts and consumer logs inspected.
UB5485804982 verification questions were checked: workflow key drift already fails actual legacy source recognition/assertion and removal control; local actionlint ran successfully in the native && chain. Zizmor remains unexecuted. PendingDroid/Geminiquota/rejectedUBmodelintent remain missing provider evidence, not clean review. Independent semantic reviews and actual workflow controls cover the narrow claim. No affected7410 native qualification with the repaired controller has been launched; parent coordinates that after landing.
Successor log SHA256s: policy1ef98a09c7b6e9e6bdfa4937b406a55cfce643016364b28c423b73a7f64eb29f; checkfast012d6e3fe3c5db341e0c05625340300f77f47141ee14350609ce2f0bbf9852c3; precommit4da9551a248bb9eb0827bb7538fb1cb526cc9e62c4cf35a106adcfcfe65c6bef. Full proof: /workspace/4987-compat-proof/qualification-182f2c4a.json. REVIEW_INCOMPLETE pending current-head hosted qualification. Parent retains merge; no current REVIEW_READY claim.