Skip to content

Commit 1b5d3a1

Browse files
authored
ci: Add exit code capture for PR pipeline (#3125)
* ci: Add exit code capture for PR pipeline * ci: ignore errors from cilium status
1 parent 6a53d5d commit 1b5d3a1

20 files changed

+57
-25
lines changed

.pipelines/singletenancy/aks-swift/aks-swift-e2e.steps.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ steps:
6868
workingDirectory: $(ACN_DIR)
6969
addSpnToEnvironment: true
7070
inlineScript: |
71+
set -e
7172
cd test/integration/load
7273
7374
# Scale Cluster Up/Down to confirm functioning CNS

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ steps:
7171
scriptType: "bash"
7272
addSpnToEnvironment: true
7373
inlineScript: |
74+
set -e
7475
cd test/integration/load
7576
7677
# Scale Cluster Up/Down to confirm functioning CNS

.pipelines/singletenancy/aks/aks-e2e.steps.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ steps:
7070
displayName: "Restart Nodes"
7171

7272
- script: |
73+
set -e
7374
kubectl get pods -A -o wide
7475
7576
echo "Deploying test pods"

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ steps:
6464
done
6565
displayName: "Restart Nodes"
6666
- script: |
67+
set -e
6768
kubectl get pods -A -o wide
6869
echo "Deploying test pods"
6970
cd test/integration/load

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ steps:
6464
scriptType: "bash"
6565
addSpnToEnvironment: true
6666
inlineScript: |
67+
set -e
6768
cd test/integration/load
6869
6970
# Scale Cluster Up/Down to confirm functioning CNS
@@ -129,6 +130,7 @@ steps:
129130
scriptType: "bash"
130131
addSpnToEnvironment: true
131132
inlineScript: |
133+
set -e
132134
cd test/integration/load
133135
134136
# Scale Cluster Up/Down to confirm functioning CNS

.pipelines/singletenancy/azure-cni-overlay/azure-cni-overlay-e2e.steps.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ steps:
6868
workingDirectory: $(ACN_DIR)
6969
addSpnToEnvironment: true
7070
inlineScript: |
71+
set -e
7172
cd test/integration/load
7273
7374
# Scale Cluster Up/Down to confirm functioning CNS
@@ -138,6 +139,7 @@ steps:
138139
workingDirectory: $(ACN_DIR)
139140
addSpnToEnvironment: true
140141
inlineScript: |
142+
set -e
141143
cd test/integration/load
142144
143145
# Scale Cluster Up/Down to confirm functioning CNS

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ steps:
9292
scriptType: "bash"
9393
addSpnToEnvironment: true
9494
inlineScript: |
95+
set -e
9596
cd test/integration/load
9697
9798
# Scale Cluster Up/Down to confirm functioning CNS
@@ -106,6 +107,7 @@ steps:
106107
retryCountOnTaskFailure: 3
107108

108109
- script: |
110+
set -e
109111
echo "Run Cilium Connectivity Tests"
110112
cilium status
111113
cilium connectivity test --connect-timeout 4s --request-timeout 30s --test '!pod-to-pod-encryption,!node-to-node-encryption,!no-unexpected-packet-drops' --force-deploy

.pipelines/singletenancy/cilium-dualstack-overlay/cilium-dualstackoverlay-e2e.steps.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ steps:
9696
workingDirectory: $(ACN_DIR)
9797
addSpnToEnvironment: true
9898
inlineScript: |
99+
set -e
99100
cd test/integration/load
100101
101102
# Scale Cluster Up/Down to confirm functioning CNS
@@ -110,6 +111,7 @@ steps:
110111
retryCountOnTaskFailure: 3
111112

112113
- script: |
114+
set -e
113115
echo "Run Cilium Connectivity Tests"
114116
cilium status
115117
cilium connectivity test --connect-timeout 4s --request-timeout 30s --test '!pod-to-pod-encryption,!node-to-node-encryption,!no-unexpected-packet-drops' --force-deploy

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

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ steps:
5353
inlineScript: |
5454
set -e
5555
make -C ./hack/aks set-kubeconf AZCLI=az CLUSTER=${{ parameters.clusterName }}
56-
ls -lah
56+
ls -lah
5757
pwd
5858
kubectl cluster-info
5959
kubectl get po -owide -A
@@ -81,5 +81,8 @@ steps:
8181
retryCountOnTaskFailure: 3
8282
name: "nodeSubnetE2ETests"
8383
displayName: "Run NodeSubnet E2E"
84-
84+
8585
- template: ../../templates/cilium-tests.yaml
86+
parameters:
87+
clusterName: ${{ parameters.clusterName }}
88+
scaleup: ${{ parameters.scaleup }}

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ steps:
9696
scriptType: "bash"
9797
addSpnToEnvironment: true
9898
inlineScript: |
99+
set -e
99100
cd test/integration/load
100101
101102
# Scale Cluster Up/Down to confirm functioning CNS
@@ -110,6 +111,7 @@ steps:
110111
retryCountOnTaskFailure: 3
111112

112113
- script: |
114+
set -e
113115
echo "Run Cilium Connectivity Tests"
114116
cilium status
115117
cilium connectivity test --connect-timeout 4s --request-timeout 30s --test '!pod-to-pod-encryption,!node-to-node-encryption' --force-deploy
@@ -135,19 +137,17 @@ steps:
135137
displayName: "Run Hubble Connectivity Tests"
136138
137139
- script: |
140+
set -e
138141
echo "validate pod IP assignment and check systemd-networkd restart"
139142
kubectl get pod -owide -A
140-
# Deleting echo-external-node deployment until cilium version matches TODO. https://github.com/cilium/cilium-cli/issues/67 is addressing the change.
141-
# Saves 17 minutes
142143
143-
kubectl delete deploy -n $(ciliumNamespace) echo-external-node
144144
if [ "$CILIUM_VERSION_TAG" = "cilium-nightly-pipeline" ]; then
145145
echo "Check cilium identities in $(ciliumNamespace) namepsace during nightly run"
146146
echo "expect the identities to be deleted when the namespace is deleted"
147147
kubectl get ciliumidentity | grep cilium-test
148148
fi
149149
make test-validate-state
150-
echo "delete cilium connectivity test resources and re-validate state"
150+
echo "delete cilium connectivity test resources and re-validate state" # TODO Delete this and the next 4 lines if connectivity no longer has bug
151151
kubectl delete ns $(ciliumNamespace)
152152
kubectl get pod -owide -A
153153
make test-validate-state

0 commit comments

Comments
 (0)