Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

infra: Waive correctly e2e webui tests #5087

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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/request-action@v2.x
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/request-action@v2.x
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
Loading