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 how errors are handled when submitting a test to TF #1055

Merged
merged 2 commits into from
Apr 15, 2021

Conversation

jpopelka
Copy link
Member

@jpopelka jpopelka commented Apr 15, 2021

Error message is in 'errors', not 'message'.

When a TF refuses a new test request, it sends back

reason: 'Bad Request'
errors: (e.g.) {'environments': {'0': {'arch': "must be one of: 'x86_64'"}}}

While the reason is nicer, it doesn't contain any info so users would need to wait for us to tell them what actually happened.

So far we've hit only the unsupported arch error, so let's extract it from the error json.

adrianreber/criu#6 (comment)

@softwarefactory-project-zuul

This comment has been minimized.

When a TF refuses a new test request, it sends back
reason: 'Bad Request'
errors: (e.g.) {'environments': {'0': {'arch': "must be one of: 'x86_64'"}}}

While the reason is nicer, it doesn't contain any info
so users would need to wait for us to tell them what
actually happened.

So far we've hit only the unsupported arch error,
so let's extract it from the error json.

adrianreber/criu#6 (comment)
@softwarefactory-project-zuul
Copy link
Contributor

Build succeeded.

@jpopelka jpopelka added the mergeit When set, zuul wil gate and merge the PR. label Apr 15, 2021
@softwarefactory-project-zuul
Copy link
Contributor

Build succeeded (gate pipeline).

@softwarefactory-project-zuul softwarefactory-project-zuul bot merged commit 77091b3 into packit:main Apr 15, 2021
@jpopelka jpopelka deleted the tft-submit-error branch April 15, 2021 15:09
@jpopelka jpopelka changed the title Error message is in 'errors', not 'message' Fix how errors are handled when submitting a test to TF Apr 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
mergeit When set, zuul wil gate and merge the PR.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants