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

upload last osbs-client.log updates #229

Merged
merged 1 commit into from
Dec 20, 2021

Conversation

rcerven
Copy link
Member

@rcerven rcerven commented Dec 17, 2021

Signed-off-by: Robert Cerven rcerven@redhat.com

Maintainers will complete the following section

  • Commit messages are descriptive enough
  • Code coverage from testing does not decrease and new code is covered
  • N/A JSON/YAML configuration changes are updated in the relevant schema
  • N/A Pull request has a link to an osbs-docs PR for user documentation updates

@rcerven rcerven changed the title upload last osbs-client.log updates WIP: upload last osbs-client.log updates Dec 17, 2021
@rcerven rcerven force-pushed the upload_logs branch 2 times, most recently from 388b507 to ea82138 Compare December 17, 2021 19:30
@rcerven rcerven changed the title WIP: upload last osbs-client.log updates upload last osbs-client.log updates Dec 20, 2021
@rcerven rcerven force-pushed the upload_logs branch 2 times, most recently from 9d685d0 to 442cf04 Compare December 20, 2021 17:36
@@ -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)
Copy link
Contributor

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)

Copy link
Member Author

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>
@rcerven
Copy link
Member Author

rcerven commented Dec 20, 2021

rn updated: log logger messages in osbs-client log

@rcerven rcerven merged commit 4c1faa2 into containerbuildsystem:master Dec 20, 2021
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.

None yet

3 participants