-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(ci) track jobs failure statistics
From Kong#3857
- Loading branch information
1 parent
acdd89d
commit 71fd8ac
Showing
3 changed files
with
27 additions
and
9 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
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,17 @@ | ||
#!/bin/bash | ||
|
||
if ! [[ "$TRAVIS_BRANCH" == "master" || "$TRAVIS_BRANCH" == "next" ]] ; then | ||
exit 0 | ||
fi | ||
|
||
pip install datadog | ||
cat >~/.dogrc <<EOL | ||
[Connection] | ||
apikey = $DD_API_KEY | ||
appkey = $DD_APP_KEY | ||
EOL | ||
|
||
cat ~/output/* | grep 'FAILED ' | grep -v listed | grep -v ms > collated_output.txt | ||
cat collated_output.txt | sed 's/^.*spec\///; s/\.lua.*$//' | sed 's/^//' > parsed_output.txt | ||
cat parsed_output.txt | sed 's/-/_/g' | sed 's/[^a-zA-Z0-9_]/\./g' > dd_compatible.txt | ||
<dd_compatible.txt xargs -I % dog metric post travis_ci.kong.failure --type count --tags "test:%" 1 |
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