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

Dump some system info on error #885

Merged
merged 5 commits into from
Nov 19, 2024
Merged

Dump some system info on error #885

merged 5 commits into from
Nov 19, 2024

Conversation

singiamtel
Copy link
Collaborator

@singiamtel singiamtel commented Nov 18, 2024

Should make debugging logs easier

Still left to implement:

  • Add XCode version in case of macOS

@ktf do you agree with the safe_args list? I think none should be leaking any secrets, but maybe docker_extra_args can?

Example output:

2024-11-18@13:55:57:ERROR:json-c:json-c:slc9_aarch64: Error while executing /alibuild/sw/SPECS/slc9_aarch64/json-c/v0.17.0-local1/build.sh on `alimachine'.
2024-11-18@13:55:57:ERROR:json-c:json-c:slc9_aarch64: Log can be found in /alibuild/sw/BUILD/json-c-latest/log
2024-11-18@13:55:57:ERROR:json-c:json-c:slc9_aarch64: Please upload it to CERNBox/Dropbox if you intend to request support.
2024-11-18@13:55:57:ERROR:json-c:json-c:slc9_aarch64: Build directory is /alibuild/sw/BUILD/json-c-latest/json-c.
2024-11-18@13:55:57:ERROR:json-c:json-c:slc9_aarch64:
2024-11-18@13:55:57:ERROR:json-c:json-c:slc9_aarch64: Build info:
2024-11-18@13:55:57:ERROR:json-c:json-c:slc9_aarch64: Using aliBuild from [email protected]+ge4cc2be.d20241029 recipes in alidist@237786d35a11d8130c6edf43e11128f305367a2a
2024-11-18@13:55:57:ERROR:json-c:json-c:slc9_aarch64: Build arguments: --debug=True --action=build --pkgname=['json-c'] --defaults=o2 --architecture=slc9_aarch64 --jobs=12 --plugin=legacy --disable=['mesos', 'MySQL', 'make', 'yacc-like', 'make'] --docker=True --dockerImage=registry.cern.ch/alisw/slc9-builder --docker_extra_args=['--network=host'] --remoteStore=https://s3.cern.ch/swift/v1/alibuild-repo --chdir=. --workDir=sw --configDir=alidist --referenceSources=sw/MIRROR --autoCleanup=True --noSystem=True --develPrefix=slc9_aarch64

@singiamtel singiamtel changed the title WIP: Dump some system info on error Dump some system info on error Nov 18, 2024
safe_args = {
"pkgname", "defaults", "architecture", "forceUnknownArch",
"develPrefix", "jobs", "noSystem", "noDevel", "forceTracked", "plugin",
"disable", "annotate", "onlyDeps", "docker", "docker_extra_args",
Copy link
Member

Choose a reason for hiding this comment

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

don't we potentially have password based authentication possible via docker_extra_args, remote store?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Oh, losing the remote store hurts... I might make a follow-up PR that displays the kind of remote store at least

Removing them both

@singiamtel
Copy link
Collaborator Author

singiamtel commented Nov 18, 2024

Updated output example:

# ./alibuild/aliBuild build json-c --debug --docker -a slc9_aarch64

2024-11-18@16:56:13:ERROR:json-c:json-c:slc9_aarch64: Error while executing /alibuild/code/sw/SPECS/slc9_aarch64/json-c/v0.17.0-local1/build.sh on `starforsaken'.
2024-11-18@16:56:13:ERROR:json-c:json-c:slc9_aarch64: Log can be found in /alibuild/code/sw/BUILD/json-c-latest/log
2024-11-18@16:56:13:ERROR:json-c:json-c:slc9_aarch64: Please upload it to CERNBox/Dropbox if you intend to request support.
2024-11-18@16:56:13:ERROR:json-c:json-c:slc9_aarch64: Build directory is /alibuild/code/sw/BUILD/json-c-latest/json-c.
2024-11-18@16:56:13:ERROR:json-c:json-c:slc9_aarch64:
2024-11-18@16:56:13:ERROR:json-c:json-c:slc9_aarch64: Build info:
2024-11-18@16:56:13:ERROR:json-c:json-c:slc9_aarch64: OS: osx_arm64
2024-11-18@16:56:13:ERROR:json-c:json-c:slc9_aarch64: Using aliBuild from [email protected]+ge4cc2be.d20241029 recipes in alidist@237786d35a
2024-11-18@16:56:13:ERROR:json-c:json-c:slc9_aarch64: Build arguments: --pkgname=['json-c'] --defaults=o2 --architecture=slc9_aarch64 --jobs=12 --plugin=legacy --disable=['mesos', 'MySQL', 'make', 'yacc-like', 'make'] --docker=True --noSystem=True --develPrefix=slc9_aarch64
2024-11-18@16:56:13:ERROR:json-c:json-c:slc9_aarch64: XCode version: Xcode 16.1
2024-11-18@16:56:13:ERROR:json-c:json-c:slc9_aarch64: Build version 16B40

alibuild_helpers/build.py Outdated Show resolved Hide resolved
@ktf ktf merged commit cfcb0eb into alisw:master Nov 19, 2024
9 checks passed
@singiamtel singiamtel deleted the dump_sysinfo branch November 21, 2024 09:26
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