Repository navigation
fix(github): roadmap sync reads each item's priority from its own tag (#583) - #584
Merged
Merged
Conversation
…#583) `devops gh sync-roadmap` took each new issue's priority label from the first keyword found anywhere in the item's header or body, P0 words first. "Blocker" in a title, or "critical" or "higher" in a description, overrode the item's own tag: 19 of the 189 open roadmap items would have been filed with the wrong label, 17 of them as P0. The priority now comes only from the item's own (P0 - ...) to (P3 - ...) tag, inside the bold title or directly after it. Only the digit counts; title words and description text never change it, and an untagged item keeps the P1 default. The keyword table is removed. A test over the live roadmap asserts every open item has a tag and derives exactly that priority; it failed on the old parser with the 19 mislabelled items. The Roadmap Deferrals entry, which listed this fix as its first step, is updated. Closes #583
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
devops gh sync-roadmaptook each new issue's priority label from the first keyword found anywhere in a roadmap item's header or body, P0 words first. "Blocker" in a title, or "critical" or "higher" in a description, overrode the item's own(Pn - ...)tag. After #580, 19 of the 189 open items would have been filed with the wrong label: 17 as P0 and 2 as P1.The priority now comes only from the item's own tag, so the #580 entries can be synced safely.
Changes
_extract_priority(github/roadmap_sync.py) reads only the header line, through one anchored regex. The tag may sit inside the bold title, followed only by parentheticals such as(Issue #5), or directly after the closing**. Only the digit counts:(P0 - High)is P0. Tag-shaped title words such as(P1-era), backtickedf(P0 - z)and description text never decide it, and an untagged item keeps the P1 default.CONST_ROADMAP_PRIORITY_TAGS, the substring keyword table, is replaced byCONST_ROADMAP_PRIORITY_LABELS, a map from tag digit to label. Nothing else used it. The Projects v2 Priority field comes from issue labels, so it follows the corrected label.Verification
test_extract_roadmap_items_live_file_priorities_match_tagsasserts that every open item indocs/ROADMAP.mdhas exactly one tag and derives that priority. It failed on the old parser with the 19 mislabelled items. Now: 189 open, 0 mismatches, 0 untagged.test_extract_priority_and_derive_scopecovers the misleading cases: a P1 item with "Blocker" in its title and "critical" in its body, a tag inside or after the bold, a nested parenthetical, tag-shaped title words, and an untagged header.devops cigate passed on push.Closes #583