Skip to content

Commit f40a523

Browse files
committed
EE -> CE: squash-merge of accumulated changes from ee
1 parent 419296e commit f40a523

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

64 files changed

+2054
-319
lines changed

.github/workflows/check_on_push.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@ jobs:
99
if: |
1010
github.event_name == 'push' ||
1111
github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name != github.repository
12-
runs-on: ubuntu-20.04
12+
runs-on: ubuntu-22.04
1313
steps:
1414
- uses: actions/checkout@master
1515

1616
- name: Setup Tarantool CE
17-
uses: tarantool/setup-tarantool@v2
17+
uses: tarantool/setup-tarantool@v3
1818
with:
19-
tarantool-version: '2.10'
19+
tarantool-version: '2.11'
2020

2121
- name: Setup tt
2222
run: |

.github/workflows/push_rockspec.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,15 @@ jobs:
1414
version-check:
1515
# We need this job to run only on push with tag.
1616
if: ${{ github.event_name == 'push' && startsWith(github.ref, 'refs/tags/') }}
17-
runs-on: ubuntu-20.04
17+
runs-on: ubuntu-22.04
1818
steps:
1919
- name: Check module version
2020
uses: tarantool/actions/check-module-version@master
2121
with:
2222
module-name: 'crud'
2323

2424
push-scm-rockspec:
25-
runs-on: ubuntu-20.04
25+
runs-on: ubuntu-22.04
2626
if: github.ref == 'refs/heads/master'
2727
steps:
2828
- uses: actions/checkout@master
@@ -33,7 +33,7 @@ jobs:
3333
files: ${{ env.ROCK_NAME }}-scm-1.rockspec
3434

3535
push-tagged-rockspec:
36-
runs-on: ubuntu-20.04
36+
runs-on: ubuntu-22.04
3737
if: startsWith(github.ref, 'refs/tags')
3838
needs: version-check
3939
steps:

.github/workflows/reusable_test.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ on:
1111

1212
jobs:
1313
run_tests:
14-
runs-on: ubuntu-20.04
14+
runs-on: ubuntu-22.04
1515

1616
steps:
1717
- name: Clone the crud module
@@ -39,8 +39,6 @@ jobs:
3939
4040
- name: Install requirements
4141
run: ./deps.sh
42-
env:
43-
VSHARD_VERSION: "0.1.26"
4442

4543
# This server starts and listen on 8084 port that is used for tests
4644
- name: Stop Mono server

.github/workflows/test_on_push.yaml

Lines changed: 29 additions & 147 deletions
Original file line numberDiff line numberDiff line change
@@ -10,51 +10,27 @@ jobs:
1010
github.event_name == 'push' ||
1111
github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name != github.repository
1212
strategy:
13+
fail-fast: false
1314
matrix:
14-
# We need 1.10.6 here to check that module works with
15-
# old Tarantool versions that don't have "tuple-keydef"/"tuple-merger" support.
16-
# We test old metrics with Tarantool 2.10 because since Tarantool 2.11.1
17-
# it uses its own metrics package.
18-
# We test old metrics with Cartridge 2.7.9 because since 2.8.0 it
19-
# requires metrics 1.0.0.
20-
tarantool-version: ["1.10.6", "1.10", "2.8", "2.10", "2.11"]
21-
metrics-version: [""]
22-
cartridge-version: ["2.8.0"]
23-
external-tuple-merger-version: [""]
24-
external-tuple-keydef-version: [""]
2515
include:
26-
- tarantool-version: "1.10"
27-
metrics-version: "1.0.0"
28-
cartridge-version: "2.8.0"
29-
- tarantool-version: "2.7"
30-
cartridge-version: "2.8.0"
3116
- tarantool-version: "2.10"
32-
metrics-version: "0.10.0"
33-
cartridge-version: "2.7.9"
3417
- tarantool-version: "2.11"
3518
coveralls: true
36-
metrics-version: "1.0.0"
37-
cartridge-version: "2.8.0"
38-
- tarantool-version: "2.11"
39-
metrics-version: "1.0.0"
40-
vshard-version: "0.1.25"
4119
- tarantool-version: "2.11"
42-
external-merger-version: "0.0.5"
43-
external-keydef-version: "0.0.4"
44-
- tarantool-version: "3.0.0"
45-
vshard-version: "0.1.25"
20+
external-tuple-merger-version: "0.0.5"
21+
external-tuple-keydef-version: "0.0.4"
22+
- tarantool-version: "3.0"
23+
- tarantool-version: "3.1"
24+
- tarantool-version: "3.2"
25+
- tarantool-version: "3.3"
4626
- tarantool-version: "master"
47-
vshard-version: "0.1.26"
48-
fail-fast: false
49-
# Can't install older versions on 22.04,
50-
# see https://github.com/tarantool/setup-tarantool/issues/36
51-
runs-on: ubuntu-20.04
27+
runs-on: ubuntu-22.04
5228
steps:
53-
- uses: actions/checkout@master
29+
- uses: actions/checkout@v4
5430

