ci: Add exit code capture for PR pipeline (#3125)
* ci: Add exit code capture for PR pipeline * ci: ignore errors from cilium status
This commit is contained in:
Родитель
6a53d5d49b
Коммит
1b5d3a1076
|
@ -68,6 +68,7 @@ steps:
|
|||
workingDirectory: $(ACN_DIR)
|
||||
addSpnToEnvironment: true
|
||||
inlineScript: |
|
||||
set -e
|
||||
cd test/integration/load
|
||||
|
||||
# Scale Cluster Up/Down to confirm functioning CNS
|
||||
|
|
|
@ -71,6 +71,7 @@ steps:
|
|||
scriptType: "bash"
|
||||
addSpnToEnvironment: true
|
||||
inlineScript: |
|
||||
set -e
|
||||
cd test/integration/load
|
||||
|
||||
# Scale Cluster Up/Down to confirm functioning CNS
|
||||
|
|
|
@ -70,6 +70,7 @@ steps:
|
|||
displayName: "Restart Nodes"
|
||||
|
||||
- script: |
|
||||
set -e
|
||||
kubectl get pods -A -o wide
|
||||
|
||||
echo "Deploying test pods"
|
||||
|
|
|
@ -64,6 +64,7 @@ steps:
|
|||
done
|
||||
displayName: "Restart Nodes"
|
||||
- script: |
|
||||
set -e
|
||||
kubectl get pods -A -o wide
|
||||
echo "Deploying test pods"
|
||||
cd test/integration/load
|
||||
|
|
|
@ -64,6 +64,7 @@ steps:
|
|||
scriptType: "bash"
|
||||
addSpnToEnvironment: true
|
||||
inlineScript: |
|
||||
set -e
|
||||
cd test/integration/load
|
||||
|
||||
# Scale Cluster Up/Down to confirm functioning CNS
|
||||
|
@ -129,6 +130,7 @@ steps:
|
|||
scriptType: "bash"
|
||||
addSpnToEnvironment: true
|
||||
inlineScript: |
|
||||
set -e
|
||||
cd test/integration/load
|
||||
|
||||
# Scale Cluster Up/Down to confirm functioning CNS
|
||||
|
|
|
@ -68,6 +68,7 @@ steps:
|
|||
workingDirectory: $(ACN_DIR)
|
||||
addSpnToEnvironment: true
|
||||
inlineScript: |
|
||||
set -e
|
||||
cd test/integration/load
|
||||
|
||||
# Scale Cluster Up/Down to confirm functioning CNS
|
||||
|
@ -138,6 +139,7 @@ steps:
|
|||
workingDirectory: $(ACN_DIR)
|
||||
addSpnToEnvironment: true
|
||||
inlineScript: |
|
||||
set -e
|
||||
cd test/integration/load
|
||||
|
||||
# Scale Cluster Up/Down to confirm functioning CNS
|
||||
|
|
|
@ -92,6 +92,7 @@ steps:
|
|||
scriptType: "bash"
|
||||
addSpnToEnvironment: true
|
||||
inlineScript: |
|
||||
set -e
|
||||
cd test/integration/load
|
||||
|
||||
# Scale Cluster Up/Down to confirm functioning CNS
|
||||
|
@ -106,6 +107,7 @@ steps:
|
|||
retryCountOnTaskFailure: 3
|
||||
|
||||
- script: |
|
||||
set -e
|
||||
echo "Run Cilium Connectivity Tests"
|
||||
cilium status
|
||||
cilium connectivity test --connect-timeout 4s --request-timeout 30s --test '!pod-to-pod-encryption,!node-to-node-encryption,!no-unexpected-packet-drops' --force-deploy
|
||||
|
|
|
@ -96,6 +96,7 @@ steps:
|
|||
workingDirectory: $(ACN_DIR)
|
||||
addSpnToEnvironment: true
|
||||
inlineScript: |
|
||||
set -e
|
||||
cd test/integration/load
|
||||
|
||||
# Scale Cluster Up/Down to confirm functioning CNS
|
||||
|
@ -110,6 +111,7 @@ steps:
|
|||
retryCountOnTaskFailure: 3
|
||||
|
||||
- script: |
|
||||
set -e
|
||||
echo "Run Cilium Connectivity Tests"
|
||||
cilium status
|
||||
cilium connectivity test --connect-timeout 4s --request-timeout 30s --test '!pod-to-pod-encryption,!node-to-node-encryption,!no-unexpected-packet-drops' --force-deploy
|
||||
|
|
|
@ -53,7 +53,7 @@ steps:
|
|||
inlineScript: |
|
||||
set -e
|
||||
make -C ./hack/aks set-kubeconf AZCLI=az CLUSTER=${{ parameters.clusterName }}
|
||||
ls -lah
|
||||
ls -lah
|
||||
pwd
|
||||
kubectl cluster-info
|
||||
kubectl get po -owide -A
|
||||
|
@ -81,5 +81,8 @@ steps:
|
|||
retryCountOnTaskFailure: 3
|
||||
name: "nodeSubnetE2ETests"
|
||||
displayName: "Run NodeSubnet E2E"
|
||||
|
||||
|
||||
- template: ../../templates/cilium-tests.yaml
|
||||
parameters:
|
||||
clusterName: ${{ parameters.clusterName }}
|
||||
scaleup: ${{ parameters.scaleup }}
|
||||
|
|
|
@ -96,6 +96,7 @@ steps:
|
|||
scriptType: "bash"
|
||||
addSpnToEnvironment: true
|
||||
inlineScript: |
|
||||
set -e
|
||||
cd test/integration/load
|
||||
|
||||
# Scale Cluster Up/Down to confirm functioning CNS
|
||||
|
@ -110,6 +111,7 @@ steps:
|
|||
retryCountOnTaskFailure: 3
|
||||
|
||||
- script: |
|
||||
set -e
|
||||
echo "Run Cilium Connectivity Tests"
|
||||
cilium status
|
||||
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:
|
|||
displayName: "Run Hubble Connectivity Tests"
|
||||
|
||||
- script: |
|
||||
set -e
|
||||
echo "validate pod IP assignment and check systemd-networkd restart"
|
||||
kubectl get pod -owide -A
|
||||
# Deleting echo-external-node deployment until cilium version matches TODO. https://github.com/cilium/cilium-cli/issues/67 is addressing the change.
|
||||
# Saves 17 minutes
|
||||
|
||||
kubectl delete deploy -n $(ciliumNamespace) echo-external-node
|
||||
if [ "$CILIUM_VERSION_TAG" = "cilium-nightly-pipeline" ]; then
|
||||
echo "Check cilium identities in $(ciliumNamespace) namepsace during nightly run"
|
||||
echo "expect the identities to be deleted when the namespace is deleted"
|
||||
kubectl get ciliumidentity | grep cilium-test
|
||||
fi
|
||||
make test-validate-state
|
||||
echo "delete cilium connectivity test resources and re-validate state"
|
||||
echo "delete cilium connectivity test resources and re-validate state" # TODO Delete this and the next 4 lines if connectivity no longer has bug
|
||||
kubectl delete ns $(ciliumNamespace)
|
||||
kubectl get pod -owide -A
|
||||
make test-validate-state
|
||||
|
|
|
@ -93,6 +93,7 @@ steps:
|
|||
workingDirectory: $(ACN_DIR)
|
||||
addSpnToEnvironment: true
|
||||
inlineScript: |
|
||||
set -e
|
||||
cd test/integration/load
|
||||
|
||||
# Scale Cluster Up/Down to confirm functioning CNS
|
||||
|
@ -107,6 +108,7 @@ steps:
|
|||
retryCountOnTaskFailure: 3
|
||||
|
||||
- script: |
|
||||
set -e
|
||||
echo "Run Cilium Connectivity Tests"
|
||||
cilium status
|
||||
cilium connectivity test --connect-timeout 4s --request-timeout 30s --test '!pod-to-pod-encryption,!node-to-node-encryption' --force-deploy
|
||||
|
@ -134,19 +136,17 @@ steps:
|
|||
displayName: "Run Hubble Connectivity Tests"
|
||||
|
||||
- script: |
|
||||
set -e
|
||||
echo "validate pod IP assignment and check systemd-networkd restart"
|
||||
kubectl get pod -owide -A
|
||||
# Deleting echo-external-node deployment until cilium version matches TODO. https://github.com/cilium/cilium-cli/issues/67 is addressing the change.
|
||||
# Saves 17 minutes
|
||||
|
||||
kubectl delete deploy -n $(ciliumNamespace) echo-external-node
|
||||
if [ "$CILIUM_VERSION_TAG" = "cilium-nightly-pipeline" ]; then
|
||||
echo "Check cilium identities in $(ciliumNamespace) namepsace during nightly run"
|
||||
echo "expect the identities to be deleted when the namespace is deleted"
|
||||
kubectl get ciliumidentity | grep cilium-test
|
||||
fi
|
||||
make test-validate-state
|
||||
echo "delete cilium connectivity test resources and re-validate state"
|
||||
echo "delete cilium connectivity test resources and re-validate state" # TODO Delete this and the next 4 lines if connectivity no longer has bug
|
||||
kubectl delete ns $(ciliumNamespace)
|
||||
kubectl get pod -owide -A
|
||||
make test-validate-state
|
||||
|
|
|
@ -118,6 +118,7 @@ steps:
|
|||
scriptType: "bash"
|
||||
addSpnToEnvironment: true
|
||||
inlineScript: |
|
||||
set -e
|
||||
cd test/integration/load
|
||||
|
||||
# Scale Cluster Up/Down to confirm functioning CNS
|
||||
|
@ -132,6 +133,7 @@ steps:
|
|||
retryCountOnTaskFailure: 3
|
||||
|
||||
- script: |
|
||||
set -e
|
||||
echo "Run Cilium Connectivity Tests"
|
||||
cilium status
|
||||
if [ "$CILIUM_VERSION_TAG" = "cilium-nightly-pipeline" ]
|
||||
|
@ -162,11 +164,9 @@ steps:
|
|||
displayName: "Run Hubble Connectivity Tests"
|
||||
|
||||
- script: |
|
||||
set -e
|
||||
echo "validate pod IP assignment and check systemd-networkd restart"
|
||||
kubectl get pod -owide -A
|
||||
# Deleting echo-external-node deployment until cilium version matches TODO. https://github.com/cilium/cilium-cli/issues/67 is addressing the change.
|
||||
# Saves 17 minutes
|
||||
kubectl delete deploy -n $(ciliumNamespace) echo-external-node
|
||||
if [ "$CILIUM_VERSION_TAG" = "cilium-nightly-pipeline" ]; then
|
||||
echo "Check cilium identities in $(ciliumNamespace) namepsace during nightly run"
|
||||
echo "expect the identities to be deleted when the namespace is deleted"
|
||||
|
@ -207,7 +207,8 @@ steps:
|
|||
name: "CiliumIdentities"
|
||||
displayName: "Verify Cilium Identities Deletion"
|
||||
|
||||
- script: |
|
||||
- script: | # TODO REMOVE THIS STEP, make test-load covers this
|
||||
set -e
|
||||
echo "validate pod IP assignment before CNS restart"
|
||||
kubectl get pod -owide -A
|
||||
make test-validate-state
|
||||
|
|
|
@ -115,6 +115,7 @@ steps:
|
|||
workingDirectory: $(ACN_DIR)
|
||||
addSpnToEnvironment: true
|
||||
inlineScript: |
|
||||
set -e
|
||||
cd test/integration/load
|
||||
|
||||
# Scale Cluster Up/Down to confirm functioning CNS
|
||||
|
@ -129,6 +130,7 @@ steps:
|
|||
retryCountOnTaskFailure: 3
|
||||
|
||||
- script: |
|
||||
set -e
|
||||
echo "Run Cilium Connectivity Tests"
|
||||
cilium status
|
||||
if [ "$CILIUM_VERSION_TAG" = "cilium-nightly-pipeline" ]
|
||||
|
@ -160,18 +162,16 @@ steps:
|
|||
displayName: "Run Hubble Connectivity Tests"
|
||||
|
||||
- script: |
|
||||
set -e
|
||||
echo "validate pod IP assignment and check systemd-networkd restart"
|
||||
kubectl get pod -owide -A
|
||||
# Deleting echo-external-node deployment until cilium version matches TODO. https://github.com/cilium/cilium-cli/issues/67 is addressing the change.
|
||||
# Saves 17 minutes
|
||||
kubectl delete deploy -n $(ciliumNamespace) echo-external-node
|
||||
if [ "$CILIUM_VERSION_TAG" = "cilium-nightly-pipeline" ]; then
|
||||
echo "Check cilium identities in $(ciliumNamespace) namepsace during nightly run"
|
||||
echo "expect the identities to be deleted when the namespace is deleted"
|
||||
kubectl get ciliumidentity | grep cilium-test
|
||||
fi
|
||||
make test-validate-state
|
||||
echo "delete cilium connectivity test resources and re-validate state"
|
||||
echo "delete cilium connectivity test resources and re-validate state" # TODO Delete this and the next 4 lines if connectivity no longer has bug
|
||||
kubectl delete ns $(ciliumNamespace)
|
||||
kubectl get pod -owide -A
|
||||
make test-validate-state
|
||||
|
@ -206,7 +206,8 @@ steps:
|
|||
name: "CiliumIdentities"
|
||||
displayName: "Verify Cilium Identities Deletion"
|
||||
|
||||
- script: |
|
||||
- script: | # TODO REMOVE THIS STEP, make test-load covers this
|
||||
set -e
|
||||
echo "validate pod IP assignment before CNS restart"
|
||||
kubectl get pod -owide -A
|
||||
make test-validate-state
|
||||
|
|
|
@ -64,4 +64,8 @@ steps:
|
|||
name: "aziliumTest"
|
||||
displayName: "Run Azilium E2E"
|
||||
|
||||
- template: ../../templates/cilium-tests.yaml
|
||||
- template: ../../templates/cilium-tests.yaml
|
||||
parameters:
|
||||
clusterName: ${{ parameters.clusterName }}
|
||||
scaleup: ${{ parameters.scaleup }}
|
||||
|
||||
|
|
|
@ -93,6 +93,7 @@ steps:
|
|||
workingDirectory: $(ACN_DIR)
|
||||
addSpnToEnvironment: true
|
||||
inlineScript: |
|
||||
set -e
|
||||
cd test/integration/load
|
||||
|
||||
# Scale Cluster Up/Down to confirm functioning CNS
|
||||
|
@ -107,6 +108,7 @@ steps:
|
|||
retryCountOnTaskFailure: 3
|
||||
|
||||
- script: |
|
||||
set -e
|
||||
echo "Run Cilium Connectivity Tests"
|
||||
cilium status
|
||||
cilium connectivity test --connect-timeout 4s --request-timeout 30s --test '!pod-to-pod-encryption,!node-to-node-encryption' --force-deploy
|
||||
|
|
|
@ -77,6 +77,7 @@ steps:
|
|||
scriptType: "bash"
|
||||
addSpnToEnvironment: true
|
||||
inlineScript: |
|
||||
set -e
|
||||
cd test/integration/load
|
||||
|
||||
# Scale Cluster Up/Down to confirm functioning CNS
|
||||
|
@ -134,6 +135,7 @@ steps:
|
|||
scriptType: "bash"
|
||||
addSpnToEnvironment: true
|
||||
inlineScript: |
|
||||
set -e
|
||||
cd test/integration/load
|
||||
|
||||
# Scale Cluster Up/Down to confirm functioning CNS
|
||||
|
|
|
@ -82,6 +82,7 @@ steps:
|
|||
workingDirectory: $(ACN_DIR)
|
||||
addSpnToEnvironment: true
|
||||
inlineScript: |
|
||||
set -e
|
||||
cd test/integration/load
|
||||
|
||||
# Scale Cluster Up/Down to confirm functioning CNS
|
||||
|
@ -143,6 +144,7 @@ steps:
|
|||
workingDirectory: $(ACN_DIR)
|
||||
addSpnToEnvironment: true
|
||||
inlineScript: |
|
||||
set -e
|
||||
cd test/integration/load
|
||||
|
||||
# Scale Cluster Up/Down to confirm functioning CNS
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
steps:
|
||||
- script: |
|
||||
set -e
|
||||
echo "install cilium CLI"
|
||||
if [[ ${CILIUM_VERSION_TAG#v} =~ ^1.1[1-3].[0-9]{1,2}|1.1[1-3].[0-9]{1,2}-[0-9]{1,6} ]]; then
|
||||
echo "Cilium Agent Version ${BASH_REMATCH[0]}"
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
steps:
|
||||
- script: |
|
||||
set -e
|
||||
echo "install cilium CLI"
|
||||
if [[ ${CILIUM_VERSION_TAG#v} =~ ^1.1[1-3].[0-9]{1,2}|1.1[1-3].[0-9]{1,2}-[0-9]{1,6} ]]; then
|
||||
echo "Cilium Agent Version ${BASH_REMATCH[0]}"
|
||||
|
@ -17,6 +18,9 @@ steps:
|
|||
sha256sum --check cilium-linux-${CLI_ARCH}.tar.gz.sha256sum
|
||||
sudo tar xzvfC cilium-linux-${CLI_ARCH}.tar.gz /usr/local/bin
|
||||
rm cilium-linux-${CLI_ARCH}.tar.gz{,.sha256sum}
|
||||
|
||||
# We can ignore failures from cilium status as cilium agent will not be in ready status until CNS is installed.
|
||||
set +e
|
||||
cilium status
|
||||
cilium version
|
||||
name: "installCiliumCLI"
|
||||
|
|
|
@ -31,6 +31,7 @@ steps:
|
|||
scriptType: "bash"
|
||||
addSpnToEnvironment: true
|
||||
inlineScript: |
|
||||
set -e
|
||||
cd test/integration/load
|
||||
|
||||
# Scale Cluster Up/Down to confirm functioning CNS
|
||||
|
@ -45,6 +46,7 @@ steps:
|
|||
retryCountOnTaskFailure: 3
|
||||
|
||||
- script: |
|
||||
set -e
|
||||
echo "Run Cilium Connectivity Tests"
|
||||
cilium status
|
||||
cilium connectivity test --connect-timeout 4s --request-timeout 30s --test '!pod-to-pod-encryption,!node-to-node-encryption' --force-deploy
|
||||
|
@ -55,13 +57,11 @@ steps:
|
|||
displayName: "Run Cilium Connectivity Tests"
|
||||
|
||||
- script: |
|
||||
set -e
|
||||
echo "validate pod IP assignment and check systemd-networkd restart"
|
||||
kubectl get pod -owide -A
|
||||
# Deleting echo-external-node deployment until cilium version matches TODO. https://github.com/cilium/cilium-cli/issues/67 is addressing the change.
|
||||
# Saves 17 minutes
|
||||
kubectl delete deploy -n $(ciliumNamespace) echo-external-node
|
||||
make test-validate-state
|
||||
echo "delete cilium connectivity test resources and re-validate state"
|
||||
echo "delete cilium connectivity test resources and re-validate state" # TODO Delete this and the next 4 lines if connectivity no longer has bug
|
||||
kubectl delete ns $(ciliumNamespace)
|
||||
kubectl get pod -owide -A
|
||||
make test-validate-state
|
||||
|
@ -83,4 +83,4 @@ steps:
|
|||
kubectl -n kube-system patch daemonset azure-cns --type json -p='[{"op": "remove", "path": "/spec/template/spec/nodeSelector/non-existing"}]'
|
||||
fi
|
||||
name: "testAsyncDelete"
|
||||
displayName: "Verify Async Delete when CNS is down"
|
||||
displayName: "Verify Async Delete when CNS is down"
|
||||
|
|
Загрузка…
Ссылка в новой задаче