ci: serialize test packages to reduce SQLite initialization contention
This commit is contained in:
1 parent
bfed3d20f5
commit
16e572397b
1 file changed
+4
-1
+4
-1
@@ -11,7 +11,10 @@ RUN go mod download
|
|||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
FROM source AS test
|
FROM source AS test
|
||||||
RUN go test ./...
|
# Test packages create independent SQLite stores. Serialize packages to avoid
|
||||||
|
# concurrent server/store initialization exhausting the shared runner's I/O.
|
||||||
|
# Keep production database deadlines and the complete test suite unchanged.
|
||||||
|
RUN go test -p 1 ./...
|
||||||
|
|
||||||
FROM source AS runtime
|
FROM source AS runtime
|
||||||
RUN go build -o /pageswiki ./cmd/pageswiki
|
RUN go build -o /pageswiki ./cmd/pageswiki
|
||||||
|
|||||||
Reference in new issue
Block a user