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

timeout.py: Fix result, error_code for nodes that timed out #420

Merged
merged 1 commit into from
Feb 28, 2024

Conversation

nuclearcat
Copy link
Member

@nuclearcat nuclearcat commented Feb 8, 2024

In case of LAVA, for example, if task was not submitted properly, or callback didn't reached, timeout service will close such node after while, but in obscure state: job_id exist, state is done, and result is nul. Let's set result as 'incomplete', fill error_code for better clarity.

Probably fixes: kernelci/kernelci-api#470

@nuclearcat nuclearcat force-pushed the add-result-error branch 3 times, most recently from eb6234c to 9622ea0 Compare February 9, 2024 07:33
@nuclearcat nuclearcat force-pushed the add-result-error branch 3 times, most recently from f1a4593 to df22a4e Compare February 14, 2024 12:04
In case of LAVA, for example, if task was not submitted, or callback
didn't reached, timeout service will close such node after while,
but in obscure state: job_id exist, state is done, and result is nul.
Let's set result as 'incomplete', fill error_code for better clarity.

Probably fixes: kernelci/kernelci-api#470

Signed-off-by: Denys Fedoryshchenko <denys.f@collabora.com>
Copy link
Collaborator

@JenySadadia JenySadadia left a comment

Choose a reason for hiding this comment

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

LGTM.
Let's wait until we get the error code set for timed-out node on staging.

@JenySadadia
Copy link
Collaborator

Tested OK on staging.

@JenySadadia JenySadadia added this pull request to the merge queue Feb 28, 2024
Merged via the queue into kernelci:main with commit 541a2f5 Feb 28, 2024
3 checks passed
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.

dmesg (baseline) tests with empty result that should be pass
2 participants