Repository navigation
fix(update): drop batch targets the dependency has already moved past - #151
Merged
Merged
Conversation
An update ticked into the batch after a later batch carried a newer release was still applied, because a target only counted as done when it equalled the current value. A batch then took node from 26.13.0 back to 24.22.2. A target older than the current version, or than the locked one for a lockfile-only target, is now dropped.
|
|
Overall Grade |
Security Reliability Complexity Hygiene |
Code Review Summary
| Analyzer | Status | Updated (UTC) | Details |
|---|---|---|---|
| Rust | Oct 31, 2026 8:30a.m. | Review ↗ | |
| JavaScript | Oct 31, 2026 8:30a.m. | Review ↗ | |
| Shell | Oct 31, 2026 8:30a.m. | Review ↗ |
Important
AI Review is run only on demand for your team. We're only showing results of static analysis review right now. To trigger AI Review, comment @deepsourcebot review on this thread.
There was a problem hiding this comment.
All reported issues were addressed across 2 files
Reply with feedback, questions, or to request a fix.
View guided diff | Turn on auto-fix | Re-trigger cubic
A ranged declaration such as ^1.40 names no single version, so a target behind its locked release was still batched. The locked version now counts, and the declared value only when it is a version.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Found on the Count's own repository: batch #150 would have downgraded node 26.13.0 → 24.22.2, dotnet 10.0.403 → 9.0.320 and ruby 4.0.9 → 3.4.12. I closed it unmerged.
Cause. Those three updates were ticked into a batch. The batch that followed (#145) carried the newer majors instead and left them ticked.
plan::batch_plantreated a target as done only when it equalled the current value, so on the next run it applied the older targets again.Fix. A target whose version is older than the dependency's current version is dropped as superseded, compared with the dependency's own versioning scheme. For a lockfile-only target, the locked version is the one compared. Targets equal to or newer than the current version behave as before.
a_batch_drops_a_target_older_than_the_current_versionbatches node 24.22.2 against amise.tomlon 26.13.0, and fails without the fix. It also checks that an equal target is dropped and a newer one is still batched.