Skip to content

Commit

Permalink
ci: Only call log-template on fail for PR
Browse files Browse the repository at this point in the history
  • Loading branch information
jpayne3506 committed Oct 3, 2023
1 parent 020f2e2 commit bffc2b6
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 96 deletions.
6 changes: 0 additions & 6 deletions .pipelines/singletenancy/aks/e2e-step-template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,3 @@ steps:
kubectl delete ns load-test
displayName: "Validate State"
retryCountOnTaskFailure: 3
- template: ../../templates/log-template.yaml
parameters:
clusterName: ${{ parameters.clusterName }}
logType: restartNodes
os: ${{ parameters.os }}
cni: cniv1
Original file line number Diff line number Diff line change
Expand Up @@ -127,13 +127,6 @@ steps:
displayName: "Validate Node Restart"
retryCountOnTaskFailure: 3

- template: ../../templates/log-template.yaml
parameters:
clusterName: ${{ parameters.clusterName }}
logType: restartNode
os: linux
cni: cniv2

- script: |
echo "validate pod IP assignment before CNS restart"
kubectl get pod -owide -A
Expand All @@ -149,13 +142,6 @@ steps:
displayName: "Restart CNS and validate pod state"
retryCountOnTaskFailure: 3
- template: ../../templates/log-template.yaml
parameters:
clusterName: ${{ parameters.clusterName }}
logType: restartCNS
os: linux
cni: cniv2

- task: PublishBuildArtifacts@1
inputs:
artifactName: test-output
Expand Down Expand Up @@ -217,24 +203,10 @@ steps:
displayName: "Windows v4Overlay ControlPlane Scale Tests"
retryCountOnTaskFailure: 3
- template: ../../templates/log-template.yaml
parameters:
clusterName: ${{ parameters.clusterName }}
logType: windowsTests
os: windows
cni: cniv2

- script: |
echo "IPv4 Overlay DataPath Test"
cd test/integration/datapath
sudo -E env "PATH=$PATH" go test -count=1 datapath_windows_test.go -timeout 3m -tags connection -restartKubeproxy true -run ^TestDatapathWin$
name: "WindowsV4OverlayDatapathTests"
displayName: "Windows v4Overlay Datapath Tests"
retryCountOnTaskFailure: 3
- template: ../../templates/log-template.yaml
parameters:
clusterName: ${{ parameters.clusterName }}
logType: windowsDatapath
os: windows
cni: cniv2
Original file line number Diff line number Diff line change
Expand Up @@ -178,13 +178,6 @@ steps:
name: "validatePods"
displayName: "Validate Pods"
- template: ../../templates/log-template.yaml
parameters:
clusterName: ${{ parameters.clusterName }}
logType: ciliumConnectivity
os: linux
cni: cilium

- script: |
if [ "$CILIUM_VERSION_TAG" = "cilium-nightly-pipeline" ]; then
kubectl get pod -owide -n cilium-test
Expand Down Expand Up @@ -225,13 +218,6 @@ steps:
name: "restartCNS"
displayName: "Restart CNS and validate pods"
- template: ../../templates/log-template.yaml
parameters:
clusterName: ${{ parameters.clusterName }}
logType: restartCNS
os: linux
cni: cilium

- script: |
echo "Run wireserver and metadata connectivity Tests"
bash test/network/wireserver_metadata_test.sh
Expand Down
14 changes: 0 additions & 14 deletions .pipelines/singletenancy/cilium/cilium-e2e-step-template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -157,13 +157,6 @@ steps:
name: "validatePods"
displayName: "Validate Pods"
- template: ../../templates/log-template.yaml
parameters:
clusterName: ${{ parameters.clusterName }}
logType: ciliumConnectivity
os: linux
cni: cilium

- script: |
echo "validate pod IP assignment before CNS restart"
kubectl get pod -owide -A
Expand All @@ -177,13 +170,6 @@ steps:
name: "restartCNS"
displayName: "Restart CNS and validate pods"
- template: ../../templates/log-template.yaml
parameters:
clusterName: ${{ parameters.clusterName }}
logType: restartCNS
os: linux
cni: cilium

- script: |
echo "Run wireserver and metadata connectivity Tests"
bash test/network/wireserver_metadata_test.sh
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,13 +81,6 @@ steps:
name: "DualStack_Overlay_Linux_Tests"
displayName: "DualStack Overlay Linux Tests"
- template: ../../templates/log-template.yaml
parameters:
clusterName: ${{ parameters.clusterName }}
logType: linuxTests
os: linux
cni: cniv2

- task: AzureCLI@1
inputs:
azureSubscription: $(BUILD_VALIDATIONS_SERVICE_CONNECTION)
Expand Down Expand Up @@ -120,13 +113,6 @@ steps:
displayName: "Validate Node Restart"
retryCountOnTaskFailure: 3

- template: ../../templates/log-template.yaml
parameters:
clusterName: ${{ parameters.clusterName }}
logType: restartNode
os: linux
cni: cniv2

- script: |
echo "validate pod IP assignment before CNS restart"
kubectl get pod -owide -A
Expand All @@ -142,13 +128,6 @@ steps:
displayName: "Restart CNS and Validate Pod State"
retryCountOnTaskFailure: 3
- template: ../../templates/log-template.yaml
parameters:
clusterName: ${{ parameters.clusterName }}
logType: restartCNS
os: linux
cni: cniv2

- task: AzureCLI@2
inputs:
azureSubscription: $(BUILD_VALIDATIONS_SERVICE_CONNECTION)
Expand Down Expand Up @@ -179,13 +158,6 @@ steps:
displayName: "Windows DualStack Overlay ControlPlane Scale Tests"
retryCountOnTaskFailure: 3
- template: ../../templates/log-template.yaml
parameters:
clusterName: ${{ parameters.clusterName }}
logType: controlPlane
os: windows
cni: cniv2

- script: |
echo "DualStack Overlay DataPath Test"
cd test/integration/datapath
Expand All @@ -194,9 +166,3 @@ steps:
displayName: "Windows DaulStack Overlay Datapath Tests"
retryCountOnTaskFailure: 3
- template: ../../templates/log-template.yaml
parameters:
clusterName: ${{ parameters.clusterName }}
logType: Datapath
os: windows
cni: cniv2

0 comments on commit bffc2b6

Please sign in to comment.