Skip to content

fix(#1179): upstream pre-flight labels, dedupe, baseline window, fix-note categorization - #1180

Merged
admarble merged 2 commits into
mainfrom
feature/1179-fix-upstream-pre-flight-labels-dedupe-assessment-i
Sep 26, 2026
Merged

admarble merged 2 commits into
mainfrom
feature/1179-fix-upstream-pre-flight-labels-dedupe-assessment-i

Conversation

@admarble

@admarble admarble commented Sep 26, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Non-dry createAssessmentIssue checks all six labels exist before filing and throws naming the missing ones (AC-1)
  • Reuses an open assessment issue with the exact title (AC-2)
  • getReleasesSince throws when the baseline tag is not among the fetched releases (AC-3)
  • Notes beginning Fixed (after an optional Platform: prefix) are no longer categorized deprecation (AC-4)

Test plan

  • npx vitest run src/lib/upstream (152 pass); build, lint, full npm test green

Mutation-verified: AC-1 — removed the assertLabelsExist call; issues.test.ts labels cases failed; restored.
Mutation-verified: AC-2 — bypassed the title lookup; existing assessment case failed; restored.
Mutation-verified: AC-3 — restored the silent fall-through; baseline not found case failed; restored.
Mutation-verified: AC-4 — restored bare remov alternative; 1179 cases failed; restored.

Closes #1179

🤖 Generated with Claude Code

Runner fixes after QA (AC_MET_BUT_NOT_A_PLUS), d894b436

  • The duplicate check no longer falls back to filing when the lookup fails. searchIssuesSync returned [] both for "no match" and for a failed or rate-limited gh, so the AC-2 check turned into filing a duplicate, the exact bug it was meant to fix. There is now a new searchIssuesOrNullSync, and searchIssuesSync wraps it with ?? [], so other callers are unchanged. createAssessmentIssue throws on null instead of filing. This follows the null convention listLabelsSync already uses.
  • Direct tests for the provider. listLabelsSync now has tests for its success path (checking the exact gh label list … --limit 200 arguments) and its failure path (returns null). searchIssuesOrNullSync has a test for its failure path.
  • Bracket-prefixed fix notes. The "Fixed" exception now also accepts [Product] Fixed …. QA's two corpus examples (from v2.1.282 and v2.1.273) are added to the fix(upstream): pre-flight labels, dedupe assessment issues, fail loudly past the 50-release window, stop filing fixes as deprecations #1179 cases.

Mutation-verified: AC-2 (lookup failure) — replaced the null check with searchIssuesOrNullSync(…) ?? []; src/lib/upstream/tests/issues.test.ts "throws instead of filing when the lookup fails" failed (1 failed | 53 passed); restored.
Mutation-verified: AC-4 (bracket prefix) — dropped the \[[^\]]*\] alternative; the two bracket cases in src/lib/upstream/tests/relevance.test.ts failed (2 failed | 52 passed); restored.

…indow error, fix-note categorization

Entire-Checkpoint: 3cf0ec484fa6
…cket-prefixed fix notes; listLabelsSync tests
@admarble
admarble merged commit 785dc91 into main Sep 26, 2026
7 checks passed
@admarble
admarble deleted the feature/1179-fix-upstream-pre-flight-labels-dedupe-assessment-i branch September 26, 2026 03:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(upstream): pre-flight labels, dedupe assessment issues, fail loudly past the 50-release window, stop filing fixes as deprecations

1 participant