Repository navigation
Report a Stale pullRequestCheck: false and Correct AUDIT.md Section 6 - #4423
Merged
Merged
Conversation
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.
Summary
spec/audit.py'srulesets.payloadcheck now reports a registrypullRequestCheck: falseas drift once it has outlived its reason (Detect a Stale pullRequestCheck: false in the Registry #3908). That is where every branch whose committedrepo-config/payload requires the pull request status check carries a.github/workflows/test-pull-request.ymlposting that check on every pull request into the branch. Each workflow is read at its branch's head commit.pull_requesttrigger.branches/branches-ignorefilter excluding it, any negatedbranchespattern, apaths/paths-ignorefilter, or atypeslist missingopened,synchronize, orreopened.uses:job does not count, since GitHub posts its check as<caller> / <callee job>.mainalone, since itsdevelopruleset requires no check.job_nameshelper, so both read a ruleset-bound name the same way, WORKFLOW.md D1.5's pull_request-only expression included.job_namesskipsuses:call jobs, so the interface contract check no longer accepts a reusable-workflow call job carrying the check name as posting it. That is a pre-existing defect the local pass raised in this file, fixed here. Such a job now draws that check's existing "names the ruleset-bound check neither as a literal job name nor through the pull_request-only expression" finding.spec/audit.pystays under its 3000-line ceiling (tests/test_audit_size.py), which is a design constraint rather than a number to raise. That is why lines indriftnote_findings,check_interface,check_branch_drift,check_settings_general, andcheck_rulesets_payloadmoved. Their six-line finding appends are folded into one-line forms, purely as a reshaping. Every finding's text and severity is unchanged. The full suite passes over the existing finding assertions. Running the base and headdriftnote_findingsandcheck_interfaceon the same constructed fixtures gives identical output.spec/checks.json'srulesets.payloaddescription now names the stale-field finding the check reports.AUDIT.mdsection 4'sbranch-modelbullet documents the new finding.AUDIT.mdsection 6, the Two canonical units carry 21 defects a whole-unit read found, none of them new #1493 items still open ondevelop:OPERATIONS.mdandRESYNC.mdboth require passing it. It now says to pass the value the registryworkflowModelnames, and that the command does not cross-check it, so a wrong one checks the other model'sdevelopruleset and can still report a match.configure.shfinds the registry entry by repository name alone, so<owner>must be the registryowner.developand are already fixed there, so nothing changes for them. Item 5, the heading rename, is its own change and is left out, as is the issue'sGOVERNANCE.md"Hub-Hosted Tooling" half.Tests
tests/test_audit_helpers.pyStalePullRequestCheckCase, on constructed fixtures:falsewith both branches posting gives one finding;falsewith either branch lacking the workflow gives none;falsewith a check posted under another name gives none;trueor an absent field gives none and reads no branch;mainonly;brancheslist naming both branches, or atypessuperset of the defaults, gives the finding;uses:job named for the check gives none, and draws the interface contract check's naming finding;Run.branch_workflowreads each branch at its own head SHA and answers None for an absent branch or file;check_rulesets_payloadreports the stale field, reading each branch at its own head.spec/validate.pypasses, and so do the spec and audit test modules and the full suite.Introduced findings left after the local pass edit budget, and their outcomes
AUDIT.md:103,introduced, an unfollowable instruction. "Pass the model the target's registryworkflowModelnames" named nothing for an entry withoutworkflowModel, which takesdefaults.workflowModelinstead. Fixed in this pull request's review loop: the sentence now names the entry'sworkflowModelor elsedefaults.workflowModel.spec/audit.py:1262,introduced, design. The new trigger and job-name readers fit under the size ceiling by compacting unrelated finding sites, rather than by moving pure workflow readers into a sibling module such asspec/audit_contract.py. Declined. The run's coordinator accepted the compaction as a pure reshaping, and the finding text is unchanged. Moving the readers needs aspec/file outside this change's claim. The ceiling holds at 2999 of 3000, so nothing fails today.AUDIT.md:87,introduced, a doc stating a looser rule than the code. Section 4 said the field stays where the trigger "can skip some pull request", whereposts_checkkeeps it for any negatedbranchespattern and anypathsfilter. Fixed: section 4 now names each kept shape.spec/audit.py:2301,introduced, a test gap. Nothing tested thatcheck_rulesets_payloadwires in the stale check with each branch's head read. Fixed:test_the_rulesets_check_reports_it_from_each_branch_head.Closes on promotion: #3908
🤖 Generated with Claude Code