Skip to content

Commit

Permalink
fixup: paths, experiment with junit
Browse files Browse the repository at this point in the history
  • Loading branch information
matzf committed Sep 13, 2023
1 parent 8e5fe63 commit 123f0ae
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .buildkite/cleanup-leftovers.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ docker network prune -f
echo "Remove leftover volumes"
docker volume prune -f

rm -rf bazel-testlogs logs/* traces gen gen-cache /tmp/test-artifacts
rm -rf bazel-testlogs logs/* traces gen gen-cache /tmp/test-artifacts test-out.tar.gz
19 changes: 10 additions & 9 deletions .buildkite/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@ env:
steps:
- label: "Build :bazel:"
command:
- bazel build --verbose_failures --announce_rc //:all
- bazel build --verbose_failures --announce_rc //:scion //:scion-ci
- bazel run --verbose_failures //docker:prod //docker:test
key: build
artifact_paths:
- "bin/*"
- "bazel-bin/scion.tar"
- "bazel-bin/scion-ci.tar"
retry: &automatic-retry
automatic:
- exit_status: -1 # Agent was lost
Expand All @@ -18,8 +19,10 @@ steps:
command:
- bazel test --config=race --config=unit_all
key: unit_tests
artifact_paths:
- "bazel-testlogs/**/*"
plugins:
- test-collector#v1.0.0:
files: "bazel-testlogs/**/test.xml"
format: "junit"
retry: *automatic-retry
timeout_in_minutes: 20
- label: "Lint :bash:"
Expand Down Expand Up @@ -77,16 +80,14 @@ steps:
post-command: |
echo "~~~ Shutting down SCION topology"
./scion.sh stop
pre-artifacts: |
pre-artifact: |
if [ -f "gen/scion-dc.yml" ]; then
tools/dc collect_logs scion logs/
fi
tar -chaf test-out.tar.gz $(ls -d logs traces gen gen-cache) # ls -d to filter missing directories
pre-exit: .buildkite/cleanup-leftovers.sh
artifact_paths: &scion-run-artifact-paths
- "logs"
- "traces"
- "gen"
- "gen-cache"
- test-out.tar.gz
timeout_in_minutes: 15
key: e2e_integration_tests_v2
retry: *automatic-retry
Expand Down
3 changes: 2 additions & 1 deletion .buildkite/pipeline_lib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,10 @@ gen_bazel_test_steps() {
echo " plugins:"
echo " - scionproto/metahook#v0.3.0:"
echo " pre-command: .buildkite/cleanup-leftovers.sh"
echo " pre-artifact: tar -chaf bazel-testlogs.tar.gz bazel-testlogs"
echo " pre-exit: .buildkite/cleanup-leftovers.sh"
echo " artifact_paths:"
echo " - \"bazel-testlogs/**/*\""
echo " - \"bazel-testlogs.tar.gz\""
echo " timeout_in_minutes: 20"
echo " retry:"
echo " automatic:"
Expand Down

0 comments on commit 123f0ae

Please sign in to comment.