Skip to content

runtime/lava: fix string priority fallback in _get_priority#3053

Merged
nuclearcat merged 1 commit intokernelci:mainfrom
bhcopeland:fix/lava-priority-string-fallback
Feb 18, 2026
Merged

runtime/lava: fix string priority fallback in _get_priority#3053
nuclearcat merged 1 commit intokernelci:mainfrom
bhcopeland:fix/lava-priority-string-fallback

Conversation

@bhcopeland
Copy link
Member

The job.config.priority fallback path did not handle string values (e.g. "medium", "high") from YAML job configs, causing a TypeError when the value reached the priority scaling arithmetic.

Run string values through priority_map, matching the handling already done for tree_priority and user_priority paths.

This will allow us to revert 5550ae05a940058c95a0f773226c99695c7bea92

@bhcopeland bhcopeland force-pushed the fix/lava-priority-string-fallback branch from 71cfd75 to 33d65f2 Compare February 18, 2026 09:59
The job.config.priority fallback path did not handle string values
(e.g. "medium", "high") from YAML job configs, causing a TypeError
when the value reached the priority scaling arithmetic.

Signed-off-by: Ben Copeland <ben.copeland@linaro.org>
@bhcopeland bhcopeland force-pushed the fix/lava-priority-string-fallback branch from 33d65f2 to 03be1f6 Compare February 18, 2026 10:01
@nuclearcat nuclearcat added this pull request to the merge queue Feb 18, 2026
Merged via the queue into kernelci:main with commit d3a3834 Feb 18, 2026
8 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.

2 participants

Comments