Skip to content

Commit b6842fa

Browse files
committed
exclude experiment tests from unit and integration scopes
1 parent d770a4d commit b6842fa

File tree

1 file changed

+54
-4
lines changed

1 file changed

+54
-4
lines changed

.github/workflows/tests.yml

Lines changed: 54 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
go-version: ${{ matrix.go-version }}
3030
cache: true
3131
- name: Test
32-
run: if ( "$GO" -eq "1.22" ); then export GOEXPERIMENT=rangefunc; fi; go test -race -coverprofile unit.txt -covermode atomic -v ./...
32+
run: go test -race -coverprofile unit.txt -covermode atomic -v ./...
3333
- name: Upload coverage report to Codecov
3434
uses: codecov/codecov-action@v4
3535
with:
@@ -78,10 +78,60 @@ jobs:
7878
go-version: ${{ matrix.go-version }}
7979
cache: true
8080
- name: Integration test
81-
run: if ( "$GO" -eq "1.22" ); then export GOEXPERIMENT=rangefunc; fi; go test -race -tags integration -coverpkg=./... -coverprofile integration-secure.txt -covermode atomic ./tests/integration
81+
run: go test -race -tags integration -coverpkg=./... -coverprofile integration.txt -covermode atomic ./tests/integration
8282
- name: Upload Test secure connection coverage report to Codecov
8383
uses: codecov/codecov-action@v4
8484
with:
85-
file: ./integration-secure.txt
85+
file: ./integration.txt
8686
flags: integration,${{ matrix.os }},go-${{ matrix.go-version }},ydb-${{ matrix.ydb-version }}
87-
name: integration-secure
87+
name: integration
88+
experiment:
89+
concurrency:
90+
group: integration-${{ github.ref }}-${{ matrix.os }}-${{ matrix.go-version }}-${{ matrix.ydb-version }}
91+
cancel-in-progress: true
92+
runs-on: ubuntu-latest
93+
strategy:
94+
fail-fast: false
95+
matrix:
96+
go-version: [1.22.x]
97+
ydb-version: [24.1]
98+
services:
99+
ydb:
100+
image: ydbplatform/local-ydb:${{ matrix.ydb-version }}
101+
ports:
102+
- 2135:2135
103+
- 2136:2136
104+
- 8765:8765
105+
volumes:
106+
- /tmp/ydb_certs:/ydb_certs
107+
env:
108+
YDB_LOCAL_SURVIVE_RESTART: true
109+
YDB_USE_IN_MEMORY_PDISKS: true
110+
YDB_TABLE_ENABLE_PREPARED_DDL: true
111+
options: '-h localhost'
112+
env:
113+
OS: ubuntu-latest
114+
GO: ${{ matrix.go-version }}
115+
YDB_VERSION: ${{ matrix.ydb-version }}
116+
YDB_CONNECTION_STRING: grpc://localhost:2136/local
117+
YDB_CONNECTION_STRING_SECURE: grpcs://localhost:2135/local
118+
YDB_SSL_ROOT_CERTIFICATES_FILE: /tmp/ydb_certs/ca.pem
119+
YDB_SESSIONS_SHUTDOWN_URLS: http://localhost:8765/actors/kqp_proxy?force_shutdown=all
120+
HIDE_APPLICATION_OUTPUT: 1
121+
GOEXPERIMENT: rangefunc
122+
steps:
123+
- name: Checkout code
124+
uses: actions/checkout@v4
125+
- name: Install Go
126+
uses: actions/setup-go@v5
127+
with:
128+
go-version: ${{ matrix.go-version }}
129+
cache: true
130+
- name: Integration test
131+
run: go test -race -tags integration -coverpkg=./... -coverprofile experiment.txt -covermode atomic ./...
132+
- name: Upload Test secure connection coverage report to Codecov
133+
uses: codecov/codecov-action@v4
134+
with:
135+
file: ./integration-secure.txt
136+
flags: experiment,${{ matrix.os }},go-${{ matrix.go-version }},ydb-${{ matrix.ydb-version }}
137+
name: experiment

0 commit comments

Comments
 (0)