Repository navigation
ci: resolve queue PR branches in lane-proof miss diagnostics - #3982
Merged
Merged
Conversation
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.
What and why
Root cause: the diagnostic spent its two calls on repository-wide run/artifact pages instead of resolving the queue PR's head branch, so PR #3843 was absent from the run candidates (the runs API returned
{"count":100,"prs":[],"total_count":551}) and the incomplete artifact history forcednearest=none ... verdict=unknown.Evidence collected before editing:
GET /repos/obs-rust/obs-studio/actions/runs/42451046307returnedevent=merge_group,head_branch=gh-readonly-queue/master/pr-3843-8b36d61ba04dc900252f5eea704c2326f19e7ef1,pull_requests=[]. The existing regex correctly parses 3843.GET /repos/obs-rust/obs-studio/pulls/3843returnedhead.ref=fix/rust-port-port-the-effect-parser-657,head.sha=aeda92933e339f97b95ee08f9a43329b5c7e0b0a,base.sha=108c674c14a189855cac1ab6e72a4d27e1d27565. The old diagnostic never requested this endpoint.GET /repos/obs-rust/obs-studio/actions/workflows/ci.yml/runs?event=pull_request&per_page=100&created=%3E%3D2026-11-04T00:00:00Zreturned 100/551 runs and no PR obs-graphics: Port the effect parser compile step #3843; filtering the runs endpoint by that PR head branch returned runs 42364247201 and 42352469452 with correctly populated PR/head/base fields.total_count=9040; its four Tier 2 proofs belonged to PR obs-output: port public mixer getters (#3963) #3966's branch and queue PRs obs-core: port public command-line argument getter (#3976) #3979, obs-hotkey: port background combination query (#3969) #3970, obs-scene: port public source-type queries (#3975) #3978, not obs-graphics: Port the effect parser compile step #3843. Addinghead_branch=fix%2Frust-port-port-the-effect-parser-657returned the same repository-wide artifacts: that filter is ignored, so the fix filters metadata locally.Resolve
/pulls/{N}first, then inspect the newest artifact page for that PR's real head branch and same-repository IDs, selecting the newest unexpired lane proof within the age window. Two API calls and the existing 30-second timeouts remain. A positive observation populates nearest even when unrelated history is truncated; absence yields no-pr-proof only for a complete artifact listing. Missing credentials, errors, fork PRs and incomplete negative history remain unknown. Matching-key cases retain the existing unknown verdict with populated nearest.This is descriptive artifact evidence, not workflow authentication: only the unchanged lookup() can authorize reuse.
pr_baseis now the PR endpoint's reported base, not a historical run base. No workflows changed; no native-coverage labels apply to this Python-only change.RED → GREEN
uv run --no-project python ci/test_lane_proof.py MissDiagnostic.test_queue_ref_finds_pr_branch_proof_in_partial_historyfailed (1 test): expected populated nearest/stale-base, got nearest=none/unknown.uv run --no-project python ci/test_lane_proof.py— 39 tests, OK.test_queue_ref_finds_pr_branch_proof_in_partial_historyandtest_newest_pr_branch_proof_ignores_other_branches_and_forks. Existingtest_stale_base,test_no_pr_proof,test_api_error_unknown,test_diagnostic_never_changes_hitpass, as do matching-key and incomplete-history cases.uvx ruff format ci/lane_proof.py ci/test_lane_proof.py— 2 files left unchanged on final run;uvx ruff check ci/lane_proof.py ci/test_lane_proof.py— All checks passed.git diff --checkpassed.nearest=66814db9d2d2 run=42449710500 pr_base=153bfa56deb727782cfe0c9a323bf8f3a538127f queue_base=8b36d61ba04dc900252f5eea704c2326f19e7ef1 verdict=stale-base.Decision-preservation evidence
AST comparison against origin/master reports
Changed functions: ['miss_diagnostic']. The complete production diff hunks below show no edits to hit/key/reason computation, lookup, main, output, summarize_miss, or API timeouts:Chaperone verification after merge
Select the CI Mode job ID of a new merge_group run executing the merged code, then run exactly:
Confirm a populated nearest for a queue PR with a proof on the returned artifact page, and stale-base for differing inputs. This post-merge CI Mode observation remains unverified; the historical job cannot rerun with changed code. Keep this PR unmerged for the requested handoff.
Checklist