Skip to content

Commit 137e128

Browse files
sauragarclaude
andcommitted
[test_operator] Fix stackviz script path for adoption jobs
Use cifmw_repo variable instead of playbook_dir to reference the stackviz generation script. This fixes failures in adoption jobs where playbooks are executed from rdo-jobs repository, causing playbook_dir to point to the wrong location. The cifmw_repo variable always points to the ci-framework checkout directory, ensuring the script is found regardless of where the playbook is executed from. Fixes stackviz generation in periodic-internal-adoption-* jobs. Signed-off-by: sauragar <sauragar@redhat.com> Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
1 parent 5041599 commit 137e128

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

roles/test_operator/tasks/generate-stackviz-main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,13 @@
2424
# Dependency checking (done once, not per file)
2525
- name: Check if Python script exists
2626
ansible.builtin.stat:
27-
path: "{{ playbook_dir }}/scripts/generate-stackviz-report.py"
27+
path: "{{ cifmw_repo }}/scripts/generate-stackviz-report.py"
2828
register: stackviz_script_stat
2929

3030
- name: Fail if stackviz script not found
3131
ansible.builtin.fail:
3232
msg: >
33-
Stackviz generation script not found at {{ playbook_dir }}/scripts/generate-stackviz-report.py.
33+
Stackviz generation script not found at {{ cifmw_repo }}/scripts/generate-stackviz-report.py.
3434
Please ensure the script is available in the ci-framework repository.
3535
when: not stackviz_script_stat.stat.exists
3636

roles/test_operator/tasks/generate-stackviz-worker.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
- name: Generate stackviz HTML report for this stage
4848
ansible.builtin.command:
4949
cmd: >
50-
python3 {{ playbook_dir }}/scripts/generate-stackviz-report.py
50+
python3 {{ cifmw_repo }}/scripts/generate-stackviz-report.py
5151
{{ _current_subunit }}
5252
{{ _current_html }}
5353
register: _current_stackviz_generation

0 commit comments

Comments
 (0)