Skip to content

Commit

Permalink
test: Add scale test periodic to GHA (#4061)
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathan-innis committed Jun 15, 2023
1 parent 0483404 commit fca1649
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/e2e-matrix.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ on:
# 3. Downstream fork triggered the job through dispatch and has set 'ENABLE_E2E' in repo environment variables
jobs:
resolve-git-ref:
if: (github.repository == 'aws/karpenter' && (github.event_name != 'workflow_run' || github.event.workflow_run.conclusion == 'success')) || (vars.ENABLE_E2E && github.event_name == 'workflow_dispatch')
if: (github.repository == 'aws/karpenter' && (github.event_name != 'workflow_run' || github.event.workflow_run.conclusion == 'success')) || github.event_name == 'workflow_dispatch'
runs-on: ubuntu-latest
outputs:
GIT_REF: ${{ steps.resolve-step.outputs.GIT_REF }}
Expand All @@ -33,7 +33,7 @@ jobs:
fi
e2e:
needs: [resolve-git-ref]
if: (github.repository == 'aws/karpenter' && (github.event_name != 'workflow_run' || github.event.workflow_run.conclusion == 'success')) || (vars.ENABLE_E2E && github.event_name == 'workflow_dispatch')
if: (github.repository == 'aws/karpenter' && (github.event_name != 'workflow_run' || github.event.workflow_run.conclusion == 'success')) || github.event_name == 'workflow_dispatch'
strategy:
fail-fast: false
matrix:
Expand All @@ -48,7 +48,7 @@ jobs:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
e2e-upgrade:
needs: [resolve-git-ref]
if: (github.repository == 'aws/karpenter' && (github.event_name != 'workflow_run' || github.event.workflow_run.conclusion == 'success')) || (vars.ENABLE_E2E && github.event_name == 'workflow_dispatch')
if: (github.repository == 'aws/karpenter' && (github.event_name != 'workflow_run' || github.event.workflow_run.conclusion == 'success')) || github.event_name == 'workflow_dispatch'
uses: ./.github/workflows/e2e-upgrade.yaml
with:
from_git_ref: v0.26.1
Expand Down
15 changes: 15 additions & 0 deletions .github/workflows/e2e-scale-trigger.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: E2EScaleTrigger
on:
schedule:
- cron: '7 18 * * *'
workflow_dispatch:
jobs:
scale:
if: github.repository == 'aws/karpenter' || github.event_name == 'workflow_dispatch'
uses: ./.github/workflows/e2e.yaml
with:
suite: Scale
git_repo: aws/karpenter
event_name: ${{ github.event_name }}
secrets:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}

0 comments on commit fca1649

Please sign in to comment.