Skip to content

Commit 6cee73b

Browse files
shyamjesalustiugov
authored andcommitted
upload Minio-test log artifacts
Signed-off-by: shyam Jesal <[email protected]>
1 parent 0c9f9d3 commit 6cee73b

File tree

2 files changed

+16
-5
lines changed

2 files changed

+16
-5
lines changed

.github/workflows/cri_minio_test.yml

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,14 +47,17 @@ jobs:
4747
GOPATH: /root/tmp/gopath
4848
run: go build
4949

50+
- name: Create logdir
51+
run: mkdir -p -m777 -p /tmp/ctrd-logs/${{ github.run_id }}
52+
5053
- name: Start Containerd
51-
run: sudo containerd &
54+
run: sudo containerd 1>/tmp/ctrd-logs/${{ github.run_id }}/ctrd.out 2>/tmp/ctrd-logs/${{ github.run_id }}/ctrd.err &
5255

5356
- name: Start Firecracker-containerd
54-
run: sleep 1s && sudo /usr/local/bin/firecracker-containerd --config /etc/firecracker-containerd/config.toml &
57+
run: sleep 1s && sudo /usr/local/bin/firecracker-containerd --config /etc/firecracker-containerd/config.toml 1>/tmp/ctrd-logs/${{ github.run_id }}/fccd.out 2>/tmp/ctrd-logs/${{ github.run_id }}/fccd.err &
5558

5659
- name: Start vHive
57-
run: sleep 1s && sudo ./vhive &
60+
run: sleep 1s && sudo ./vhive -dbg 1>/tmp/ctrd-logs/${{ github.run_id }}/fccd.out 2>/tmp/ctrd-logs/${{ github.run_id }}/fccd.err &
5861

5962
- name: Create k8s cluster
6063
run: sleep 1s && ./scripts/cluster/create_one_node_cluster.sh
@@ -76,6 +79,14 @@ jobs:
7679
KUBECONFIG: /etc/kubernetes/admin.conf
7780
run: ./function-images/tests/save_load_minio/scripts/run_minio_k8s.sh
7881

82+
- name: Archive log artifacts
83+
if: ${{ always() }}
84+
uses: actions/upload-artifact@v2
85+
with:
86+
name: ctrd-logs
87+
path: |
88+
/tmp/ctrd-logs/${{ github.run_id }}
89+
7990
- name: Cleaning
8091
if: ${{ always() }}
8192
run: |

.github/workflows/cri_test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626

2727
- name: Host Info
2828
env:
29-
GITHUB_RUN_ID: ${{ github.run_id }}-${{ github.run_number }}
29+
GITHUB_RUN_ID: ${{ github.run_id }}
3030
run: |
3131
echo $HOSTNAME
3232
echo $GITHUB_RUN_ID
@@ -60,7 +60,7 @@ jobs:
6060
TMPDIR: /root/tmp/
6161
GOCACHE: /root/tmp/gocache
6262
GOPATH: /root/tmp/gopath
63-
GITHUB_RUN_ID: ${{ github.run_id }}-${{ github.run_number }}
63+
GITHUB_RUN_ID: ${{ github.run_id }}
6464
run: make test-cri
6565

6666
- name: Archive log artifacts

0 commit comments

Comments
 (0)