ci: improve uploading test results (#31061)
* ci: ignore cargo2junit error * ci: easing sanitized rules
This commit is contained in:
parent
60c4a718a5
commit
7d17d7094a
|
@ -32,15 +32,17 @@ else
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ -n $BUILDKITE && -f "results.json" ]]; then
|
if [[ -n $BUILDKITE && -f "results.json" ]]; then
|
||||||
# prepare result file
|
# extract lines which start with '{'
|
||||||
awk '/{ "type": .* }/' results.json > sanitized-results.json
|
awk '/{.*/' results.json > sanitized-results.json
|
||||||
|
|
||||||
echo "~~~ Uploading test results to Buildkite Analytics"
|
echo "~~~ Uploading test results to Buildkite Analytics"
|
||||||
buildkite-test-collector < sanitized-results.json
|
buildkite-test-collector < sanitized-results.json
|
||||||
|
|
||||||
# upload to datadog
|
echo "~~~ Uploading test results to Datadog"
|
||||||
cargo2junit > results.xml < sanitized-results.json
|
cargo2junit > results.xml < sanitized-results.json || true
|
||||||
datadog-ci junit upload --service solana results.xml
|
if [[ -f "results.xml" ]]; then
|
||||||
|
datadog-ci junit upload --service solana results.xml
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
point_tags="pipeline=$BUILDKITE_PIPELINE_SLUG,job=$CI_LABEL,pr=$PR,success=$SUCCESS"
|
point_tags="pipeline=$BUILDKITE_PIPELINE_SLUG,job=$CI_LABEL,pr=$PR,success=$SUCCESS"
|
||||||
|
|
Loading…
Reference in New Issue