Skip to content

Commit 4ff9d06

Browse files
authored
Merge pull request #392 from kzys/al-logs
Redirect firecrakcer-containerd's logs to runtime/logs/containerd.out
2 parents 0dabb22 + 7777d56 commit 4ff9d06

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

.buildkite/al2_pipeline.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ steps:
3535
hostname: "${BUILDKITE_AGENT_META_DATA_HOSTNAME}"
3636
env:
3737
NUMBER_OF_VMS: "100"
38+
artifact_paths:
39+
- "runtime/logs/*"
3840
command:
3941
- ./.buildkite/al2_test.sh
4042
timeout_in_minutes: 10

.buildkite/al2_test.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,13 @@ export CONTAINERD_SOCKET=$dir/containerd.sock
1010

1111
export SHIM_BASE_DIR=$dir
1212

13-
sudo -E PATH=$PATH $bin_path/firecracker-containerd --config $dir/config.toml &
13+
mkdir -p runtime/logs
14+
15+
sudo -E PATH=$PATH \
16+
$bin_path/firecracker-containerd \
17+
--config $dir/config.toml &>> runtime/logs/containerd.out &
1418
containerd_pid=$!
19+
1520
sudo $bin_path/firecracker-ctr --address $dir/containerd.sock content fetch docker.io/library/alpine:3.10.1
1621
sudo -E PATH=$bin_path:$PATH /usr/local/bin/go test -count=1 -run TestMultipleVMs_Isolated ./... -v
1722

0 commit comments

Comments
 (0)