Skip to content

Commit e84030e

Browse files
fix tests
1 parent c7f5b3a commit e84030e

File tree

1 file changed

+74
-96
lines changed

1 file changed

+74
-96
lines changed

.github/workflows/tests.yaml

Lines changed: 74 additions & 96 deletions
Original file line numberDiff line numberDiff line change
@@ -12,70 +12,62 @@ concurrency:
1212
cancel-in-progress: true
1313
jobs:
1414
unit:
15-
concurrency:
16-
group: unit-${{ github.ref }}-${{ matrix.os }}-${{ matrix.go-version }}
17-
cancel-in-progress: true
18-
strategy:
19-
fail-fast: false
20-
matrix:
21-
os: [ubuntu, macOS]
22-
env:
23-
OS: ${{ matrix.os }}-latest
24-
runs-on: ${{ matrix.os }}-latest
15+
name: PR check for YDB C++ SDK
16+
runs-on: ubuntu-22.04
17+
services:
18+
ydb:
19+
image: ydbplatform/local-ydb:latest
20+
ports:
21+
- 2135:2135
22+
- 2136:2136
23+
- 8765:8765
24+
volumes:
25+
- /tmp/ydb_certs:/ydb_certs
26+
env:
27+
YDB_LOCAL_SURVIVE_RESTART: true
28+
YDB_USE_IN_MEMORY_PDISKS: true
29+
YDB_TABLE_ENABLE_PREPARED_DDL: true
30+
options: '-h localhost'
2531
steps:
26-
- name: Checkout PR
32+
- name: Checkout PR
2733
uses: actions/checkout@v3
2834
if: github.event.pull_request.head.sha != ''
2935
with:
3036
submodules: true
3137
ref: ${{ github.event.pull_request.head.sha }}
32-
- name: Checkout
33-
uses: actions/checkout@v3
34-
if: github.event.pull_request.head.sha == ''
35-
with:
36-
submodules: true
37-
- name: Install dependencies
38-
uses: ./.github/actions/prepare_vm
39-
- name: Prepare ccache timestamp
40-
id: ccache_cache_timestamp
41-
shell: cmake -P {0}
42-
run: |
43-
string(TIMESTAMP current_date "%Y-%m-%d-%H;%M;%S" UTC)
44-
message("::set-output name=timestamp::${current_date}")
45-
- name: Restore cache files
46-
uses: actions/cache/restore@v4
47-
with:
48-
path: ~/.ccache
49-
key: ubuntu-22.04-ccache-${{steps.ccache_cache_timestamp.outputs.timestamp}}
50-
restore-keys: |
51-
ubuntu-22.04-ccache-
52-
- name: Build
53-
uses: ./.github/actions/build
54-
- name: Test
55-
shell: bash
56-
- name: Run tests
57-
run: ctest -j32 --preset release-unit
58-
- name: Upload unit-tests coverage report to Codecov
59-
uses: codecov/codecov-action@v4
60-
with:
61-
file: ./unit.txt
62-
flags: unit,${{ matrix.os }},go-${{ matrix.go-version }}
63-
name: unit
64-
env:
65-
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
38+
- name: Checkout
39+
uses: actions/checkout@v3
40+
if: github.event.pull_request.head.sha == ''
41+
with:
42+
submodules: true
43+
- name: Install dependencies
44+
uses: ./.github/actions/prepare_vm
45+
- name: Prepare ccache timestamp
46+
id: ccache_cache_timestamp
47+
shell: cmake -P {0}
48+
run: |
49+
string(TIMESTAMP current_date "%Y-%m-%d-%H;%M;%S" UTC)
50+
message("::set-output name=timestamp::${current_date}")
51+
- name: Restore cache files
52+
uses: actions/cache/restore@v4
53+
with:
54+
path: ~/.ccache
55+
key: ubuntu-22.04-ccache-${{steps.ccache_cache_timestamp.outputs.timestamp}}
56+
restore-keys: |
57+
ubuntu-22.04-ccache-
58+
- name: Build
59+
uses: ./.github/actions/build
60+
- name: Test
61+
shell: bash
62+
run: |
63+
ctest -j32 --preset release-unit
6664
67-
integration:
68-
concurrency:
69-
group: integration-${{ github.ref }}-${{ matrix.os }}-${{ matrix.go-version }}-${{ matrix.ydb-version }}
70-
cancel-in-progress: true
71-
runs-on: ubuntu-latest
72-
strategy:
73-
fail-fast: false
74-
matrix:
75-
ydb-version: [23.3, 24.1]
65+
integrtion:
66+
name: PR check for YDB C++ SDK
67+
runs-on: ubuntu-22.04
7668
services:
7769
ydb:
78-
image: ydbplatform/local-ydb:${{ matrix.ydb-version }}
70+
image: ydbplatform/local-ydb:latest
7971
ports:
8072
- 2135:2135
8173
- 2136:2136
@@ -87,50 +79,36 @@ jobs:
8779
YDB_USE_IN_MEMORY_PDISKS: true
8880
YDB_TABLE_ENABLE_PREPARED_DDL: true
8981
options: '-h localhost'
90-
env:
91-
OS: ubuntu-latest
92-
YDB_VERSION: ${{ matrix.ydb-version }}
93-
YDB_CONNECTION_STRING: grpc://localhost:2136/local
94-
YDB_CONNECTION_STRING_SECURE: grpcs://localhost:2135/local
95-
YDB_SSL_ROOT_CERTIFICATES_FILE: /tmp/ydb_certs/ca.pem
96-
YDB_SESSIONS_SHUTDOWN_URLS: http://localhost:8765/actors/kqp_proxy?force_shutdown=all
97-
HIDE_APPLICATION_OUTPUT: 1
9882
steps:
99-
- name: Checkout PR
83+
- name: Checkout PR
10084
uses: actions/checkout@v3
10185
if: github.event.pull_request.head.sha != ''
10286
with:
10387
submodules: true
10488
ref: ${{ github.event.pull_request.head.sha }}
105-
- name: Checkout
106-
uses: actions/checkout@v3
107-
if: github.event.pull_request.head.sha == ''
108-
with:
109-
submodules: true
110-
- name: Install dependencies
111-
uses: ./.github/actions/prepare_vm
112-
- name: Prepare ccache timestamp
113-
id: ccache_cache_timestamp
114-
shell: cmake -P {0}
115-
run: |
116-
string(TIMESTAMP current_date "%Y-%m-%d-%H;%M;%S" UTC)
117-
message("::set-output name=timestamp::${current_date}")
118-
- name: Restore cache files
119-
uses: actions/cache/restore@v4
120-
with:
121-
path: ~/.ccache
122-
key: ubuntu-22.04-ccache-${{steps.ccache_cache_timestamp.outputs.timestamp}}
123-
restore-keys: |
124-
ubuntu-22.04-ccache-
125-
- name: Build
126-
uses: ./.github/actions/build
127-
- name: Run tests
128-
run: ctest -j32 --preset release-integration
129-
- name: Upload integration-tests coverage report to Codecov
130-
uses: codecov/codecov-action@v4
131-
with:
132-
file: ./integration.txt
133-
flags: integration,${{ matrix.os }},go-${{ matrix.go-version }},ydb-${{ matrix.ydb-version }}
134-
name: integration
135-
env:
136-
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
89+
- name: Checkout
90+
uses: actions/checkout@v3
91+
if: github.event.pull_request.head.sha == ''
92+
with:
93+
submodules: true
94+
- name: Install dependencies
95+
uses: ./.github/actions/prepare_vm
96+
- name: Prepare ccache timestamp
97+
id: ccache_cache_timestamp
98+
shell: cmake -P {0}
99+
run: |
100+
string(TIMESTAMP current_date "%Y-%m-%d-%H;%M;%S" UTC)
101+
message("::set-output name=timestamp::${current_date}")
102+
- name: Restore cache files
103+
uses: actions/cache/restore@v4
104+
with:
105+
path: ~/.ccache
106+
key: ubuntu-22.04-ccache-${{steps.ccache_cache_timestamp.outputs.timestamp}}
107+
restore-keys: |
108+
ubuntu-22.04-ccache-
109+
- name: Build
110+
uses: ./.github/actions/build
111+
- name: Test
112+
shell: bash
113+
run: |
114+
ctest -j32 --preset release-integration

0 commit comments

Comments
 (0)