-
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
upload last osbs-client.log updates #229
Conversation
388b507
to
ea82138
Compare
9d685d0
to
442cf04
Compare
tests/test_builder_containerbuild.py
Outdated
@@ -715,6 +716,7 @@ def test_createSourceContainer_failure_source(self, reason, expected_exc_type): | |||
if reason == 'signal_cancelled': | |||
task._incremental_upload_logs = \ | |||
lambda pid: os.kill(os.getpid(), signal.SIGINT) | |||
flexmock(task).should_receive('_upload_logs_once').once().and_return(True) |
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'm puzzled here .and_return(True)
that function doesn't return anything (i.e. None
in py world)
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.
yeah changed to None, either way it is just to mock that methods to check it was called
when build finishes, we stopped writing and uploading logs, and any other osbs api calls aren't logged anymore, with this change before ending we will also sync logs last time. koji-container build log messages will also now appear in osbs-client logs get_build_error_message is wrapped in try/except in case pipeline run json has again some weird format Signed-off-by: Robert Cerven <rcerven@redhat.com>
rn updated: log logger messages in osbs-client log |
Signed-off-by: Robert Cerven rcerven@redhat.com
Maintainers will complete the following section