Skip to contentSkip to conversation

gen_nodes: fix breakage from "Split ltp set-up from gen_nodes"

PATCH In review Scott Mayhew 2 participants 2 messages Apr 20, 2024

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 gen_nodes: fix breakage from "Split ltp set-up from gen_nodes"

Commit ee1e9d2 inserted a new task in the middle of the "Initialize the enabled nodes list for ltp" task, effectively getting rid of that task's when clause, causing it to run for non-LTP workloads.

Fixes ee1e9d2 ("gen_nodes: Split ltp set-up from gen_nodes")
---
 playbooks/roles/gen_nodes/tasks/main.yml | 5 +++++
 1 file changed, 5 insertions(+)
playbooks/roles/gen_nodes/tasks/main.yml +5 -0
index ac9ddd9..06c6a94 100644
@@ -171,6 +171,11 @@
   set_fact:
     is_ltp: True
     ltp_enabled_nodes: "{{ ltp_enabled_test_groups|ansible.builtin.split }}"
+  when:
+    - kdevops_workflows_dedicated_workflow
+    - kdevops_workflow_enable_ltp
+    - ansible_nodes_template.stat.exists
+
 - name: Generate a kdevops nodes file for the ltp workflow
   tags: hosts
   ansible.builtin.include_role:
Signature · 1 line
2.44.0
#1 lore raw
Quoted 32 lines · Scott Mayhew

Commit ee1e9d2 inserted a new task in the middle of the "Initialize the enabled nodes list for ltp" task, effectively getting rid of that task's when clause, causing it to run for non-LTP workloads.

Fixes ee1e9d2 ("gen_nodes: Split ltp set-up from gen_nodes")

---
playbooks/roles/gen_nodes/tasks/main.yml | 5 +++++

1 file changed, 5 insertions(+)
playbooks/roles/gen_nodes/tasks/main.yml +5 -1
index ac9ddd9..06c6a94 100644
@@ -171,6 +171,11 @@
  set_fact:
    is_ltp: True
    ltp_enabled_nodes: "{{ ltp_enabled_test_groups|ansible.builtin.split }}"
+  when:
+    - kdevops_workflows_dedicated_workflow
+    - kdevops_workflow_enable_ltp
+    - ansible_nodes_template.stat.exists
+
- name: Generate a kdevops nodes file for the ltp workflow
  tags: hosts
  ansible.builtin.include_role:
Signature · 1 line
2.44.0

This is a turd left over from incorrect conflict resolution. The "Initialize the enabled nodes list for ltp" task needs to be deleted. I'll push a proper fix. Thanks!

--
Chuck Lever