Skip to content

Commit 331d2a2

Browse files
committed
ci: only run gateway-related release tests
Signed-off-by: Sergei Lukianov <me@slukjanov.name>
1 parent 3c604ae commit 331d2a2

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

.github/workflows/dev.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -359,14 +359,15 @@ jobs:
359359
- build
360360
- check_changes
361361

362-
name: "${{ matrix.hybrid && 'h' || 'v' }}-${{ matrix.upgradefrom && 'up' || '' }}${{ matrix.upgradefrom }}${{ matrix.upgradefrom && '-' || '' }}${{ matrix.mesh && 'mesh-' || '' }}${{ matrix.gateway && 'gw-' || '' }}${{ matrix.includeonie && 'onie-' || '' }}${{ matrix.buildmode }}-${{ matrix.vpcmode }}"
362+
name: "${{ matrix.hybrid && 'h' || 'v' }}-${{ matrix.upgradefrom && 'up' || '' }}${{ matrix.upgradefrom }}${{ matrix.upgradefrom && '-' || '' }}${{ matrix.mesh && 'mesh-' || '' }}${{ matrix.gateway && 'gw-' || '' }}${{ matrix.includeonie && 'onie-' || '' }}${{ matrix.buildmode }}-${{ matrix.vpcmode }}${{ (inputs.enable_release_test == true || contains(github.event.pull_request.labels.*.name, 'ci:+release')) && '-rtg' || '' }}"
363363

364364
uses: githedgehog/fabricator/.github/workflows/run-vlab.yaml@master
365365
with:
366366
# ci:+hlab is required to enable hybrid lab tests on PR
367367
# ci:+vlab is required to enable virtual lab tests on PR
368368
# ci:-upgrade disables upgrade tests on PR
369-
# hlab is disabled for main and merge_queue till we have gateway tests for it
369+
# ci:+release enables release tests on PR (only tests related to the gateway)
370+
# hlab if it's enabled together with the release tests, it'll now run only gateway tests
370371
skip: >-
371372
${{
372373
github.event_name == 'pull_request'
@@ -395,6 +396,7 @@ jobs:
395396
buildmode: ${{ matrix.buildmode }}
396397
vpcmode: ${{ matrix.vpcmode }}
397398
releasetest: ${{ contains(github.event.pull_request.labels.*.name, 'ci:+release') || inputs.enable_release_tests == true }}
399+
releasetest_regex: ${{ (contains(github.event.pull_request.labels.*.name, 'ci:+release') || inputs.enable_release_tests == true) && 'Gateway' || '' }}
398400
hybrid: ${{ matrix.hybrid }}
399401
upgradefrom: ${{ matrix.upgradefrom }}
400402

0 commit comments

Comments
 (0)