Skip to content

Commit bad286b

Browse files
authored
ci: Enable dropgz-test in PR pipeline (#2116)
1 parent 246fee4 commit bad286b

File tree

5 files changed

+164
-47
lines changed

5 files changed

+164
-47
lines changed

.pipelines/pipeline.yaml

Lines changed: 116 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -5,22 +5,22 @@ pr:
55
- release/*
66
paths:
77
exclude:
8-
- ".devcontainer"
9-
- ".hooks"
10-
- ".vscode"
11-
- ".github"
12-
- docs
8+
- ".devcontainer"
9+
- ".hooks"
10+
- ".vscode"
11+
- ".github"
12+
- docs
1313

1414
trigger:
1515
paths:
1616
exclude:
17-
- docs
18-
- "zapai/*"
19-
- "azure-ipam/*"
20-
- "dropgz/*"
17+
- docs
18+
- "zapai/*"
19+
- "azure-ipam/*"
20+
- "dropgz/*"
2121
tags:
2222
include:
23-
- "*"
23+
- "*"
2424

2525
stages:
2626
- stage: setup
@@ -328,6 +328,7 @@ stages:
328328
displayName: "Set current tag variable"
329329
condition: always()
330330
331+
# Cilium Podsubnet E2E tests
331332
- template: singletenancy/cilium/cilium-e2e-job-template.yaml
332333
parameters:
333334
name: "cilium_e2e"
@@ -337,30 +338,68 @@ stages:
337338
clusterName: "ciliume2e"
338339
vmSize: Standard_B2ms
339340
k8sVersion: ""
340-
dependsOn: 'containerize'
341+
dependsOn: "containerize"
341342

343+
- template: singletenancy/cilium/cilium-e2e-job-template.yaml
344+
parameters:
345+
name: "cilium_podsubnet_cni_e2e"
346+
displayName: CNI - Cilium Podsubnet
347+
testDropgz: true
348+
clusterType: swift-byocni-nokubeproxy-up
349+
clusterName: "ciliumpodsubnetcnie2e"
350+
vmSize: Standard_B2ms
351+
k8sVersion: ""
352+
windowsOsSku: ""
353+
dependsOn: "containerize"
354+
355+
# Cilium Overlay E2E tests
342356
- template: singletenancy/cilium-overlay/cilium-overlay-e2e-job-template.yaml
343357
parameters:
344-
name: "cilium_overlay_cilium_e2e"
358+
name: "cilium_overlay_e2e"
345359
displayName: Cilium on AKS Overlay
346360
testDropgz: ""
347361
clusterType: overlay-byocni-nokubeproxy-up
348-
clusterName: "overlaye2e"
362+
clusterName: "ciliumoverlaye2e"
349363
vmSize: Standard_B2ms
350364
k8sVersion: ""
351-
dependsOn: 'containerize'
365+
dependsOn: "containerize"
352366

367+
- template: singletenancy/cilium-overlay/cilium-overlay-e2e-job-template.yaml
368+
parameters:
369+
name: "cilium_overlay_cni_e2e"
370+
displayName: CNI - Cilium on AKS Overlay
371+
testDropgz: true
372+
clusterType: overlay-byocni-nokubeproxy-up
373+
clusterName: "ciliumoverlaycnie2e"
374+
vmSize: Standard_B2ms
375+
k8sVersion: ""
376+
windowsOsSku: ""
377+
dependsOn: "containerize"
378+
379+
# Azure Overlay E2E tests
353380
- template: singletenancy/azure-cni-overlay/azure-cni-overlay-e2e-job-template.yaml
354381
parameters:
355-
name: "azure_cni_overlay_e2e"
356-
displayName: Azure CNI Overlay
382+
name: "azure_overlay_e2e"
383+
displayName: Azure Overlay
357384
testDropgz: ""
358385
clusterType: overlay-byocni-up
359-
clusterName: "azurecnioverlaye2e"
386+
clusterName: "azureoverlaye2e"
360387
vmSize: Standard_B2ms
361388
k8sVersion: ""
362-
dependsOn: 'containerize'
389+
dependsOn: "containerize"
363390

391+
- template: singletenancy/azure-cni-overlay/azure-cni-overlay-e2e-job-template.yaml
392+
parameters:
393+
name: "azure_overlay_cni_e2e"
394+
displayName: CNI - Azure Overlay
395+
testDropgz: true
396+
clusterType: overlay-byocni-up
397+
clusterName: "azureoverlaycnie2e"
398+
vmSize: Standard_B2ms
399+
k8sVersion: ""
400+
dependsOn: "containerize"
401+
402+
# AKS Swift E2E tests
364403
- template: singletenancy/aks-swift/e2e-job-template.yaml
365404
parameters:
366405
name: "aks_swift_e2e"
@@ -370,20 +409,33 @@ stages:
370409
clusterName: "swifte2e"
371410
vmSize: Standard_B2s
372411
k8sVersion: ""
373-
dependsOn: 'containerize'
412+
dependsOn: "containerize"
413+
414+
- template: singletenancy/aks-swift/e2e-job-template.yaml
415+
parameters:
416+
name: "aks_swift_cni_e2e"
417+
displayName: CNI - AKS Swift
418+
testDropgz: true
419+
clusterType: swift-byocni-up
420+
clusterName: "swiftcnie2e"
421+
vmSize: Standard_B2ms
422+
k8sVersion: ""
423+
windowsOsSku: ""
424+
dependsOn: "containerize"
374425

426+
# CNIv1 E2E tests
375427
- template: singletenancy/aks/e2e-job-template.yaml
376428
parameters:
377429
name: "aks_ubuntu_22_linux_e2e"
378430
displayName: AKS Ubuntu 22
379-
arch: 'amd64'
380-
os: 'linux'
431+
arch: "amd64"
432+
os: "linux"
381433
clusterType: linux-cniv1-up
382-
clusterName: 'ubuntu22e2e'
434+
clusterName: "ubuntu22e2e"
383435
vmSize: Standard_B2s
384436
k8sVersion: 1.25
385437
scaleup: 100
386-
dependsOn: 'containerize'
438+
dependsOn: "containerize"
387439

388440
- template: singletenancy/aks/e2e-job-template.yaml
389441
parameters:
@@ -392,12 +444,13 @@ stages:
392444
arch: amd64
393445
os: windows
394446
clusterType: windows-cniv1-up
395-
clusterName: 'win22e2e'
447+
clusterName: "win22e2e"
396448
vmSize: Standard_B2ms
397-
os_version: 'ltsc2022'
449+
os_version: "ltsc2022"
398450
scaleup: 50
399-
dependsOn: 'containerize'
451+
dependsOn: "containerize"
400452

453+
# CNI dual stack overlay E2E tests
401454
- template: singletenancy/dualstack-overlay/dualstackoverlay-e2e-job-template.yaml
402455
parameters:
403456
name: "dualstackoverlay_e2e"
@@ -406,18 +459,22 @@ stages:
406459
clusterType: dualstack-overlay-byocni-up
407460
clusterName: "dualstackoverlaye2e"
408461
vmSize: Standard_B2ms
409-
dependsOn: 'containerize'
462+
dependsOn: "containerize"
410463
testDropgz: true
411464

412465
- stage: delete
413466
displayName: Delete Clusters
414467
condition: always()
415468
dependsOn:
416469
- setup
417-
- "azure_cni_overlay_e2e"
470+
- "azure_overlay_e2e"
471+
- "azure_overlay_cni_e2e"
418472
- "aks_swift_e2e"
473+
- "aks_swift_cni_e2e"
419474
- "cilium_e2e"
420-
- "cilium_overlay_cilium_e2e"
475+
- "cilium_podsubnet_cni_e2e"
476+
- "cilium_overlay_e2e"
477+
- "cilium_overlay_cni_e2e"
421478
- "aks_ubuntu_22_linux_e2e"
422479
- "aks_windows_22_e2e"
423480
- "dualstackoverlay_e2e"
@@ -432,25 +489,37 @@ stages:
432489
matrix:
433490
cilium_e2e:
434491
name: cilium_e2e
435-
clusterName: 'ciliume2e'
436-
cilium_overlay_cilium_e2e:
437-
name: cilium_overlay_cilium_e2e
438-
clusterName: 'overlaye2e'
439-
azure_cni_overlay_e2e:
440-
name: azure_cni_overlay_e2e
441-
clusterName: 'azurecnioverlaye2e'
492+
clusterName: "ciliume2e"
493+
cilium_overlay_e2e:
494+
name: cilium_overlay_e2e
495+
clusterName: "ciliumoverlaye2e"
496+
azure_overlay_e2e:
497+
name: azure_overlay_e2e
498+
clusterName: "azureoverlaye2e"
442499
aks_swift_e2e:
443500
name: aks_swift_e2e
444-
clusterName: 'swifte2e'
501+
clusterName: "swifte2e"
502+
azure_overlay_cni_e2e:
503+
name: azure_overlay_cni_e2e
504+
clusterName: "azureoverlaycnie2e"
505+
cilium_podsubnet_cni_e2e:
506+
name: cilium_podsubnet_cni_e2e
507+
clusterName: "ciliumpodsubnetcnie2e"
508+
cilium_overlay_cni_e2e:
509+
name: cilium_overlay_cni_e2e
510+
clusterName: "ciliumoverlaycnie2e"
511+
aks_swift_cni_e2e:
512+
name: aks_swift_cni_e2e
513+
clusterName: "swiftcnie2e"
445514
aks_ubuntu_22_linux_e2e:
446515
name: aks_ubuntu_22_linux_e2e
447-
clusterName: 'ubuntu22e2e'
516+
clusterName: "ubuntu22e2e"
448517
aks_windows_22_e2e:
449518
name: aks_windows_22_e2e
450-
clusterName: 'win22e2e'
519+
clusterName: "win22e2e"
451520
dualstackoverlay_e2e:
452521
name: dualstackoverlay_e2e
453-
clusterName: 'dualstackoverlaye2e'
522+
clusterName: "dualstackoverlaye2e"
454523
steps:
455524
- template: templates/delete-cluster.yaml
456525
parameters:
@@ -481,13 +550,18 @@ stages:
481550
- stage: cleanup
482551
displayName: Cleanup
483552
dependsOn:
484-
- "azure_cni_overlay_e2e"
553+
- "azure_overlay_e2e"
554+
- "azure_overlay_cni_e2e"
485555
- "aks_swift_e2e"
556+
- "aks_swift_cni_e2e"
486557
- "cilium_e2e"
487-
- "cilium_overlay_cilium_e2e"
558+
- "cilium_podsubnet_cni_e2e"
559+
- "cilium_overlay_e2e"
560+
- "cilium_overlay_cni_e2e"
488561
- "aks_ubuntu_22_linux_e2e"
489562
- "aks_windows_22_e2e"
490563
- "dualstackoverlay_e2e"
564+
491565
jobs:
492566
- job: delete_remote_artifacts
493567
displayName: Delete remote artifacts

.pipelines/singletenancy/aks-swift/e2e-step-template.yaml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,17 @@ steps:
4444
name: "installKubetest"
4545
displayName: "Set up Conformance Tests"
4646

47+
- ${{ if eq( parameters['testDropgz'], true) }}:
48+
- script: |
49+
echo "##vso[task.setvariable variable=dropgzVersion]$(make cni-dropgz-test-version)"
50+
name: dropgzTestVersion
51+
displayName: "Dropgz Test Version"
52+
- ${{ else }}:
53+
- script: |
54+
echo "##vso[task.setvariable variable=dropgzVersion]$(make cni-dropgz-version)"
55+
name: dropgzVersion
56+
displayName: "Dropgz Version"
57+
4758
- script: |
4859
ls -lah
4960
pwd
@@ -52,7 +63,7 @@ steps:
5263
sudo install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl
5364
kubectl cluster-info
5465
kubectl get po -owide -A
55-
sudo -E env "PATH=$PATH" make test-integration CNS_VERSION=$(make cns-version) CNI_DROPGZ_VERSION=$(make cni-dropgz-version) INSTALL_CNS=true INSTALL_AZURE_VNET=true TEST_DROPGZ=${{ parameters.testDropgz }}
66+
sudo -E env "PATH=$PATH" make test-integration CNS_VERSION=$(make cns-version) CNI_DROPGZ_VERSION=$(dropgzVersion) INSTALL_CNS=true INSTALL_AZURE_VNET=true TEST_DROPGZ=${{ parameters.testDropgz }}
5667
retryCountOnTaskFailure: 3
5768
name: "aksswifte2e"
5869
displayName: "Run AKS Swift E2E"

.pipelines/singletenancy/azure-cni-overlay/azure-cni-overlay-e2e-step-template.yaml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,17 @@ steps:
5555
name: "installKubetest"
5656
displayName: "Set up Conformance Tests"
5757
58+
- ${{ if eq( parameters['testDropgz'], true) }}:
59+
- script: |
60+
echo "##vso[task.setvariable variable=dropgzVersion]$(make cni-dropgz-test-version)"
61+
name: dropgzTestVersion
62+
displayName: "Dropgz Test Version"
63+
- ${{ else }}:
64+
- script: |
65+
echo "##vso[task.setvariable variable=dropgzVersion]$(make cni-dropgz-version)"
66+
name: dropgzVersion
67+
displayName: "Dropgz Version"
68+
5869
- script: |
5970
echo "Start Integration Tests on Overlay Cluster"
6071
echo "deploy ip-masq-agent for overlay"
@@ -65,7 +76,7 @@ steps:
6576
cd ../../../..
6677
kubectl get po -owide -A
6778
CNS=$(make cns-version) DROPGZ=$(make cni-dropgz-version)
68-
sudo -E env "PATH=$PATH" make test-integration CNS_VERSION=${CNS} CNI_DROPGZ_VERSION=${DROPGZ} INSTALL_CNS=true INSTALL_AZURE_CNI_OVERLAY=true TEST_DROPGZ=${{ parameters.testDropgz }}
79+
sudo -E env "PATH=$PATH" make test-integration CNS_VERSION=${CNS} CNI_DROPGZ_VERSION=$(dropgzVersion) INSTALL_CNS=true INSTALL_AZURE_CNI_OVERLAY=true TEST_DROPGZ=${{ parameters.testDropgz }}
6980
retryCountOnTaskFailure: 3
7081
name: "integrationTest"
7182
displayName: "Run CNS Integration Tests on AKS Overlay"

.pipelines/singletenancy/cilium-overlay/cilium-overlay-e2e-step-template.yaml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,17 @@ steps:
8080
name: "installKubetest"
8181
displayName: "Set up Conformance Tests"
8282
83+
- ${{ if eq( parameters['testDropgz'], true) }}:
84+
- script: |
85+
echo "##vso[task.setvariable variable=dropgzVersion]$(make cni-dropgz-test-version)"
86+
name: dropgzTestVersion
87+
displayName: "Dropgz Test Version"
88+
- ${{ else }}:
89+
- script: |
90+
echo "##vso[task.setvariable variable=dropgzVersion]$(make cni-dropgz-version)"
91+
name: dropgzVersion
92+
displayName: "Dropgz Version"
93+
8394
- script: |
8495
echo "Start Azilium E2E Tests on Overlay Cluster"
8596
echo "deploy ip-masq-agent for overlay"
@@ -94,7 +105,7 @@ steps:
94105
then
95106
CNS=$(CNS_VERSION) DROPGZ=$(DROP_GZ_VERSION) && echo "Running nightly"
96107
else
97-
CNS=$(make cns-version) DROPGZ=$(make cni-dropgz-version)
108+
CNS=$(make cns-version) DROPGZ=$(dropgzVersion)
98109
fi
99110
sudo -E env "PATH=$PATH" make test-integration CNS_VERSION=${CNS} CNI_DROPGZ_VERSION=${DROPGZ} INSTALL_CNS=true INSTALL_OVERLAY=true TEST_DROPGZ=${{ parameters.testDropgz }}
100111
retryCountOnTaskFailure: 3
@@ -221,4 +232,3 @@ steps:
221232
name: "Cleanupartifactdir"
222233
displayName: "Cleanup artifact dir"
223234
condition: always()
224-

.pipelines/singletenancy/cilium/cilium-e2e-step-template.yaml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,10 +77,21 @@ steps:
7777
name: "installKubetest"
7878
displayName: "Set up Conformance Tests"
7979
80+
- ${{ if eq( parameters['testDropgz'], true) }}:
81+
- script: |
82+
echo "##vso[task.setvariable variable=dropgzVersion]$(make cni-dropgz-test-version)"
83+
name: dropgzTestVersion
84+
displayName: "Dropgz Test Version"
85+
- ${{ else }}:
86+
- script: |
87+
echo "##vso[task.setvariable variable=dropgzVersion]$(make cni-dropgz-version)"
88+
name: dropgzVersion
89+
displayName: "Dropgz Version"
90+
8091
- script: |
8192
echo "Start Azilium E2E Tests"
8293
kubectl get po -owide -A
83-
sudo -E env "PATH=$PATH" make test-integration CNS_VERSION=$(make cns-version) CNI_DROPGZ_VERSION=$(make cni-dropgz-version) INSTALL_CNS=true INSTALL_AZILIUM=true TEST_DROPGZ=${{ parameters.testDropgz }}
94+
sudo -E env "PATH=$PATH" make test-integration CNS_VERSION=$(make cns-version) CNI_DROPGZ_VERSION=$(dropgzVersion) INSTALL_CNS=true INSTALL_AZILIUM=true TEST_DROPGZ=${{ parameters.testDropgz }}
8495
retryCountOnTaskFailure: 3
8596
name: "aziliumTest"
8697
displayName: "Run Azilium E2E"

0 commit comments

Comments
 (0)