-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(ci): Upload test results to Datadog (#11739)
* feat(ci): Upload test results to Datadog Signed-off-by: Spencer Gilbert <spencer.gilbert@datadoghq.com> * actually install the datadog-ci tool Signed-off-by: Spencer Gilbert <spencer.gilbert@datadoghq.com> * fix style Signed-off-by: Spencer Gilbert <spencer.gilbert@datadoghq.com> * try and debug windows failure Signed-off-by: Spencer Gilbert <spencer.gilbert@datadoghq.com> * update nextest config and update shebang Signed-off-by: Spencer Gilbert <spencer.gilbert@datadoghq.com> * more shebang Signed-off-by: Spencer Gilbert <spencer.gilbert@datadoghq.com> * forget shebangs, js is ultimate cross platform language Signed-off-by: Spencer Gilbert <spencer.gilbert@datadoghq.com> * one day this will work Signed-off-by: Spencer Gilbert <spencer.gilbert@datadoghq.com> * skip windows for now, include tags for platform and arch Signed-off-by: Spencer Gilbert <spencer.gilbert@datadoghq.com> * document nextest config Signed-off-by: Spencer Gilbert <spencer.gilbert@datadoghq.com> * link to windows issue in makefile Signed-off-by: Spencer Gilbert <spencer.gilbert@datadoghq.com>
- Loading branch information
1 parent
39f3b18
commit ca84575
Showing
5 changed files
with
53 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,18 @@ | ||
[profile.default] | ||
# "retries" defines the number of times a test should be retried. If set to a | ||
# non-zero value, tests that succeed on a subsequent attempt will be marked as | ||
# non-flaky. | ||
retries = 3 | ||
|
||
# shows all test statuses in output | ||
status-level = "all" | ||
|
||
# output failures as soon as they happen and at the end of the test run | ||
failure-output = "immediate-final" | ||
|
||
# don't cancel the test run on the first failure | ||
fail-fast = false | ||
|
||
[profile.default.junit] | ||
# output test results at target/nextest/default/junit.xml | ||
path = "junit.xml" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#!/usr/bin/env bash | ||
set -euo pipefail | ||
IFS=$'\n\t' | ||
|
||
# upload-test-restults.sh | ||
# | ||
# SUMMARY | ||
# | ||
# Upload `cargo-nextest` JUnit output to Datadog | ||
|
||
cd "$(dirname "${BASH_SOURCE[0]}")/.." | ||
set -x | ||
|
||
_os_platform="$(uname -s)" | ||
_os_architecture="$(uname -m)" | ||
|
||
export DD_TAGS="os.platform:$_os_platform,os.architecture:$_os_architecture" | ||
export DD_ENV="${DD_ENV:-"local"}" | ||
|
||
datadog-ci junit upload \ | ||
--service vector \ | ||
target/nextest/default/junit.xml |