Skip to content

test: cover daily wheel-change history edge cases (#116) - #137

Merged
patrickballard merged 3 commits into
wheelgap:mainfrom
AdityaSreevatsaK:fix/116-change-log-regressions
Nov 17, 2026
Merged

patrickballard merged 3 commits into
wheelgap:mainfrom
AdityaSreevatsaK:fix/116-change-log-regressions

Conversation

@AdityaSreevatsaK

Copy link
Copy Markdown
Contributor

Closes #116

Summary

Add offline regression tests for the daily update_changes history pipeline.

Cover the 90-day retention boundary, same-day reversals, unknown wheel statuses, added or removed targets and packages, and missing scan/history files.

No production logic changes.

Tests

patrickballard and others added 2 commits November 17, 2026 07:09
The same-day test now has a second package whose loss isn't reversed, so a
merge that dropped the day's earlier changes would fail it. The removed-target
test now uses different statuses per target, so matching targets by position
would fail it too. Also drop an extra blank line ruff flagged in the imports.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@patrickballard

Copy link
Copy Markdown
Contributor

Thanks for these, @AdityaSreevatsaK! Putting the new target first so position-matching would misfire was a sharp choice, and the 90/89-day boundary pins the cutoff exactly as #116 asked.

We've made these changes so it can go in:

  • Same-day merge test: added a second package whose loss isn't reversed, so a merge that threw away the day's earlier changes would now fail the test (before, an empty entry passed either way).
  • Removed-target test: the old scan now has different statuses on the two targets, so matching targets by position would fail it too (with wheel, wheel it passed either way).
  • Dropped an extra blank line after the imports that ruff flagged.

It'll merge once a final review passes.

(Review assisted by Claude.)

@patrickballard
patrickballard merged commit 2f573e1 into wheelgap:main Nov 17, 2026
1 check passed
patrickballard added a commit to dianatofficial/tracker that referenced this pull request Nov 17, 2026
@patrickballard

Copy link
Copy Markdown
Contributor

Merged, thanks @AdityaSreevatsaK! Before merging we pinned the new-target and removed-target tests to the target label (the new target now comes first and a shared cell changes, so matching by position would fail them), and the same-day test now keeps a second package whose loss isn't reversed.

If you'd like another one, #92 brings whole-tree install results and the way out into the home page lookup, and nobody has picked it up yet.

(Reply assisted by Claude.)

patrickballard added a commit to AdityaSreevatsaK/tracker that referenced this pull request Nov 17, 2026
@AdityaSreevatsaK
AdityaSreevatsaK deleted the fix/116-change-log-regressions branch November 18, 2026 16:43
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.

Tests for update_changes.py: the 90-day cutoff, same-day merges, unknown cells and new targets

2 participants