Skip to content

Commit 5540162

Browse files
committed
ci: disabled the parallel pool testing on windows and darwin
Parallel test with -race exhausts CI runners on windows and darwin. The path it is testing doesn't need multi-platform tests, so only linux will validate. Signed-off-by: Frederic BIDON <fredbi@yahoo.com>
1 parent 65f13f3 commit 5540162

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

‎pools_test.go‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//go:build !windows && !darwin
2+
13
// SPDX-FileCopyrightText: Copyright 2015-2025 go-swagger maintainers
24
// SPDX-License-Identifier: Apache-2.0
35

@@ -14,6 +16,10 @@ import (
1416
)
1517

1618
func Test_ParallelPool(t *testing.T) {
19+
// Hitting more stringent memory & threads constraints on windows, when running -race, so we disable this on
20+
// that target OS. Typically, a CI runner breaks with "ThreadSanitizer failed to allocate ..."
21+
// Also -race in this context times out on macos. We need our validation on our platform only.
22+
1723
fixture1 := filepath.Join("fixtures", "bugs", "1429", "swagger.yaml")
1824
fixture2 := filepath.Join("fixtures", "bugs", "2866", "2866.yaml")
1925
fixture3 := filepath.Join("fixtures", "bugs", "43", "fixture-43.yaml")

0 commit comments

Comments
 (0)
⌂ 换网址