5531
- name: Setup Tarantool CE (1.x, 2.x)
5632
if: ${{ startsWith( matrix.tarantool-version, '1.' ) || startsWith( matrix.tarantool-version, '2.' ) }}
57-
uses: tarantool/setup-tarantool@v2
33+
uses: tarantool/setup-tarantool@v3
5834
with:
5935
tarantool-version: ${{ matrix.tarantool-version }}
6036

@@ -67,7 +43,7 @@ jobs:
6743
- name: Cache Tarantool 3.x
6844
if: ${{ startsWith( matrix.tarantool-version, '3.' ) }}
6945
id: cache-v3
70-
uses: actions/cache@v3
46+
uses: actions/cache@v4
7147
with:
7248
path: "${GITHUB_WORKSPACE}/bin"
7349
key: cache-${{ matrix.tarantool-version }}
@@ -88,7 +64,7 @@ jobs:
8864
- name: Cache Tarantool master
8965
if: matrix.tarantool-version == 'master'
9066
id: cache-latest
91-
uses: actions/cache@v3
67+
uses: actions/cache@v4
9268
with:
9369
path: "${GITHUB_WORKSPACE}/bin"
9470
key: cache-latest-${{ env.LATEST_COMMIT }}
@@ -103,18 +79,10 @@ jobs:
10379
if: ${{ startsWith( matrix.tarantool-version, '3.' ) || matrix.tarantool-version == 'master' }}
10480
run: echo "${GITHUB_WORKSPACE}/bin" >> $GITHUB_PATH
10581

106-
- name: Fix luarocks in Tarantool CE 1.10.6
107-
if: matrix.tarantool-version == '1.10.6'
108-
run: |
109-
sudo patch -p1 /usr/share/tarantool/luarocks/manif.lua luarocks.patch
110-
11182
- name: Install requirements for community
11283
run: |
11384
tarantool --version
11485
./deps.sh
115-
env:
116-
CARTRIDGE_VERSION: ${{ matrix.cartridge-version }}
117-
VSHARD_VERSION: ${{ matrix.vshard-version }}
11886
11987
- name: Install metrics
12088
if: matrix.metrics-version != ''
@@ -144,116 +112,30 @@ jobs:
144112
run: make -C build coveralls
145113
if: ${{ matrix.coveralls }}
146114

