-
Notifications
You must be signed in to change notification settings - Fork 37
scheduler: add tree-based priority for LAVA jobs #1407
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
Conversation
Define SERVICE_PIPELINE constant in base.py and import it in trigger.py and send_kcidb.py to replace hardcoded strings. Signed-off-by: Ben Copeland <ben.copeland@linaro.org>
Add tree priority lookup using string values (high/medium/low) instead of numeric priorities. Tree priorities are read from build configs and passed to LAVA runtime via node data. Priority assignments: - high: mainline, stable, stable-rc - medium: next, stable-rt, kselftest - low: android, cip, kernelci (default) Human submissions always get highest priority for bisection/debugging. Signed-off-by: Ben Copeland <ben.copeland@linaro.org>
|
Hi @bhcopeland Thanks for the PR. There are a few instances of Chris |
|
Another query, Would we be better to avoid using the "high" priority in the LAVA jobs? In doing so labs won't have a way to inject jobs with a higher priority over incoming KernelCI jobs as "high" is the maximum priority level (in my understanding). Maybe we could keep with "low, medium, high" in the kernelci yaml files, but translate that to something like "20, 50, 80" for the LAVA job definitions? |
No worries! This is correct, this allows each lab to define proirty range. The approach scales between 0-100, to fit within each lab's range. IMO, they don't need updating; they serve different purposes.
You're right. If we use the full range (90-100), labs can't inject their own urgent jobs above KernelCI jobs. My current values Suggested: This will 81-100 for labs to use for their own urgent jobs. |
|
Okay thanks Ben. Sounds good to me. I couldn't see where PRIORITY_HIGH etc. were defined? |
Scratch that - I've just seen the PR you've linked to! |
f5ea4ad to
56fdda4
Compare
|
https://lava.ciplatform.org/scheduler/job/1379868 I did a temp push with high priority to make sure it is set, and it worked fine. |
nuclearcat
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As we discussed in Discord - this PR are well tested, so merging right now.
Add tree priority lookup using string values (high/medium/low) instead
of numeric priorities. Tree priorities are read from build configs and
passed to LAVA runtime via node data.
Priority assignments:
Human submissions always get highest priority for bisection/debugging.
Signed-off-by: Ben Copeland ben.copeland@linaro.org