Skip to content

Commit 908af69

Browse files
committed
ci: Disable VLAB tests for Pull Request by default
The VLAB tests take a long time to run, and we run them both for the PR and in the merge queue. This commit disables them, by default, for Pull Requests, but they remain enabled for the merge queue. The idea is to save time for most Pull Requests. If the VLAB tests break, we'll still catch it from the merge queue - it's not ideal as we prefer early feedback, but we don't expect this to happen very often. We can revisit if the assumption doesn't hold. For changes that are more likely to change the way the dataplane interacts with the fabric, contributors can, and should, enable VLAB tests explicitly by adding the "ci:+vlab" label to their Pull Request before running the checks. Signed-off-by: Quentin Monnet <qmo@qmon.net>
1 parent 2cb3565 commit 908af69

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/dev.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -414,15 +414,15 @@ jobs:
414414
uses: githedgehog/fabricator/.github/workflows/run-vlab.yaml@master
415415
with:
416416
# ci:+hlab is required to enable hybrid lab tests on PR
417-
# ci:-vlab disables virtual lab tests on PR
417+
# ci:+vlab is required to enable virtual lab tests on PR
418418
# ci:-upgrade disables upgrade tests on PR
419419
# hlab is disabled for main and merge_queue till we have gateway tests for it
420420
skip: >-
421421
${{
422422
github.event_name == 'pull_request'
423423
&& (
424424
matrix.hybrid && !contains(github.event.pull_request.labels.*.name, 'ci:+hlab')
425-
|| !matrix.hybrid && contains(github.event.pull_request.labels.*.name, 'ci:-vlab')
425+
|| !matrix.hybrid && !contains(github.event.pull_request.labels.*.name, 'ci:+vlab')
426426
|| matrix.upgradefrom != '' && contains(github.event.pull_request.labels.*.name, 'ci:-upgrade')
427427
)
428428

0 commit comments

Comments
 (0)