Skip to content

Commit

Permalink
test: add beta scale test (#4908)
Browse files Browse the repository at this point in the history
  • Loading branch information
njtran committed Oct 26, 2023
1 parent baf9b57 commit be517c8
Show file tree
Hide file tree
Showing 7 changed files with 969 additions and 3 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/alpha-e2e-scale-trigger.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: AlphaE2EScaleTrigger
on:
schedule:
- cron: '7 18 * * *'
workflow_run:
workflows: [ApprovalComment]
types: [completed]
workflow_dispatch:
jobs:
resolve:
if: (github.repository == 'aws/karpenter' && (github.event_name != 'workflow_run' || github.event.workflow_run.conclusion == 'success')) || github.event_name == 'workflow_dispatch'
uses: ./.github/workflows/resolve-args.yaml
with:
allowed_comment: "alpha-scale"
alpha-scale:
needs: [resolve]
if: needs.resolve.outputs.SHOULD_RUN == 'true'
uses: ./.github/workflows/e2e.yaml
with:
suite: Alpha/Scale
git_ref: ${{ needs.resolve.outputs.GIT_REF }}
region: "us-west-2"
enable_metrics: true
workflow_trigger: "alpha-scale"
secrets:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
2 changes: 1 addition & 1 deletion .github/workflows/approval-comment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:

jobs:
approval-comment:
if: startsWith(github.event.review.body, '/karpenter snapshot') || startsWith(github.event.review.body, '/karpenter scale') || startsWith(github.event.review.body, '/karpenter conformance')
if: startsWith(github.event.review.body, '/karpenter snapshot') || startsWith(github.event.review.body, '/karpenter alpha-scale') || startsWith(github.event.review.body, '/karpenter scale') || startsWith(github.event.review.body, '/karpenter conformance')
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/e2e-scale-trigger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,11 @@ jobs:
if: needs.resolve.outputs.SHOULD_RUN == 'true'
uses: ./.github/workflows/e2e.yaml
with:
suite: Scale
suite: Beta/Scale
git_ref: ${{ needs.resolve.outputs.GIT_REF }}
region: ${{ inputs.region || 'us-west-2' }}
enable_metrics: ${{ inputs.enable_metrics || true }}
workflow_trigger: "scale"
cleanup: ${{ inputs.cleanup || true }}
secrets:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
1 change: 1 addition & 0 deletions .github/workflows/e2e.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ on:
- Beta/Expiration
- Beta/Chaos
- Beta/IPv6
- Beta/Scale
- Alpha/Integration
- Alpha/Machine
- Alpha/Consolidation
Expand Down

0 comments on commit be517c8

Please sign in to comment.