Skip to content

kernelci: kbuild: transition to available state when complete #2882

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

a-wai
Copy link
Contributor

@a-wai a-wai commented May 23, 2025

Currently, kbuild nodes transition to state done as soon as they complete, even though they often have many child nodes running afterwards. This is confusing as checkout nodes first transition to available state, then closing (waiting for child nodes to complete) and only transition to done once all child nodes have completed.

This behaviour should be applied to kbuild nodes as well, both for consistency and to be able to easily schedule post-processing jobs (e.g. by triggering those on the state: done event).

Also add a holdoff value (10 minutes, identical to checkout nodes) so the corresponding service properly handles state transitions for those nodes.

Fixes #2875

Depends on kernelci/kernelci-pipeline#1164

@a-wai a-wai requested a review from nuclearcat May 23, 2025 14:55
@a-wai
Copy link
Contributor Author

a-wai commented May 23, 2025

Note: kernelci/kernelci-pipeline#1164 should be merged first, adding a note in the PR description.

@nuclearcat nuclearcat added the staging-skip Don't test automatically on staging.kernelci.org label May 24, 2025
Currently, `kbuild` nodes transition to state `done` as soon as they
complete, even though they often have many child nodes running
afterwards. This is confusing as `checkout` nodes first transition to
`available` state, then `closing` (waiting for child nodes to complete)
and only transition to `done` once all child nodes have completed.

This behaviour should be applied to `kbuild` nodes as well, both for
consistency and to be able to easily schedule post-processing jobs (e.g.
by triggering those on the `state: done` event).

Also add a `holdoff` value (10 minutes, identical to `checkout` nodes)
so the corresponding service properly handles state transitions for
those nodes.

Fixes  kernelci#2875

Signed-off-by: Arnaud Ferraris <[email protected]>
@a-wai a-wai force-pushed the mark-kbuild-available branch from 723a578 to 2ce7576 Compare May 26, 2025 07:03
@a-wai a-wai removed the staging-skip Don't test automatically on staging.kernelci.org label May 26, 2025
`submit_results()` currently ignores fields such as `state` and
`holdoff` from the results, leading to unexpected results when those are
set prior to calling this function.

Ensure both those fields are copied over with sane defaults.

Signed-off-by: Arnaud Ferraris <[email protected]>
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.

Add new node kind for post-processing test results
2 participants