Skip to content

Commit

Permalink
infra: Waive correctly e2e webui tests
Browse files Browse the repository at this point in the history
  • Loading branch information
VladimirSlavik committed Aug 28, 2023
1 parent d464853 commit f9aca50
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/webui-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ permissions:
statuses: write
checks: write

env:
STATUS_NAME: Permian WebUI e2e

jobs:
pr-info:
if: startsWith(github.event.comment.body, '/webui-test')
Expand Down Expand Up @@ -72,7 +75,6 @@ jobs:
runs-on: [self-hosted, kstest]
timeout-minutes: 65
env:
STATUS_NAME: Permian WebUI e2e
TARGET_BRANCH: ${{ needs.pr-info.outputs.base_ref }}
# ocp-master-xxl: 32GB RAM / 4GB RAM per VM
TEST_JOBS: 8
Expand Down Expand Up @@ -276,14 +278,14 @@ jobs:
env:
BODY: ${{ github.event.comment.body }}
run: |
REASON=$(echo "$BODY" | sed -e "s#/kickstart-test --waive ##")
REASON=$(echo "$BODY" | sed -e "s#/webui-test --waive ##")
echo "reason=Waived, $REASON" >> $GITHUB_OUTPUT
- name: Set status
uses: octokit/[email protected]
with:
route: 'POST /repos/${{ github.repository }}/statuses/${{ needs.pr-info.outputs.sha }}'
context: '${{ env.STATUS_NAME }} ${{ needs.pr-info.outputs.launch_args }}'
context: ${{ env.STATUS_NAME }}
description: '${{ steps.get_reason.outputs.reason }}'
state: ${{ job.status }}
target_url: 'https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}'
Expand Down
8 changes: 5 additions & 3 deletions .github/workflows/webui-tests.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ permissions:
statuses: write
checks: write

env:
STATUS_NAME: Permian WebUI e2e

jobs:
pr-info:
if: startsWith(github.event.comment.body, '/webui-test')
Expand Down Expand Up @@ -66,7 +69,6 @@ jobs:
runs-on: [self-hosted, kstest]
timeout-minutes: 65
env:
STATUS_NAME: Permian WebUI e2e
TARGET_BRANCH: ${{ needs.pr-info.outputs.base_ref }}
# ocp-master-xxl: 32GB RAM / 4GB RAM per VM
TEST_JOBS: 8
Expand Down Expand Up @@ -270,14 +272,14 @@ jobs:
env:
BODY: ${{ github.event.comment.body }}
run: |
REASON=$(echo "$BODY" | sed -e "s#/kickstart-test --waive ##")
REASON=$(echo "$BODY" | sed -e "s#/webui-test --waive ##")
echo "reason=Waived, $REASON" >> $GITHUB_OUTPUT

- name: Set status
uses: octokit/[email protected]
with:
route: 'POST /repos/${{ github.repository }}/statuses/${{ needs.pr-info.outputs.sha }}'
context: '${{ env.STATUS_NAME }} ${{ needs.pr-info.outputs.launch_args }}'
context: ${{ env.STATUS_NAME }}
description: '${{ steps.get_reason.outputs.reason }}'
state: ${{ job.status }}
target_url: 'https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}'
Expand Down

0 comments on commit f9aca50

Please sign in to comment.