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

rsc: Hidden directories should be returned as cleanable outputs #1658

Merged
merged 1 commit into from
Oct 1, 2024

Conversation

V-FEXrt
Copy link
Contributor

@V-FEXrt V-FEXrt commented Sep 30, 2024

When rehydrating from the cache, any "hidden" directories should be listed as cleanable outputs since they aren't listed as actual outputs by the runner. If they aren't listed then they won't get cleaned up as expected by wake --clean

Copy link
Contributor

@colinschmidt colinschmidt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@@ -237,7 +244,7 @@ export def mkRemoteCacheRunner (rscApi: RemoteCacheApi) (hashFn: RunnerInput =>
# by the same job. If so, upload the target as a "hidden" output file. On rehydration
# retore the file as normal but don't list it in the outputs.
## -------------------------------------------------------------------------------------- ##
Pass (RunnerOutput inputs outputs Nil predict)
Pass (RunnerOutput inputs outputs cleanableOutputs predict)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah this Nil should have triggered something in our brains during code review I guess.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, I had the same thought. It was subtle but it should have been a flag

@V-FEXrt V-FEXrt merged commit f29ab12 into master Oct 1, 2024
11 checks passed
@V-FEXrt V-FEXrt deleted the rsc-clean-hidden-dirs branch October 1, 2024 15:34
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.

2 participants