8000 Fix selective execution when multiple changes are made to one module under --watch by arturaz · Pull Request #5032 · com-lihaoyi/mill · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Fix selective execution when multiple changes are made to one module under --watch #5032

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

arturaz
Copy link
Contributor
@arturaz arturaz commented May 1, 2025

If you have two modules and run --watch {moduleA.fooCommand,moduleB.fooCommand}, mill will run moduleB.fooCommand every 2nd change to moduleA, even if there is no changes to moduleB.

The problem stems from the fact that when we save the changed inputs in selective execution, we did not store the inputs from moduleB and when selective execution runs again (the 2nd time), it thinks that everything in moduleB changed.

This fix correctly saves the state of all modules when storing the selective execution state.

lihaoyi pushed a commit that referenced this pull request May 1, 2025
…under --watch (main branch) (#5033)

Forward port to `main` of #5032

If you have two modules and run `--watch
{moduleA.fooCommand,moduleB.fooCommand}`, mill will run
`moduleB.fooCommand` every 2nd change to `moduleA`, even if there is no
changes to `moduleB`.

The problem stems from the fact that when we save the changed inputs in
selective execution, we did not store the inputs from `moduleB` and when
selective execution runs again (the 2nd time), it thinks that
*everything* in `moduleB` changed.

This fix correctly saves the state of all modules when storing the
selective execution state.

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
@lihaoyi lihaoyi merged commit 63b4e84 into com-lihaoyi:0.12.x May 1, 2025
60 of 63 checks passed
@lefou lefou added this to the 0.12.11 milestone May 2, 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.

3 participants
0