Repository navigation
fix(ci): classify docs changes against immutable PR head - #7304
Conversation
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
|
Warning Review limit reachedThe included review limit has been reached and this organization has disabled usage-based review continuation. Wait for reviews to reset or ask a billing admin to change After included review limits. Next included review available in 6 minutes. View limit details
Comment |
|
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! |
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. |
There was a problem hiding this comment.
Decision
- Needs reviewer attention before upstream: findings remain.
Confirmed findings
- Tests do not exercise the
trap 'rm -f "$changed"' EXITpath in the workflow under fixture harness - the fixture never sources the script viaset -etrap inheritance in a way that fails after partial diff write. Partial-diff wrapper test only verifies outcome; minor.
Verification questions
- Confirm test extracts production shell via YAML job boundaries and exact 'run: |' line; couples tests to workflow YAML structure.
- Confirm wrapper PATH prepend lets test inject fake git; relies on test-isolation via PATH ordering not env sanitization.
- Confirm actionlint sensor failed exit 1 and cargo-test receipt still pending (scheduled-late). Without actionlint re-clean and the live 54/54 repro we cannot independently confirm workflow lints and host integration qualification on the published tree. PR body itself states REVIEW_READY remains pending.
Refuted
- Detector's new git fetch may rewrite refs and break the integration checkout that depends on full history being present; refuted because: Fetch is conditional on cat-file -e failing for the two SHAs and uses --no-tags origin BASE HEAD without touching local refs; checkout already has fetch-depth: 0 and integration commit is preserved by the test's rev-parse equality assertion.
Parked follow-ups
- tools/repo-policy/tests/docs_only_routing.rs:203 —
Fixture::runbuilds the bash Command viaself.command("bash")which callsenv_clear, so PATH prepend is safe. However,wrapper()injects git into PATH but the bash shell wrapper script itself is invoked viacommand -v gitresolving through PATH in the test process; on systems where a shadowgitalready precedes the wrapper dir in the test harness PATH, the wrapper PATH-append order matters. Confirmwrapperdir isprepended(it is, viapaths.extend(split_paths(...))) so this is OK; demoting to parked.
|
Final independent substantive review: REVIEW_READY for this implementation. Reviewer /root/review_docs_routing_patch; exact head 56dc41b, tree 68f5bf12492abc2b3b7dcaf0a1783c393ff6d5a5. Full scope: detector, production workflow wiring/result, integration tests, process registration, changelog and conflict repair. Tested integration 82d52e8 combines this head with main8a2e358a089a03fa27ebece420c1d6b3f28283d0. Required run38112238495 completed SUCCESS. Actual workspace/all-target/all-feature checks, strict Clippy, canonical policy/precommit, required tests, doctests, goldens, fixtures, verdict corpora and PR evidence passed. SHA-verified nextest artifact11693501294 records14,272 tests with zero failures/errors/skips, including all six docs-routing tests; context binds exact integration/run/attempt/Rust1.95/native exit0. Doctests:2pass/1ignored. Result logs bind detector success, docs_only=false, full GitHub proof success and docs gate skipped; authoritative result passed. UB review adjudication: actionlint exit1 is only three inherited SC2034 warnings for unchanged router variables repo/workflow/run_id used by indirect expansion, not a changed detector defect. Explicit tempfile-deletion assertion is a nonblocking coverage suggestion; real Bash execution uses its EXIT trap without needing inheritance. YAML extraction and sanitized prepended wrapper PATH are verified. Earlier package-proof uncertainty is superseded by retained54-test local proof and hosted execution. No unresolved inline findings or requested changes remain. Current main86b9eb95230f39e931204f3778ff0c5ed7a695a7 has no candidate overlap or changed identity acceptance prerequisite; exact head is clean/mergeable. No behind-only restack is warranted. Local broad check-fast remains unrun and is not relabeled as a local pass. The earlier stale shared-target failure remains recorded under #7318. A naturally occurring docs-only canary is still outstanding: merging this implementation does not close all #5071 acceptance. Normal protected squash must preserve rules/approvals; no bypass. |
Scope
Implements #5071: classify the immutable PR contribution rather than unrelated main changes in a synthetic integration checkout. Preserve integration checkout, docs eligibility, required result, gates, permissions, cadence and runner policy. Wheel applicability and the Rust-only sibling remain separate.
Implementation
Bind the detector to validated immutable event base/head commits and a unique merge base. Recover missing history when possible, otherwise conservatively retain full proof. Empty, invalid, ambiguous or unavailable subjects and failed/partial diffs never authorize docs-only routing. NUL-safe paths and both rename sides are covered by tests of the production shell and workflow wiring.
Exact subject
Published head56dc41b9321a07113669b00f99f9605c8c37ec8c; tree68f5bf12492abc2b3b7dcaf0a1783c393ff6d5a5. Normal merge parents0e5e5905e84b7832ef0ce7a43e126c154c7f07a5 and3865a4d07e28c67be720c32692ed9896875bfda9. Local reviewed equivalent82ee26ff3e102cf04ba0286014b54d974ba0f132 has identical tree. The sole integration conflict preserved both exact process registrations. The three other candidate files are unchanged; all unrelated main changes survive. Current main8a2e358a089a03fa27ebece420c1d6b3f28283d0 has no owned-path overlap and merge-tree succeeds.
Executed proof and independent review
Pinned Rust1.95.0, jobs1. Combined repo-policy tests54/54 pass:34 unit,6 docs-routing,9 frontdoor,5 FutureClippy. Canonical process/workflow policy and precommit passed. Precommit548.3s selected exactly four candidate paths against base3865a4d, passed the full policy table and repo-policy/xtask all-target Clippy. Native exits0, no reserve stop and all owned processes settled. Independent /root/review_docs_routing_patch verified receipt identities/digest, source stamp, conflict resolution, publication tree/parents and current integration impact.
Original independent review also exercised advanced-base and missing-history cases, HEAD-substitution mutant, partial-diff failure and actual result-block rejection. The initial repaired-tree package run genuinely failed7frontdoor tests because a cached policy executable retained the prior checkout source stamp. Exact-source rebuild rebound the artifact and all54tests passed without source-byte changes. Red logs remain retained; #7318 separately addresses the build-script root cause. No guard was weakened.
Qualification boundary
Initial Ready did not produce routed qualification because newly landed main caused an actual conflict. That conflict is repaired; the PR returned to Draft and is eligible for its one repaired-head Ready refresh. Broad local check-fast remains NOT_ESTABLISHED under the disclosed host-resource limitation; scoped passes do not replace workspace/all-target proof. Hosted exact-head/current integration qualification and final REVIEW_READY remain pending. Naturally occurring docs-only/base-drift canary remains an issue acceptance item. Keep #5071 open until all acceptance evidence is complete; no blanket savings or merge-readiness claim.