Skip to content

Gate minor bumps on upstream algorithms/ changes - #2

Merged
Xuanwo merged 3 commits into
mainfrom
xuanwo/algorithms-version-gate
Aug 5, 2026
Merged

Gate minor bumps on upstream algorithms/ changes#2
Xuanwo merged 3 commits into
mainfrom
xuanwo/algorithms-version-gate

Conversation

@Xuanwo

@Xuanwo Xuanwo commented Aug 5, 2026

Copy link
Copy Markdown
Owner

Summary

Stop treating every snowball main advance as a stem-semantic release. Minor now advances only when upstream algorithms/ changed vs the previous pin; other upstream movement (codegen, runtime, docs, …) keeps the previous minor and bumps patch.

The gate lives in scripts/sync_from_snowball.py so local sync and daily CI use the same policy. CI only adds major bumps from cargo-semver-checks and extra patch bumps for tag/crates.io collisions.

Test plan

  • Inspect daily workflow path: after sync, version follows algorithms gate without always rewriting minor to the commit date
  • Confirm force re-publish of the same pin increments patch, not minor
  • Optional: run python3 scripts/sync_from_snowball.py --skip-build against an unchanged pin and check patch + 1

Xuanwo added 3 commits August 5, 2026 15:32
Bump minor only when snowball algorithms/ differs from the previous pin;
otherwise keep minor and increment patch. Share that gate in
sync_from_snowball.py so local sync and daily CI stay consistent.
The 97b1acc snowball sync only touched NEWS and generators, not
algorithms/. Keep minor 20260804 and use patch 1 instead of 20260805.0.
Restore 1.20260804.0 after the non-algorithm 97b1acc sync. Patch will be
assigned when a release is triggered post-merge.
@Xuanwo
Xuanwo merged commit bc9b5c8 into main Aug 5, 2026
2 checks passed
@Xuanwo
Xuanwo deleted the xuanwo/algorithms-version-gate branch August 5, 2026 07:35
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