Skip to content

Let a certified pair's test survive the pipeline qualifying that pair - #236

Merged
MaxGhenis merged 1 commit into
mainfrom
pairs-test-outlives-qualification
Oct 30, 2026
Merged

MaxGhenis merged 1 commit into
mainfrom
pairs-test-outlives-qualification

Conversation

@MaxGhenis

Copy link
Copy Markdown
Contributor

The results commit for policyengine.py 6.11.0 (#235) fails test_get_record_resolves_a_pair_a_variant_and_the_default, so the builder opened it as a draft. Certifying 6.11.0 adds a replay variant whose id is the slug of the certified pair #229 recorded, and the test's last assertion expected that slug to raise "no replay variant".

pipeline/uk_certified_pairs.py already describes this case: a variant the pipeline later qualifies for the same pair has its own id, and the pair record stays. So the test was wrong rather than the code. It now asks for an id no variant holds, and holds on main both before and after #235.

Verified on #235's tree with this one change: the test file passes. #235 rebuilds after this lands.

axiom: n/a: test only

🤖 Generated with Claude Code

The pair module's docstring says a variant qualified later for the same pair
gets its own id and the pair record stays. The test instead assumed the slug
would never name a variant, which fails the results commit for 6.11.0 (#235).
It now asks for an id no variant holds.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@vercel

vercel Bot commented Oct 30, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
policyengine-scorecard Ready Ready Preview Oct 30, 2026 10:32pm UTC

Request Review

@MaxGhenis
MaxGhenis merged commit a740605 into main Oct 30, 2026
14 checks passed

This branch was successfully deployed

1 active deployment
Preview — b714336b Deployed Oct 30, 2026 by vercel[bot]
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.

1 participant