Skip to content

Commit 8ffe23a

Browse files
committed
Update playbooks to ensure artifacts directory exists and adjust output paths for test results
1 parent 0233718 commit 8ffe23a

3 files changed

Lines changed: 12 additions & 5 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,4 @@ Makefile
1616

1717
# Generated binaries
1818
/native_node
19+
Testing/Temporary/*

ansible/playbooks/build.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,14 @@
4242
register: ctest_res
4343
failed_when: false
4444

45+
- name: Ensure artifacts directory exists
46+
file:
47+
path: "{{ playbook_dir }}/../../artifacts"
48+
state: directory
49+
delegate_to: localhost
50+
4551
- name: Save ctest results to artifact
4652
copy:
4753
content: "{{ ctest_res.stdout }}"
48-
dest: ./artifacts/ctest_output.txt
54+
dest: "{{ playbook_dir }}/../../artifacts/ctest_output.txt"
4955
delegate_to: localhost

ansible/playbooks/e2e.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
- name: Full E2E run: provision, build, tests, e2e checks
2+
- name: "Full E2E run: provision, build, tests, e2e checks"
33
hosts: local
44
become: true
55
vars:
@@ -41,7 +41,7 @@
4141
- name: Save api_status output
4242
copy:
4343
content: "{{ api_status.stdout }}"
44-
dest: ./artifacts/e2e_api_status_output.txt
44+
dest: "{{ playbook_dir }}/../../artifacts/e2e_api_status_output.txt"
4545
delegate_to: localhost
4646

4747
- name: Run executor test inside e2e (verify launching scripts in cgroups)
@@ -54,7 +54,7 @@
5454
- name: Save executor test output
5555
copy:
5656
content: "{{ exec_res.stdout }}"
57-
dest: ./artifacts/e2e_executor_output.txt
57+
dest: "{{ playbook_dir }}/../../artifacts/e2e_executor_output.txt"
5858
delegate_to: localhost
5959

6060
- name: Stop native_node (if running)
@@ -67,7 +67,7 @@
6767
- name: Collect native_node logs
6868
fetch:
6969
src: "{{ project_root }}/artifacts/native_node.log"
70-
dest: "./artifacts/native_node.log"
70+
dest: "{{ playbook_dir }}/../../artifacts/"
7171
flat: yes
7272

7373
- name: Summarize artifacts

0 commit comments

Comments
 (0)