Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .buildkite/hooks/post-command
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,16 @@ make -s testlogs 2>/dev/null | grep // | sort | uniq | (
done
)

# Always upload container test logs if this is a Container Test job!
if [[ "${BUILDKITE_LABEL}" =~ "Container tests" ]]; then
if test -d bazel-testlogs/runsc/container; then
# Use -L to follow the bazel-testlogs symlink
find -L bazel-testlogs/runsc/container -type f \( -name "*.log" -o -name "*.txt" \) | while read file; do
buildkite-agent artifact upload "${file}"
done
fi
fi

# Upload all profiles, and include in an annotation.
declare profile_output=$(mktemp --tmpdir)
for file in $(find /tmp/profile -name \*.pprof -print 2>/dev/null | sort); do
Expand Down
Loading
Loading