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

test: check output file caching of run steps with side-effects #20488

Merged
merged 1 commit into from
Jul 21, 2024

Conversation

Techatrix
Copy link
Contributor

Supersedes #19194 since the underlying issue has already been fixed by #19826.

This just adds a standalone test that executes run steps with and without std.Build.Step.Run.has_side_effects and tests whether or not caching has occurred. If this kind of test is undesired, I can adjust it to only check for the existence of the output file since that should be enough to reproduce the issue. I though that a test that checks for caching could be useful 🤷
closes #18281

@andrewrk
Copy link
Member

Nice, it looks like that was some effort putting that test case together.

@andrewrk andrewrk merged commit c746d7a into ziglang:master Jul 21, 2024
10 checks passed
@Rexicon226
Copy link
Contributor

This wasn't rebased after #20600 got merged causing the CI failures. Fixed by #20705.

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.

Step.Run with output file arg + has_side_effects = true never sets the GeneratedFile.path
3 participants