-
Notifications
You must be signed in to change notification settings - Fork 22
koji build: a command to build packages on koji #52
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: master
Are you sure you want to change the base?
Conversation
a0fb373
to
c4eb3d8
Compare
2fab0de
to
2512e0b
Compare
c4eb3d8
to
f2e4ce2
Compare
imported from https://github.com/xcp-ng/xcp/ Signed-off-by: Gaëtan Lehmann <[email protected]>
2512e0b
to
ba4edca
Compare
f2e4ce2
to
e910f3a
Compare
@@ -0,0 +1,16 @@ | |||
from xcp_ng_dev.koji.build import koji_build, koji_build_init_parser | |||
|
|||
# from icecream import ic |
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.
icecream?
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.
https://github.com/gruns/icecream
A function similar to rust's dbg!()
macro
def cd(dir): | ||
"""Change to a directory temporarily. To be used in a with statement.""" | ||
prevdir = os.getcwd() | ||
os.chdir(dir) |
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.
This can fail if the directory fails, maybe try and catch it the same way as in check_dir?
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.
You don't think the default error message is enough?
FileNotFoundError: [Errno 2] No such file or directory: '/tsrntsrn'
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 usually prefer not to show stack traces for errors if they are not needed, we can leave it like this for now
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.
So am I, but not everyone agrees with that.
In my projects, I usually have a command-line flag to change the verbosity and turn on the stack traces on the trace log level. I might do that here as well, in the future.
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.
As we discussed this week, this would not be the right tool to merge the koji support into
We need a design, something, before such PRs. |
Imported from https://github.com/xcp-ng/xcp/