-
Notifications
You must be signed in to change notification settings - Fork 5.3k
Include CMakeConfigureLog in logs artifacts #122537
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
base: main
Are you sure you want to change the base?
Conversation
|
Tagging subscribers to this area: @hoyosjs |
cc @jkoritzinsky, @janvorli those .yaml files are new in logs artifacts. |
|
We're getting AzDO errors emitted whenever the artifacts/obj folder doesn't exist. Can you adjust this to only execute the copy if the artifacts/obj folder exists? |
jkoritzinsky
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I just noticed that these changes are in eng/common. Can we move them into the global-build-job template? If we do that, then we can probably go back to CopyFiles as we'll nearly always build something native.
| - task: PythonScript@0 | ||
| displayName: Gather CMakeConfigureLog for publish to artifacts | ||
| inputs: | ||
| scriptSource: inline | ||
| script: | | ||
| import os, shutil, glob | ||
| if os.path.isdir('artifacts/obj'): | ||
| dest = '$(Build.ArtifactStagingDirectory)/artifacts/log/cmake' | ||
| os.makedirs(dest, exist_ok=True) | ||
| for f in glob.glob('artifacts/obj/**/CMakeConfigureLog.yaml', recursive=True): | ||
| shutil.copy(f, dest) | ||
| continueOnError: true | ||
| condition: always() | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we do this with a powershell/bash script?
Removed Python script task that gathers CMakeConfigureLog for artifacts.

Currently, we only capture binlog files in
Publish Logsstep. PR addsCMakeConfigureLog.yamlto helps figuring out the result of introspection.