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

Fix openqa-investigate exception handling #205

Merged

Conversation

perlpunk
Copy link
Contributor

@perlpunk perlpunk commented Jan 23, 2023

Introduced by 060bbeb

By making openqa-investigate operating on only a single id the

|| = rc=$?

was removed. As a result, failing commands inside the investigate() function would return on error, so query_dependency_data_or_postpone() and sync_via_investigation_comment() would just result in an exit 255.

So we didn't get any investigate jobs since this change.

Somehow that part doesn't seem to be tested well. Also it's a bit hard to follow the script's logic here because we transport results with certain exit codes.

I'll check if I can improve the test in my current PR for posting comments.

Issue: https://progress.opensuse.org/issues/98862

Introduced by os-autoinst@060bbeb

By making openqa-investigate operating on only a single id the

    || = rc=$?

was removed. As a result, failing commands inside the investigate()
function would return on error, so query_dependency_data_or_postpone()
and sync_via_investigation_comment() would just result in an exit 255.

So we didn't get any investigate jobs since this change.

Somehow that part doesn't seem to be tested well. Also it's a bit
hard to follow the script's logic here because we transport results
with certain exit codes.

I'll check if I can improve the test in my current PR for posting comments.

Issue: https://progress.opensuse.org/issues/98862
@perlpunk perlpunk force-pushed the fix-investigate-exception-handling branch from c308fa8 to 89669be Compare January 23, 2023 12:01
@mergify mergify bot merged commit 2715580 into os-autoinst:master Jan 23, 2023
Copy link
Contributor

@Martchus Martchus left a comment

Choose a reason for hiding this comment

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

Maybe I'm wrong but it would make sense to answer the question from my inline comment first.

openqa-investigate Show resolved Hide resolved
@perlpunk perlpunk deleted the fix-investigate-exception-handling branch January 23, 2023 12:16
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