forked from rhinstaller/anaconda
-
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.
infra: Raise kstest errors in the permian step
This makes it so that opening the GH web page automatically opens logs with the actual errors. Previously, it showed only a cryptic message "Runner return code: 1". and the actual errors were in a successfully completed step.
- Loading branch information
1 parent
1ef9461
commit 27db2cd
Showing
2 changed files
with
16 additions
and
22 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 |
---|---|---|
|
@@ -280,6 +280,14 @@ jobs: | |
"kstestParams":{"platform":"${{ needs.pr-info.outputs.platform }}"} | ||
}' | ||
# Permian hides the exit code of launcher, so error out this step manually based on logs | ||
rc=$( awk '/Runner return code: /{ print $4 }' permian.log) | ||
if [ -n "$rc" ]; then | ||
exit $rc | ||
else | ||
exit 111 | ||
fi | ||
# Needed so that other jobs are able to clean the working dir | ||
# FIXME: we should investigate running permian/launch sudo-less | ||
- name: Make artefacts created by sudo cleanable | ||
|
@@ -299,17 +307,6 @@ jobs: | |
kickstart-tests/data/additional_repo/*.rpm | ||
permian/permian.log | ||
# Permian hides the exit code of launcher | ||
- name: Pass the launch script exit code | ||
working-directory: ./permian | ||
run: | | ||
rc=$( awk '/Runner return code: /{ print $4 }' permian.log) | ||
if [ -n "$rc" ]; then | ||
exit $rc | ||
else | ||
exit 111 | ||
fi | ||
- name: Set result status | ||
if: always() | ||
uses: octokit/[email protected] | ||
|
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 |
---|---|---|
|
@@ -274,6 +274,14 @@ jobs: | |
"kstestParams":{"platform":"${{ needs.pr-info.outputs.platform }}"} | ||
}' | ||
|
||
# Permian hides the exit code of launcher, so error out this step manually based on logs | ||
rc=$( awk '/Runner return code: /{ print $4 }' permian.log) | ||
if [ -n "$rc" ]; then | ||
exit $rc | ||
else | ||
exit 111 | ||
fi | ||
|
||
# Needed so that other jobs are able to clean the working dir | ||
# FIXME: we should investigate running permian/launch sudo-less | ||
- name: Make artefacts created by sudo cleanable | ||
|
@@ -293,17 +301,6 @@ jobs: | |
kickstart-tests/data/additional_repo/*.rpm | ||
permian/permian.log | ||
|
||
# Permian hides the exit code of launcher | ||
- name: Pass the launch script exit code | ||
working-directory: ./permian | ||
run: | | ||
rc=$( awk '/Runner return code: /{ print $4 }' permian.log) | ||
if [ -n "$rc" ]; then | ||
exit $rc | ||
else | ||
exit 111 | ||
fi | ||
|
||
- name: Set result status | ||
if: always() | ||
uses: octokit/[email protected] | ||
|