-
Notifications
You must be signed in to change notification settings - Fork 19
Environment for integration tests #270
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
Merged
Merged
Changes from all commits
Commits
Show all changes
36 commits
Select commit
Hold shift + click to select a range
04faa09
divided the tests into groups
stanislav-shchetinin e7c81f9
basic_example integration test
stanislav-shchetinin bf8d49e
fix test: now -> 0
stanislav-shchetinin 8cf44ff
CMakePresets divided the tests
stanislav-shchetinin bc64874
remove launch basic example
stanislav-shchetinin 24565ee
return examples in pr_check.yaml
stanislav-shchetinin a996b48
changed database
stanislav-shchetinin f11127d
changed database
stanislav-shchetinin cb18119
divided into different jobs
stanislav-shchetinin 27bd629
fix tests.yaml
stanislav-shchetinin ddb26b3
fix tests.yaml
stanislav-shchetinin d625fb0
fix tests
stanislav-shchetinin bb7b604
groups in tests
stanislav-shchetinin 53e37bd
fix spaces in yaml
stanislav-shchetinin 02ecbf3
added examples & remoed macOS
stanislav-shchetinin 60258e0
fix examples
stanislav-shchetinin 148cded
database & endpoint in env
stanislav-shchetinin 5916be7
added labels for tests & devided test groups by labels
stanislav-shchetinin ea3bac8
added docker-compose.yaml from rust-sdk
stanislav-shchetinin 2608352
added env in tests release
stanislav-shchetinin 99dde83
added lib
stanislav-shchetinin c09ba03
json for SelectSimple
stanislav-shchetinin f648733
comparing json in a test
stanislav-shchetinin 354ba24
fix after review
stanislav-shchetinin f71353f
pulling a vector into a string
stanislav-shchetinin 0b71705
remove extra spaces
stanislav-shchetinin 99108f7
pathsplit -> std::filesystem::path & ui64 -> uint64_t
stanislav-shchetinin 0056b4a
space
stanislav-shchetinin 66fa321
order by
stanislav-shchetinin 1547afc
ut -> unit
stanislav-shchetinin 3108bec
added retry
stanislav-shchetinin 98bc556
fix after review
stanislav-shchetinin b8336da
fix env_ut
stanislav-shchetinin 900d86a
fix after review
stanislav-shchetinin b225192
fix after review
stanislav-shchetinin fd62573
fix examples
stanislav-shchetinin File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Gazizonoki marked this conversation as resolved.
Show resolved
Hide resolved
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,112 @@ | ||
name: Tests | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
branches: | ||
- main | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.event.pull_request.number }} | ||
cancel-in-progress: true | ||
jobs: | ||
unit: | ||
concurrency: | ||
group: unit-${{ github.ref }}-${{ matrix.os }} | ||
cancel-in-progress: true | ||
strategy: | ||
fail-fast: false | ||
env: | ||
OS: ubuntu-22.04 | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- name: Checkout PR | ||
uses: actions/checkout@v3 | ||
if: github.event.pull_request.head.sha != '' | ||
with: | ||
submodules: true | ||
ref: ${{ github.event.pull_request.head.sha }} | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
if: github.event.pull_request.head.sha == '' | ||
with: | ||
submodules: true | ||
- name: Install dependencies | ||
uses: ./.github/actions/prepare_vm | ||
- name: Prepare ccache timestamp | ||
id: ccache_cache_timestamp | ||
shell: cmake -P {0} | ||
run: | | ||
string(TIMESTAMP current_date "%Y-%m-%d-%H;%M;%S" UTC) | ||
message("::set-output name=timestamp::${current_date}") | ||
- name: Restore cache files | ||
uses: actions/cache/restore@v4 | ||
with: | ||
path: ~/.ccache | ||
key: ubuntu-22.04-ccache-${{steps.ccache_cache_timestamp.outputs.timestamp}} | ||
restore-keys: | | ||
ubuntu-22.04-ccache- | ||
- name: Build | ||
uses: ./.github/actions/build | ||
- name: Test | ||
shell: bash | ||
run: | | ||
ctest -j32 --preset release-unit | ||
|
||
integration: | ||
concurrency: | ||
group: integration-${{ github.ref }}-${{ matrix.ydb-version }} | ||
cancel-in-progress: true | ||
runs-on: ubuntu-22.04 | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
ydb-version: [23.3, 24.1, trunk] | ||
services: | ||
ydb: | ||
image: ydbplatform/local-ydb:${{ matrix.ydb-version }} | ||
ports: | ||
- 2135:2135 | ||
- 2136:2136 | ||
- 8765:8765 | ||
volumes: | ||
- /tmp/ydb_certs:/ydb_certs | ||
env: | ||
YDB_LOCAL_SURVIVE_RESTART: true | ||
YDB_USE_IN_MEMORY_PDISKS: true | ||
YDB_TABLE_ENABLE_PREPARED_DDL: true | ||
options: '-h localhost' | ||
steps: | ||
- name: Checkout PR | ||
uses: actions/checkout@v3 | ||
if: github.event.pull_request.head.sha != '' | ||
with: | ||
submodules: true | ||
ref: ${{ github.event.pull_request.head.sha }} | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
if: github.event.pull_request.head.sha == '' | ||
with: | ||
submodules: true | ||
- name: Install dependencies | ||
uses: ./.github/actions/prepare_vm | ||
- name: Prepare ccache timestamp | ||
id: ccache_cache_timestamp | ||
shell: cmake -P {0} | ||
run: | | ||
string(TIMESTAMP current_date "%Y-%m-%d-%H;%M;%S" UTC) | ||
message("::set-output name=timestamp::${current_date}") | ||
- name: Restore cache files | ||
uses: actions/cache/restore@v4 | ||
with: | ||
path: ~/.ccache | ||
key: ubuntu-22.04-ccache-${{steps.ccache_cache_timestamp.outputs.timestamp}} | ||
restore-keys: | | ||
ubuntu-22.04-ccache- | ||
- name: Build | ||
uses: ./.github/actions/build | ||
- name: Test | ||
shell: bash | ||
run: | | ||
ctest -j32 --preset release-integration |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
stanislav-shchetinin marked this conversation as resolved.
Show resolved
Hide resolved
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
add_subdirectory(basic_example_it) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
add_ydb_test(NAME basic-example_it | ||
SOURCES | ||
main.cpp | ||
basic_example_data.cpp | ||
basic_example.cpp | ||
basic_example.h | ||
LINK_LIBRARIES | ||
yutil | ||
YDB-CPP-SDK::Table | ||
GTest::gtest_main | ||
public-lib-json_value | ||
LABELS | ||
integration | ||
) |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.