-
Notifications
You must be signed in to change notification settings - Fork 92
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: add testrail back & test-full-suite fixes (#5729)
* Added back TestRail reporting. * Fixed an incorrect assertion in test. * Full Test Suite workflow: * Fixed trigger for full test suite not working correctly. * Added option to NOT notify on slack (i hate spamming ppl in some cases!) ### QA Notes * confirmed results upload to TR * confirmed Full Suite triggers work now
- Loading branch information
Showing
6 changed files
with
69 additions
and
15 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 |
---|---|---|
|
@@ -28,6 +28,11 @@ on: | |
description: "The tags to use for Currents recording." | ||
default: "@linux" | ||
type: string | ||
report_testrail: | ||
required: false | ||
description: "Whether or not to report results to TestRail." | ||
default: false | ||
type: boolean | ||
|
||
workflow_dispatch: | ||
inputs: | ||
|
@@ -125,3 +130,19 @@ jobs: | |
role-to-assume: ${{ secrets.AWS_TEST_REPORTS_ROLE }} | ||
report-dir: ${{ env.REPORT_DIR }} | ||
|
||
- name: Install trcli | ||
if: ${{ inputs.report_testrail }} | ||
shell: bash | ||
run: sudo apt-get update && sudo apt-get install -y python3-pip && pip3 install trcli | ||
|
||
- name: Upload Test Results to TestRail | ||
if: ${{ inputs.report_testrail }} | ||
shell: bash | ||
run: | | ||
TESTRAIL_TITLE="$(date +'%Y-%m-%d') ${{ env.TESTRAIL_TITLE }} - $GITHUB_REF_NAME" | ||
echo "TESTRAIL_TITLE=$TESTRAIL_TITLE" >> $GITHUB_ENV | ||
trcli --host "https://posit.testrail.io/" --project "${{ env.TESTRAIL_PROJECT }}" --username [email protected] --key "${{ env.TESTRAIL_API_KEY }}" parse_junit --file "./test-results/junit.xml" --case-matcher name --title "$TESTRAIL_TITLE" --close-run | ||
env: | ||
TESTRAIL_TITLE: ${{ inputs.project }} | ||
TESTRAIL_PROJECT: "Positron" | ||
TESTRAIL_API_KEY: ${{ secrets.TESTRAIL_API_KEY }} |
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 |
---|---|---|
|
@@ -22,6 +22,11 @@ on: | |
description: "The tags to use for Currents recording." | ||
default: "" | ||
type: string | ||
report_testrail: | ||
required: false | ||
description: "Whether or not to report results to TestRail." | ||
default: false | ||
type: boolean | ||
|
||
workflow_dispatch: | ||
inputs: | ||
|
@@ -45,7 +50,7 @@ jobs: | |
name: ${{ inputs.display_name }} | ||
runs-on: | ||
labels: [windows-latest-8x] | ||
timeout-minutes: 80 | ||
timeout-minutes: 100 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
POSITRON_BUILD_NUMBER: 0 # CI skips building releases | ||
|
@@ -162,3 +167,15 @@ jobs: | |
with: | ||
role-to-assume: ${{ secrets.AWS_TEST_REPORTS_ROLE }} | ||
report-dir: ${{ env.REPORT_DIR }} | ||
|
||
- name: Upload Test Results to TestRail | ||
if: ${{ inputs.report_testrail }} | ||
shell: bash | ||
run: | | ||
TESTRAIL_TITLE="$(date +'%Y-%m-%d') ${{ env.TESTRAIL_TITLE }} - $GITHUB_REF_NAME" | ||
echo "TESTRAIL_TITLE=$TESTRAIL_TITLE" >> $GITHUB_ENV | ||
trcli --host "https://posit.testrail.io/" --project "${{ env.TESTRAIL_PROJECT }}" --username [email protected] --key "${{ env.TESTRAIL_API_KEY }}" parse_junit --file "./test-results/junit.xml" --case-matcher name --title "$TESTRAIL_TITLE" --close-run | ||
env: | ||
TESTRAIL_TITLE: "e2e-windows" | ||
TESTRAIL_PROJECT: "Positron" | ||
TESTRAIL_API_KEY: ${{ secrets.TESTRAIL_API_KEY }} |
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