147-
run-perf-tests-ce:
148-
if: |
149-
github.event_name == 'push' ||
150-
github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name != github.repository
151-
strategy:
152-
matrix:
153-
tarantool-version: ["1.10", "2.11"]
154-
metrics-version: ["1.0.0"]
155-
cartridge-version: ["2.8.0"]
156-
include:
157-
- tarantool-version: "3.0.0"
158-
vshard-version: "0.1.25"
159-
fail-fast: false
160-
runs-on: ubuntu-20.04
161-
steps:
162-
- uses: actions/checkout@master
163-
164-
- name: Setup Tarantool CE (1.x, 2.x)
165-
if: ${{ startsWith( matrix.tarantool-version, '1.' ) || startsWith( matrix.tarantool-version, '2.' ) }}
166-
uses: tarantool/setup-tarantool@v2
167-
with:
168-
tarantool-version: ${{ matrix.tarantool-version }}
169-
170-
- name: Setup tt
171-
run: |
172-
curl -L https://tarantool.io/release/2/installer.sh | sudo bash
173-
sudo apt install -y tt
174-
tt version
175-
176-
- name: Cache Tarantool 3.x
177-
if: ${{ startsWith( matrix.tarantool-version, '3.' ) }}
178-
id: cache-v3
179-
uses: actions/cache@v3
180-
with:
181-
path: "${GITHUB_WORKSPACE}/bin"
182-
key: cache-${{ matrix.tarantool-version }}
183-
184-
- name: Setup Tarantool CE (3.x)
185-
if: ${{ startsWith( matrix.tarantool-version, '3.' ) && steps.cache-latest.outputs.cache-hit != 'true' }}
186-
run: |
187-
tt init
188-
tt install tarantool ${{ matrix.tarantool-version }}
189-
190-
- name: Get Tarantool master latest commit
191-
if: matrix.tarantool-version == 'master'
192-
run: |
193-
commit_hash=$(git ls-remote https://github.com/tarantool/tarantool.git --branch master | head -c 8)
194-
echo "LATEST_COMMIT=${commit_hash}" >> $GITHUB_ENV
195-
shell: bash
196-
197-
- name: Cache Tarantool master
198-
if: matrix.tarantool-version == 'master'
199-
id: cache-latest
200-
uses: actions/cache@v3
201-
with:
202-
path: "${GITHUB_WORKSPACE}/bin"
203-
key: cache-latest-${{ env.LATEST_COMMIT }}
204-
205-
- name: Setup Tarantool CE (master)
206-
if: matrix.tarantool-version == 'master' && steps.cache-latest.outputs.cache-hit != 'true'
207-
run: |
208-
tt init
209-
tt install tarantool master
210-
211-
- name: Add tt Tarantool to PATH
212-
if: ${{ startsWith( matrix.tarantool-version, '3.' ) || matrix.tarantool-version == 'master' }}
213-
run: echo "${GITHUB_WORKSPACE}/bin" >> $GITHUB_PATH
214-
215-
- name: Install requirements for community
216-
run: |
217-
tarantool --version
218-
./deps.sh
219-
env:
220-
CARTRIDGE_VERSION: ${{ matrix.cartridge-version }}
221-
VSHARD_VERSION: ${{ matrix.vshard-version }}
222-
223-
- name: Install metrics
224-
if: matrix.metrics-version != ''
225-
run: tt rocks install metrics ${{ matrix.metrics-version }}
226-
227-
# This server starts and listen on 8084 port that is used for tests
228-
- name: Stop Mono server
229-
run: sudo kill -9 $(sudo lsof -t -i tcp:8084) || true
230-
231-
- run: cmake -S . -B build
232-
233-
- name: Run performance tests
234-
run: make -C build performance
235-
236115
run-tests-ee:
237116
if: github.event_name == 'push'
238117
strategy:
118+
fail-fast: false
239119
matrix:
240-
tarantool-version:
241-
- folder: "1.10"
242-
bundle: "tarantool-enterprise-sdk-1.10.15-0-r609"
243-
- folder: "2.11"
244-
bundle: "tarantool-enterprise-sdk-nogc64-2.11.2-0-r609.linux.x86_64"
245-
metrics-version: ["", "1.0.0"]
246-
cartridge-version: ["2.8.0"]
247120
include:
248121
- tarantool-version:
249-
folder: "3.0"
250-
bundle: "tarantool-enterprise-sdk-gc64-3.0.0-0-gf58f7d82a-r23.linux.x86_64"
251-
vshard-version: "0.1.25"
252-
253-
fail-fast: false
254-
runs-on: ubuntu-20.04
122+
folder: "2.10"
123+
bundle: "tarantool-enterprise-sdk-gc64-2.10.8-0-r691.linux.x86_64"
124+
- tarantool-version:
125+
folder: "2.11"
126+
bundle: "tarantool-enterprise-sdk-gc64-2.11.7-0-r691.linux.x86_64"
127+
- tarantool-version:
128+
folder: "3.2"
129+
bundle: "tarantool-enterprise-sdk-gc64-3.2.0-0-r40.linux.x86_64"
130+
- tarantool-version:
131+
folder: "3.3"
132+
bundle: "tarantool-enterprise-sdk-gc64-3.3.2-0-r62.linux.x86_64"
133+
- tarantool-version:
134+
folder: "3.4"
135+
bundle: "tarantool-enterprise-sdk-gc64-3.4.0-0-r62.linux.x86_64"
136+
runs-on: ubuntu-22.04
255137
steps:
256-
- uses: actions/checkout@master
138+
- uses: actions/checkout@v4
257139

258140
- name: Install requirements for enterprise
259141
run: |

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ luacov.stats.out
1111
build/*.cmake
1212
build/Makefile
1313
.idea
14+
sdk
15+
sdk-2
16+
sdk-3
1417

1518
# Vim Swap files.
1619
.*.s[a-w][a-z]

.luacheckrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
redefined = false
22
globals = {'box', 'utf8', 'checkers', '_TARANTOOL'}
33
include_files = {'**/*.lua', '*.luacheckrc', '*.rockspec'}
4-
exclude_files = {'**/*.rocks/', 'tmp/', 'tarantool-enterprise/'}
4+
exclude_files = {'**/*.rocks/', 'tmp/', 'sdk-*'}
55
max_line_length = 120
66
max_comment_line_length = 150

.luacov

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,12 @@
1+
local ci_node_index = os.getenv("CI_NODE_INDEX") or ""
2+
3+
statsfile = "luacov.stats" .. ci_node_index .. ".out"
14
exclude = {
2-
'/test/',
3-
'/.rocks/',
5+
"test"
6+
}
7+
include = {
8+
"crud%/.+$",
9+
"crud.lua",
10+
"roles%/.+$",
11+
"cartridge%/.+$",
412
}

CHANGELOG.md

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,24 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
77

88
## [Unreleased]
99

10-
### Fixed
10+
### Changed
11+
* bumped: metrics version in rockspec
12+
* bumped: cartridge version in rockspec
13+
* Role-based model support has been implemented in CRUD (https://jira.vk.team/browse/TNTP-2177)
14+
15+
### Added
16+
* Validation of `bucket_id`. Invalid values now raise `BucketIDError`
17+
before routing. [TNTP-3536](https://jira.vk.team/browse/TNTP-3536)
1118

19+
### Fixed
20+
* Fixed compatibility with cartridge `2.16.0` ([TNTP-3598](https://jira.vk.team/browse/TNTP-3598))
21+
* `crud.schema` no longer returns TCF system space `_cdc_state`.
1222
* `crud.schema` no longer returns system space `_gc_consumers` with Tarantool 3.2+.
23+
* `crud.schema` no longer returns `tt` system space `_tt_migrations`.
1324
* Tests of `schema` with Tarantool 3.2+.
25+
* Fixed bad error handling for method `call.single`
26+
* Added support for working in 3.1 with data from 2.11, previously there was an error
27+
due to the inability to find the replicasets by name https://github.com/tarantool/crud-ee/issues/16
1428

1529
## [1.5.2] - 20-05-24
1630

@@ -22,7 +36,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
2236

2337
## [1.5.1] - 27-04-24
2438

25-
### Added
39+
### Changed
2640
* Clarify license in the rockspec (#434).
2741

2842
## [1.5.0] - 03-04-24

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright 2020-2024 crud AUTHORS: please see the AUTHORS file.
1+
Copyright 2020-2025 crud AUTHORS: please see the AUTHORS file.
22

33
Redistribution and use in source and binary forms, with or without modification,
44
are permitted provided that the following conditions are met:

0 commit comments

Comments
 (0)