Skip to content

Commit d35a2f5

Browse files
authored
feat(run-integration-test): Add parallelism (#24)
* feat(run-integration-test): Add parallelism * fixed test callout * readme and tag usage * added note re. test name resolution * removed parallelism as input, read straight from config * moved param
1 parent 9562690 commit d35a2f5

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

run-integration-test/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@ Supported Kubernetes version can be inspected on the official Replicated documen
3535
- `test-parameter` (defaults to `smoke`)
3636
- `replicated-api-token` (required)
3737

38+
> [!NOTE]
39+
> `test-parameter` maps to a specific test *name*, not to a single test with all dimensions resolved.
40+
3841
### Outputs
3942

4043
- `start-time`

run-integration-test/action.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,11 +75,13 @@ runs:
7575
CLUSTER_TTL=$(yq -er '."cluster-ttl" // "4h"' ./tests/infrastructure.yaml)
7676
INSTANCE_NODES=$(yq -er '.nodes // 1' ./tests/infrastructure.yaml)
7777
INSTANCE_DISK=$(yq -er '.disk // 50' ./tests/infrastructure.yaml)
78+
TEST_PARALLELISM=$(yq -er '.parallelism // 2' ./tests/infrastructure.yaml)
7879
7980
echo "INSTANCE_TYPE=$INSTANCE_TYPE" | tee -a "$GITHUB_ENV"
8081
echo "CLUSTER_TTL=$CLUSTER_TTL" | tee -a "$GITHUB_ENV"
8182
echo "INSTANCE_NODES=$INSTANCE_NODES" | tee -a "$GITHUB_ENV"
8283
echo "INSTANCE_DISK=$INSTANCE_DISK" | tee -a "$GITHUB_ENV"
84+
echo "TEST_PARALLELISM=$TEST_PARALLELISM" | tee -a "$GITHUB_ENV"
8385
8486
############################
8587
# Validate Test Parameters #
@@ -217,9 +219,9 @@ runs:
217219
python ./scripts/run-tests --skip-tests --operator "$OPERATOR_NAME=$OPERATOR_VERSION"
218220
219221
if [ "$TEST_RUN" == "all" ]; then
220-
python ./scripts/run-tests --skip-release --log-level debug
222+
python ./scripts/run-tests --skip-release --log-level debug --parallel "$TEST_PARALLELISM"
221223
else
222-
python ./scripts/run-tests --skip-release --log-level debug "--$TEST_RUN" "$TEST_PARAMETER"
224+
python ./scripts/run-tests --skip-release --log-level debug "--$TEST_RUN" "$TEST_PARAMETER" --parallel "$TEST_PARALLELISM"
223225
fi
224226
225227
- name: Record Test End Time

0 commit comments

Comments
 (0)