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

Ensure tracked generated files are rebuilt in tests #35

Merged
merged 1 commit into from
Aug 26, 2024

Conversation

HexDecimal
Copy link
Collaborator

Normal builds would assume that generated files are already built based on their timestamps which prevents testing newly updated generated files. /t:rebuild should always do a clean rebuild.

@HexDecimal HexDecimal marked this pull request as draft August 26, 2024 21:55
@HexDecimal
Copy link
Collaborator Author

I'm having a hard time verifying this. Your idea of deleting the files is probably easier to do.

@HexDecimal
Copy link
Collaborator Author

Reference to the commit conversion because I don't want to have trouble hunting it down later: 40c235d

@rmtew
Copy link
Owner

rmtew commented Aug 26, 2024

I am pretty sure I always hit the rebuild hotkey just to be sure (ctrl+shift_b) and it does not rebuild these files because it does not change the gnerated output in any way by doing that rebuild.

@HexDecimal
Copy link
Collaborator Author

For now I'm going to take the fact that the x64 builds didn't fail as proof that this method doesn't work.

Current builds were assuming that generated files are already built based on their timestamps, which prevents testing newly updated generated files.

This manually deletes the generated files to be tested.
@HexDecimal HexDecimal changed the title Use rebuild target to ensure tracked generated files are built Ensure tracked generated files are rebuilt Aug 26, 2024
@HexDecimal HexDecimal changed the title Ensure tracked generated files are rebuilt Ensure tracked generated files are rebuilt in tests Aug 26, 2024
@HexDecimal
Copy link
Collaborator Author

Files are now deleted by the CI before building, only (Debug, Win32) is able to actually build these files as usual.

@HexDecimal HexDecimal marked this pull request as ready for review August 26, 2024 22:30
@rmtew rmtew merged commit 3fbbfd9 into rmtew:master Aug 26, 2024
6 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.

2 participants