Repository navigation
test: require an L1 or L2 glob for each covered file - #14
Merged
Merged
Conversation
In risk-paths schema version 2 a glob can be L3 or L4, and a change under it gets no risk:high (core ADR-0078). The coverage test now counts only a glob at L1 or L2 (no level counts as L1).
`level ?? "L1"` also turned an explicit null into L1; only an absent level key now reads as L1, so null and unknown levels fail coverage.
Contributor
Author
|
Cross-review: |
bketelsen
approved these changes
Nov 9, 2026
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.
Summary
test/repository.test.mjschecks that.github/risk-paths.jsoncovers the release workflow, the manifest and the code that runs outside the Flatpak sandbox or removes machines. Since #13 the list is schema version 2, where a glob can be L3 or L4; a change under such a glob gets a level label but norisk:high(core ADR-0078). The check still accepted a glob at any level.riskHighCoverage()counts only a matching glob at L1 or L2. Only an entry without alevelkey is L1 (a version 1 list); an explicitnullor an unknown level fails closed. The strictest match wins. The real-list check and the publication check use it.null,"L5", overlapping L3 and L1, and no match..memory/corrections.jsonlgets 2 lines: the level gap (also found in the review of ci: call core's pr-triage workflow and move the risk list to levels (v2) intuneme#266) and the??null default found in this change's review.The current list has every required file at L1 or L2, so no list change is needed.
Risk tier
Risk tier: 1 — tests and the corrections file only. No path of
.github/risk-paths.jsonchanges.Verification
make verifyandnode --test test/*.test.mjs: pass (42 tests).??back, it fails on "an explicit null level must not cover a file".openai/gpt-6.1-solreviewed this exact diff on the branch of ci: call core's pr-triage workflow and move the risk list to levels (v2) #13 (0e6c114..1421bf5, then..4da4ec2): the first pass found thenulldefault (blocking), fixed in the second commit; re-review 2: Ready, blocking: none. ci: call core's pr-triage workflow and move the risk list to levels (v2) #13 was merged at0e6c114before these commits reached it.