Skip to content

Commit

Permalink
make CRI test logs persistent
Browse files Browse the repository at this point in the history
Signed-off-by: Shyam Jesal <s.jesalpura@gmail.com>
  • Loading branch information
shyamjesal committed Mar 26, 2021
1 parent 3a3eb53 commit 83b192d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/cri_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,14 @@ jobs:
runs-on: [self-hosted, cri]

steps:

- name: Host Info
env:
GITHUB_RUN_ID: ${{ github.run_id }}-${{ github.run_number }}
run: |
echo $HOSTNAME
echo $GITHUB_RUN_ID
- name: Setup TMPDIR
run: mkdir -p $HOME/tmp

Expand Down Expand Up @@ -52,6 +60,7 @@ jobs:
TMPDIR: /root/tmp/
GOCACHE: /root/tmp/gocache
GOPATH: /root/tmp/gopath
GITHUB_RUN_ID: ${{ github.run_id }}-${{ github.run_number }}
run: make test-cri

- name: Cleaning
Expand Down
4 changes: 2 additions & 2 deletions cri/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,14 @@
# SOFTWARE.

EXTRAGOARGS:=-v -race -cover
CTRDLOGDIR:=/tmp/ctrd-logs
CTRDLOGDIR:=/tmp/ctrd-logs/${GITHUB_RUN_ID}
test:
sudo mkdir -p -m777 -p $(CTRDLOGDIR)
sudo containerd 1>$(CTRDLOGDIR)/ctrd.out 2>$(CTRDLOGDIR)/ctrd.err &
sleep 1s
sudo /usr/local/bin/firecracker-containerd --config /etc/firecracker-containerd/config.toml 1>$(CTRDLOGDIR)/fccd.out 2>$(CTRDLOGDIR)/fccd.err &
sleep 1s
sudo ./../vhive 1>$(CTRDLOGDIR)/orch.out 2>$(CTRDLOGDIR)/orch.err &
sudo ./../vhive -dbg 1>$(CTRDLOGDIR)/orch.out 2>$(CTRDLOGDIR)/orch.err &
sleep 1s

./../scripts/cluster/create_one_node_cluster.sh
Expand Down

0 comments on commit 83b192d

Please sign in to comment.