Skip to content

Commit 6b31146

Browse files
committed
ci: Use new action version and inputs
1 parent f92bf86 commit 6b31146

File tree

2 files changed

+56
-29
lines changed

2 files changed

+56
-29
lines changed

.github/workflows/integration-test.yml

Lines changed: 47 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,21 @@ on:
1212
# At 00:00 on Sunday. See: https://crontab.guru/#0_0_*_*_0
1313
# - cron: "0 0 * * 0"
1414
workflow_dispatch:
15+
inputs:
16+
test-mode:
17+
description: Test mode
18+
required: true
19+
type: choice
20+
options:
21+
- custom
22+
- profile
23+
test-mode-input:
24+
description: The profile or the runner used
25+
required: true
26+
test-suite:
27+
description: Name of the test-suite. Only used if test-mode is `custom`
28+
test:
29+
description: Name of the test. Only used of test-mode is `custom`
1530

1631
jobs:
1732
test:
@@ -20,36 +35,42 @@ jobs:
2035
steps:
2136
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
2237
with:
38+
persist-credentials: false
2339
submodules: recursive
2440

41+
# TODO: Enable the scheduled runs which hard-code what profile to use
2542
- name: Run Integration Test
2643
id: test
27-
uses: stackabletech/actions/run-integration-test@990f74b08b1c3693fb80814c20c44a97531ebf75 # TODO: Use released version
44+
uses: stackabletech/actions/run-integration-test@e667cf50055aa43bd454125499843f20c4ebaf3d # TODO: Use released version
2845
with:
2946
replicated-api-token: ${{ secrets.REPLICATED_API_TOKEN }}
30-
test-profile: schedule
47+
test-mode-input: ${{ inputs.test-mode-input }}
48+
test-suite: ${{ inputs.test-suite }}
49+
test-mode: ${{ inputs.test-mode }}
50+
test: ${{ inputs.test }}
3151

32-
- name: Send Notification
33-
if: ${{ failure() }}
34-
env:
35-
SLACK_BOT_TOKEN: ${{ secrets.SLACK_INTEGRATION_TEST_TOKEN }}
36-
uses: slackapi/slack-github-action@37ebaef184d7626c5f204ab8d3baff4262dd30f0 # v1.27.0
37-
with:
38-
channel-id: "C07UYJYSMSN" # notifications-integration-tests
39-
payload: |
40-
{
41-
"text": "Integration Test *${{ github.repository }}* failed",
42-
"attachments": [
43-
{
44-
"pretext": "Started at ${{ steps.test.outputs.start-time }}, failed at ${{ steps.test.outputs.end-time }}",
45-
"color": "#aa0000",
46-
"actions": [
47-
{
48-
"type": "button",
49-
"text": "Go to integration test run",
50-
"url": "${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"
51-
}
52-
]
53-
}
54-
]
55-
}
52+
# TODO: Comment back in once integration tests itself work. Also add improvements to the notifications.
53+
# - name: Send Notification
54+
# if: ${{ failure() }}
55+
# env:
56+
# SLACK_BOT_TOKEN: ${{ secrets.SLACK_INTEGRATION_TEST_TOKEN }}
57+
# uses: slackapi/slack-github-action@37ebaef184d7626c5f204ab8d3baff4262dd30f0 # v1.27.0
58+
# with:
59+
# channel-id: "C07UYJYSMSN" # notifications-integration-tests
60+
# payload: |
61+
# {
62+
# "text": "Integration Test for *${{ github.repository }}* failed",
63+
# "attachments": [
64+
# {
65+
# "pretext": "Started at ${{ steps.test.outputs.start-time }}, failed at ${{ steps.test.outputs.end-time }}",
66+
# "color": "#aa0000",
67+
# "actions": [
68+
# {
69+
# "type": "button",
70+
# "text": "Go to integration test run",
71+
# "url": "${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"
72+
# }
73+
# ]
74+
# }
75+
# ]
76+
# }

tests/interu.yaml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
runners:
22
amd64:
3-
platform: aks-1.31
3+
platform: aks-1.32
44
ttl: 6h
55
node-groups:
66
- name: default
77
arch: amd64
8-
size: large
8+
size: medium
99
disk-gb: 100
1010
nodes: 3
1111

@@ -14,4 +14,10 @@ profiles:
1414
strategy: use-runner
1515
runner: amd64
1616
options:
17-
parallelism: 2
17+
beku-parallelism: 2
18+
smoke-latest:
19+
strategy: use-runner
20+
runner: amd64
21+
options:
22+
beku-parallelism: 2
23+
beku-test-suite: smoke-latest

0 commit comments

Comments
 (0)