Skip to content

Conversation

@syphar
Copy link
Member

@syphar syphar commented Nov 21, 2025

This is a regression from #2969.

When trying to run the consistency check, it wanted to drop & requeue the same releases, ~500k times.

Digging into it, it was a classical sorting error :D

Previously: text. Which means the order is: 0.10.3, 0.6.0, 0.9.3. Since we sorted both sides (index & db) the same way, the diff worked.

Now, with semver, the order changes: 0.6.0, 0.9.3, 0.10.3. So in the place where we manually ordered in rust code (index reading), the order changed. In the place where we used database sorting, the order didn't change.

For now I just re-sort the database entries in rust code, and added a test.

@syphar syphar requested a review from a team as a code owner November 21, 2025 18:26
@syphar syphar self-assigned this Nov 21, 2025
@github-actions github-actions bot added S-waiting-on-review Status: This pull request has been implemented and needs to be reviewed labels Nov 21, 2025
@syphar syphar force-pushed the fix-consistency-check branch from 25dab0e to 325738f Compare November 21, 2025 18:34
@syphar syphar merged commit b4e619d into rust-lang:master Nov 21, 2025
10 checks passed
@syphar syphar deleted the fix-consistency-check branch November 21, 2025 19:04
@github-actions github-actions bot added S-waiting-on-deploy This PR is ready to be merged, but is waiting for an admin to have time to deploy it and removed S-waiting-on-review Status: This pull request has been implemented and needs to be reviewed labels Nov 21, 2025
@syphar syphar added S-waiting-on-deploy This PR is ready to be merged, but is waiting for an admin to have time to deploy it and removed S-waiting-on-deploy This PR is ready to be merged, but is waiting for an admin to have time to deploy it labels Nov 21, 2025
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