Skip to content

Conversation

@lihaoyi
Copy link
Member

@lihaoyi lihaoyi commented Nov 28, 2025

Fixes #6258. We keep track of the unsuccessful tasks in SelectiveExecution.Metadata#forceRunTasks during --watch and force those to re-run next evaluation

This ensures that if a user does --watch and makes edits to code and config, they do not see a successful run until all the tasks selected by the --watch are successful. Previously, a user editing a single file will result in only a subset of tasks running, potentially resulting in previously-skipped tasks now being selected out and ending up never being run

Also tested manually by setting up a --watch __.compile and then doing a find-and-replacec new ([a-zA-Z]+)\( to $1( with IntelliJ. Without this PR, after fixing the first few failures, the --watch appears to succeed, but if I press Enter to re-run everything I seem more failures. With this PR, the --watch fails consistently until I fix all failures, and then pressing Enter to re-run does not show any new failures

@lihaoyi lihaoyi force-pushed the failure-no-selective branch 2 times, most recently from e661b88 to 6c8eaa6 Compare November 28, 2025 09:47
@lihaoyi lihaoyi force-pushed the failure-no-selective branch from 048092d to 73d6aed Compare November 29, 2025 04:33
@lihaoyi lihaoyi merged commit 308937f into com-lihaoyi:main Nov 29, 2025
33 of 34 checks passed
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.

Selective execution in --watch should be disabled if a task fails

1 participant