Skip to content
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

Fix bug where outputs of outputs wouldn't get deleted #3879

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

jakemac53
Copy link
Contributor

@jakemac53 jakemac53 commented Feb 24, 2025

Fixes #3875

This turned out to be a tricky one to track down, basically we wouldn't even attempt to re-run any asset whose primary inputs didn't exist - but we might actually need to re-run them just to reset their state to deleted.

Updated the _runForInput function to work when the primary input does not exist, and just skip the actual build step.

This could probably be refactored to avoid a bunch of the unnecessary work in _runForInput, and just more eagerly delete all the transitive primary outputs once we decide to not output a file, but this seemed like the easiest fix for now.

Copy link

github-actions bot commented Feb 24, 2025

PR Health

@jakemac53
Copy link
Contributor Author

Hmm, a previous regression test is failing here for another scenario. Not sure I will have the time to continue diagnosing this soon, so @davidmorgan if you want to pick it up from here that might be good.

Otherwise, I can come back to it again when I have some free time at the end of a day.

@davidmorgan
Copy link
Contributor

The timeouts on Windows should be addressed now #3880 is that the failure you meant? Thanks.

@jakemac53
Copy link
Contributor Author

The timeouts on Windows should be addressed now #3880 is that the failure you meant? Thanks.

There is a different test which is testing something related to failed actions, and the transitive outputs of those.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bug: build_runner fails to cleanup outdated outputs
2 participants