Skip to content

fix(update): batch every declaration of a dependency in a file - #126

Merged
sweepies merged 1 commit into
mainfrom
fix/batch-every-occurrence
Oct 31, 2026
Merged

sweepies merged 1 commit into
mainfrom
fix/batch-every-occurrence

Conversation

@sweepies

@sweepies sweepies commented Oct 31, 2026 •

Copy link
Copy Markdown
Owner

Found by the batch run on main. The batch #115 carried jdx/mise-action 5.1.2 → 5.2.4 and jdx/mr-boxington-action 1.7.2 → 1.7.3. In ci.yml and release.yml, which use those actions in several jobs, it moved only the first uses: in each file. The next run then opened #122 and #123 for the remaining ones.

A PR records each file once among its batch targets, and plan::batch_plan matched one declaration per target with .find. It now takes every declaration in that file whose current value matches the target. Declarations already taken by another target are skipped. The first declaration is still the fallback when none match.

a_batch_moves_every_declaration_of_a_dependency_in_a_file batches a workflow that uses one action in three jobs, and asserts all three move. It fails without the fix. The engine batching tests still pass.

View guided diff Turn on auto-fix

A PR records each file once among its targets, but a file can declare the
dependency several times, such as one action in many workflow jobs. The
batch matched one declaration per target, so it moved the first and left
the rest, which the next run proposed again.
@sweepies
sweepies force-pushed the fix/batch-every-occurrence branch from 60ea1eb to ad08b5b Compare October 31, 2026 04:13
@deepsource-io

deepsource-io Bot commented Oct 31, 2026 •

Copy link
Copy Markdown

DeepSource Code Review

We reviewed changes in c1bac95...ad08b5b on this pull request. Below is the summary for the review, and you can see the individual issues we found as inline review comments.

See full review on DeepSource ↗

PR Report Card

Overall Grade   Security  

Reliability  

Complexity  

Hygiene  

Code Review Summary

Analyzer Status Updated (UTC) Details
Rust Oct 31, 2026 4:13a.m. Review ↗
JavaScript Oct 31, 2026 4:13a.m. Review ↗
Shell Oct 31, 2026 4:13a.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.

@sweepies
sweepies merged commit 02af8b3 into main Oct 31, 2026
16 checks passed
@sweepies
sweepies deleted the fix/batch-every-occurrence branch October 31, 2026 04:19
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