Commit fb84ed4
committed
kdevops_archive: handle workflows without target_linux_ref
The kdevops_archive role failed when archiving results from workflows
that do not involve kernel builds. The role defaults assumed
target_linux_ref would always be defined and used it unconditionally
for constructing archive directory paths and metadata.
Workflows like fio-tests, blktests, and selftests that focus on testing
userspace tools or storage subsystems do not set target_linux_ref
because they do not build or install custom kernels. The archive role
would fail with an undefined variable error when attempting to access
this variable.
Add default values using Jinja2 filter chains so the archive role works
for both kernel and non-kernel workflows. When target_linux_ref is not
defined, fall back to kdevops_workflow_name to identify the test run.
If neither variable is available, use the generic fallback value
workflow.
For kernel testing workflows the archive directory structure remains
unchanged using the kernel reference like v6.15 or linux-next. For
non-kernel workflows the archive directory now uses the workflow name
like fio-tests or blktests. This provides clear organization of archived
results while supporting the full range of kdevops workflows.
The fix enables CI archival for all workflow types without requiring
kernel-specific variables to be set in non-kernel testing scenarios.
Generated-by: Claude AI
Signed-off-by: Luis Chamberlain <[email protected]>1 parent 603cdaa commit fb84ed4
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
| 24 | + | |
0 commit comments