-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add step to report rosacli testing result to report portal
update update update update update update update update update update
- Loading branch information
Showing
9 changed files
with
89 additions
and
16 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
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 @@ | ||
../OWNERS |
27 changes: 27 additions & 0 deletions
27
ci-operator/step-registry/rosa/test/e2e/report/rosa-test-e2e-report-commands.sh
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,27 @@ | ||
#!/bin/bash | ||
|
||
set -o nounset | ||
set -o errexit | ||
set -o pipefail | ||
|
||
trap 'CHILDREN=$(jobs -p); if test -n "${CHILDREN}"; then kill ${CHILDREN} && wait; fi' TERM | ||
|
||
|
||
log(){ | ||
echo -e "\033[1m$(date "+%d-%m-%YT%H:%M:%S") " "${*}" | ||
} | ||
|
||
tar -xvf ${SHARED_DIR}/junit.tar.gz -C ${ARTIFACT_DIR} | ||
|
||
log "INFO: Generate report portal report ..." | ||
rosatest --ginkgo.v --ginkgo.no-color --ginkgo.timeout "10m" --ginkgo.label-filter "e2e-report" | ||
log "\nTest results:" | ||
cat "$ARTIFACT_DIR/e2e-test-results.json" | ||
# Remove the old junit.xml file | ||
rm -rf ${ARTIFACT_DIR}/*.xml | ||
|
||
failures=$(cat $ARTIFACT_DIR/e2e-test-results.json | jq -r '.failures') | ||
if [[ $failures -gt 0 ]]; then | ||
log "Error: Execute testing failed. Detail logs are under $ARTIFACT_DIR/junit" | ||
exit 1 | ||
fi |
25 changes: 25 additions & 0 deletions
25
ci-operator/step-registry/rosa/test/e2e/report/rosa-test-e2e-report-ref.metadata.json
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,25 @@ | ||
{ | ||
"path": "rosa/test/e2e/report/rosa-test-e2e-report-ref.yaml", | ||
"owners": { | ||
"approvers": [ | ||
"yasun1", | ||
"xueli181114", | ||
"yuwang-RH", | ||
"yufchang", | ||
"jtaleric", | ||
"svetsa-rh", | ||
"radtriste" | ||
], | ||
"reviewers": [ | ||
"yasun1", | ||
"xueli181114", | ||
"yuwang-RH", | ||
"tzhou5", | ||
"yingzhanredhat", | ||
"yufchang", | ||
"jtaleric", | ||
"svetsa-rh", | ||
"radtriste" | ||
] | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
ci-operator/step-registry/rosa/test/e2e/report/rosa-test-e2e-report-ref.yaml
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,11 @@ | ||
ref: | ||
as: rosa-test-e2e-report | ||
from: rosa-aws-cli | ||
grace_period: 10m | ||
commands: rosa-test-e2e-report-commands.sh | ||
resources: | ||
requests: | ||
cpu: 100m | ||
memory: 300Mi | ||
documentation: |- | ||
Report the rosa CLI e2e results. |
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