GitHub Actions: Show log files in Windows jobs#10433
Merged
Conversation
2b1c31f to
376c52c
Compare
If CPack fails, it may write the actual errors to a dedicated log file:
EXEC : CPack error : Problem running WiX. Please check 'D:/a/icinga2/icinga2/Build/_CPack_Packages/win64/WIX/wix.log' for errors. [D:\a\icinga2\icinga2\Build\PACKAGE.vcxproj]
Show all `*.log` files as part of the job output so that it doesn't get lost.
376c52c to
5a464af
Compare
yhabteab
approved these changes
May 16, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
If CPack fails, it may write the actual errors to a dedicated log file:
Show all
*.logfiles as part of the job output so that it doesn't get lost. I've chosen that generic pattern because I don't know whether the exact name and path may change. At the moment, it additionally includes a second file containing some more verbose output from our test cases.I've made it part of the output as in case of the WIX error log, that's where I'd have expected it in the first place. The output is automatically grouped using some magic GitHub syntax.
Preview of the job output:
refs #10383 (had a pipeline with such an error)