Skip to content

fix waiver baseline tag selection - #2

Merged
daylight-00 merged 4 commits into
mainfrom
agent/fix-waiver-qualified-tag
Aug 14, 2026
Merged

fix waiver baseline tag selection#2
daylight-00 merged 4 commits into
mainfrom
agent/fix-waiver-qualified-tag

Conversation

@daylight-00

Copy link
Copy Markdown
Owner

What changed

  • make the release waiver skip qualified candidate directories that do not have a corresponding Git tag
  • keep candidate qualification receipts valid for their existing purpose; only waiver baseline selection is filtered
  • add regression coverage for the 20260730-style case where a device receipt exists for a candidate that was never released

Why

Release run 31794466099 selected qualification/20260730 as the previous qualified tag, then failed trying to diff 20260730..HEAD because 20260730 is not a Git tag. The repository documentation explicitly allows qualification receipts for candidates that were never released.

The waiver now walks backward through qualified candidates until it finds one that is also a real Git tag, so the current 3.14.7 release can compare against the last released qualified baseline (20260729).

Validation

CI should exercise the new regression tests and the existing check suite. After merge, re-run the release workflow with the same release inputs.

@daylight-00
daylight-00 marked this pull request as ready for review August 14, 2026 14:23
Copilot AI lite review requested due to automatic review settings August 14, 2026 14:23
@daylight-00
daylight-00 merged commit ad5e911 into main Aug 14, 2026
8 checks passed
@daylight-00
daylight-00 deleted the agent/fix-waiver-qualified-tag branch August 14, 2026 14:24

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes waiver baseline selection in the release qualification gate by ensuring the “previous qualified” candidate used for git diffing is also an actual Git tag (since qualification receipts may exist for unreleased candidate directories).

Changes:

  • Add previous_released_qualified_tag() to walk backward through qualified candidates until it finds one that exists as a Git tag.
  • Update waiver logic to use the released+qualified baseline and clarify the refusal message.
  • Add regression tests covering the case where a qualified candidate receipt exists but the candidate was never released/tagged.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
check-qualification.py Adds tag-existence filtering for waiver baseline selection and updates waiver behavior accordingly.
tests/test_check_qualification.py Adds regression tests ensuring unreleased qualified candidates are skipped for waiver baselines.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread check-qualification.py
Comment on lines +92 to +95
def _git_tag_exists(tag: str) -> bool:
"""Whether ``tag`` names a real Git tag in the release checkout."""
result = run(["git", "show-ref", "--verify", "--quiet", f"refs/tags/{tag}"])
return result.returncode == 0
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.

2 participants