[CI] Upload logs as artifacts to BuildKite#3405
[CI] Upload logs as artifacts to BuildKite#3405kevin85421 merged 6 commits intoray-project:masterfrom
Conversation
b8537b4 to
e225632
Compare
|
@MortalHappiness PTAL, thanks! Also, I noticed that Edited: I create another PR to address this #3406 |
|
We should also upload |
36e357e to
70e6e2b
Compare
Signed-off-by: win5923 <ken89@kimo.com>
|
Hi @MortalHappiness, I've made the necessary fixes, I didn't expect that setting variables in Buildkite requires using result: |
|
I found a nested folder |
289afb7 to
da19dc9
Compare
Signed-off-by: win5923 <ken89@kimo.com>
Fixed in 56631f0 |
Signed-off-by: win5923 <ken89@kimo.com>
.buildkite/test-e2e.yml
Outdated
| - echo "--- END:e2e rayservice (nightly operator) tests finished" | ||
| - mkdir -p "$(pwd)/tmp" && export KUBERAY_TEST_OUTPUT_DIR=$(pwd)/tmp | ||
| - echo "KUBERAY_TEST_OUTPUT_DIR=$$KUBERAY_TEST_OUTPUT_DIR" | ||
| - KUBERAY_TEST_TIMEOUT_SHORT=1m KUBERAY_TEST_TIMEOUT_MEDIUM=5m KUBERAY_TEST_TIMEOUT_LONG=10m go test -timeout 30m -v ./test/e2e 2>&1 | awk -f ../.buildkite/format.awk | tee $$KUBERAY_TEST_OUTPUT_DIR/gotest.log || (kubectl logs --tail -1 -l app.kubernetes.io/name=kuberay | tee $$KUBERAY_TEST_OUTPUT_DIR/kuberay-operator.log && find "$$KUBERAY_TEST_OUTPUT_DIR" -name "*.log" | tar --transform='s|^.*/tmp/||' -cf /artifact-mount/e2e-log.tar -T - && exit 1) |
There was a problem hiding this comment.
Use --transform is not correct because KUBERAY_TEST_OUTPUT_DIR may not always be tmp. I think you need to find a flag to use that folder as archive root. You can also try zip command.
There was a problem hiding this comment.
Can i just cd into KUBERAY_TEST_OUTPUT_DIR and zip the *.log files?
There was a problem hiding this comment.
d99d698 to
909876f
Compare
Signed-off-by: blocka-wan <blocka_wan@trendmicro.com>


Why are these changes needed?
#3109
I made the test fail to see if any artifacts would be generated — looks good!
Result:

https://buildkite.com/ray-project/ray-ecosystem-ci-kuberay-ci/builds/8147#01963f30-29e8-4225-be66-66a6efa0f516/1102-1161
Related issue number
Closes #3109
Checks