Skip to content

testretry: fail clearly when a retry is rejected#288

Open
bhcopeland wants to merge 1 commit into
kernelci:mainfrom
bhcopeland:testretry-error-handling
Open

testretry: fail clearly when a retry is rejected#288
bhcopeland wants to merge 1 commit into
kernelci:mainfrom
bhcopeland:testretry-error-handling

Conversation

@bhcopeland

Copy link
Copy Markdown
Member

On a non-200 the retry helper returns None, but the command logged a misleading 'No response message from retry request' warning and then returned normally, so a rejected retry (e.g. a 401) exited 0 and read as success to scripts and agents. Report the failure and abort with a non-zero exit instead; the helper already surfaces the specific API error.

On a non-200 the retry helper returns None, but the command logged a
misleading 'No response message from retry request' warning and then
returned normally, so a rejected retry (e.g. a 401) exited 0 and read
as success to scripts and agents. Report the failure and abort with a
non-zero exit instead; the helper already surfaces the specific API
error.

Signed-off-by: Ben Copeland <ben.copeland@linaro.org>
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.

1 participant