Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: combine go tests such that any test failure will report a failure for the entire task #3156

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading