Skip to content

Commit

Permalink
ci: combine go tests such that any test failure will report a failure…
Browse files Browse the repository at this point in the history
… for the entire task (#3156)

* add set ex to ci

* add race and timeout args

* remove race check
  • Loading branch information
QxBytes authored Jan 22, 2025
1 parent b43c68b commit 598d1a2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 14 deletions.
9 changes: 3 additions & 6 deletions .pipelines/templates/run-unit-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,10 @@ stages:
pool:
name: "$(BUILD_POOL_NAME_DEFAULT_WINDOWS_ALT)"
steps:
# Only run one go test per script
- script: |
cd npm/
go test ./...
cd ../cni/
go test ./...
cd ../platform/
go test ./...
cd azure-container-networking/
go test -timeout 30m ./npm/... ./cni/... ./platform/...
retryCountOnTaskFailure: 3
name: "TestWindows"
displayName: "Run Windows Tests"
10 changes: 2 additions & 8 deletions .pipelines/templates/unit-tests.stages.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,18 +48,12 @@ stages:
type: windows
name: "$(BUILD_POOL_NAME_DEFAULT_WINDOWS_ALT)"
steps:
# Test changes under review
# Test changes under review; only run one go test per script
- checkout: ACNReviewChanges
clean: true

- script: |
cd azure-container-networking/
cd npm/
go test ./...
cd ../cni/
go test ./...
cd ../platform/
go test ./...
go test -timeout 30m ./npm/... ./cni/... ./platform/...
retryCountOnTaskFailure: 3
name: "TestWindows"
displayName: "Run Windows Tests"
Expand Down

0 comments on commit 598d1a2

Please sign in to comment.