-
Notifications
You must be signed in to change notification settings - Fork 32
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
feature(peridot-cli): add task logs command #195
base: feat/build-peridot-cli-rpm
Are you sure you want to change the base?
feature(peridot-cli): add task logs command #195
Conversation
Skipping CI for Draft Pull Request. |
This stack of pull requests is managed by Graphite. Learn more about stacking. |
1308522
to
50e5ab7
Compare
8960b3a
to
cfd9d9b
Compare
50e5ab7
to
d56d8f8
Compare
cfd9d9b
to
3c00db9
Compare
d56d8f8
to
d63f8fd
Compare
`peridot task logs` will accept either a build ID or package name. In the latter case, the project will be queried for the latest build for the given package name. With the build task ID in hand, the task can be queried for its BUILD_ARCH subtasks, which contain the logs for the binary RPM builds. Passing `-C` or `--cwd` with a directory will change into that directory before writing files. That directory **must** exist beforehand. Otherwise, $PWD is used. By default, a separate file will be created for each <task>-<subtask>-<architecture> tuple, which accounts for modular packages with multiple outputs. Passing the `-c` or `--combined` flag will combine all the logs into a single file, named <task id>.log
d63f8fd
to
2899472
Compare
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.
Thank you!
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: MatthewHink, NeilHanlon The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
* refactor some code into utils * prep for task info
2ede824
to
0d3255c
Compare
feature(peridot-cli): add
task logs
commandperidot task logs
will accept either a build ID or package name. Inthe latter case, the project will be queried for the latest build for
the given package name. With the build task ID in hand, the task can be
queried for its BUILD_ARCH subtasks, which contain the logs for the
binary RPM builds.
Passing
-C
or--cwd
with a directory will change into that directorybefore writing files. That directory must exist beforehand.
Otherwise, $PWD is used.
By default, a separate file will be created for each
$taskId-$subtaskId-$architecture tuple, which accounts for modular packages
with multiple outputs.
Passing the
-c
or--combined
flag will combine all the logs into asingle file, named $taskId.log