Skip to content
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

test: support tests with vshard #381

Merged
merged 2 commits into from
Oct 9, 2023

Conversation

oleg-jukovec
Copy link
Contributor

@oleg-jukovec oleg-jukovec commented Oct 5, 2023

The patch updates all tests to work with vshard and cartridge at the same time. But tests of the cartridge role of the cartridge or special features are skipping for vshard.

If cartridge is not installed or not supported (Tarantool 3.0+), tests will run only with vshard.

The source of vshard_helpers folder is vshard repository [1] with minor modifications.

  1. https://github.com/tarantool/vshard/tree/b3c27b32637863e9a03503e641bb7c8c69779a00/test/luatest_helpers

I didn't forget about

  • Tests
  • Changelog
  • Documentation

Closes #364
Closes #371

We need use `box.info.replication.uuid` instead of
`box.info.cluster.uuid` to support Tarantool 3.0 [1].

1. tarantool/tarantool#8289

Part of #366
Closes #371
@oleg-jukovec oleg-jukovec force-pushed the oleg-jukovec/gh-364-vshard-tests branch from 69b5862 to c7d1d22 Compare October 5, 2023 11:25
@oleg-jukovec
Copy link
Contributor Author

oleg-jukovec commented Oct 5, 2023

There are 3 red tests in test/unit/sharding_metadata_test.lua, but it seems like a bug in Tarantool master and should be fixed soon:
tarantool/tarantool#9223

@oleg-jukovec oleg-jukovec force-pushed the oleg-jukovec/gh-364-vshard-tests branch from c7d1d22 to bc306c7 Compare October 5, 2023 11:53
@oleg-jukovec oleg-jukovec marked this pull request as ready for review October 5, 2023 13:08
Copy link
Member

@DifferentialOrange DifferentialOrange left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for your hard work! Seems mostly nice, see some comments below

.github/workflows/test_on_push.yaml Outdated Show resolved Hide resolved
test/helper.lua Show resolved Hide resolved
test/helper.lua Show resolved Hide resolved
test/integration/reload_test.lua Outdated Show resolved Hide resolved
test/integration/select_readview_test.lua Show resolved Hide resolved
test/vshard_helpers/instances/storage.lua Outdated Show resolved Hide resolved
@oleg-jukovec oleg-jukovec force-pushed the oleg-jukovec/gh-364-vshard-tests branch 3 times, most recently from 5057af4 to 3e6023b Compare October 9, 2023 10:17
The patch updates all tests to work with `vshard` and `cartridge`
at the same time. But tests of the `cartridge` role of the cartridge
or special features are skipping for `vshard`.

If `cartridge` is not installed or not supported (Tarantool 3.0+),
tests will run only with `vshard`.

The source of `vshard_helpers` folder is `vshard` repository [1] with
minor modifications.

1. https://github.com/tarantool/vshard/tree/b3c27b32637863e9a03503e641bb7c8c69779a00/test/luatest_helpers

Closes #364
@oleg-jukovec
Copy link
Contributor Author

There are 3 red tests in test/unit/sharding_metadata_test.lua, but it seems like a bug in Tarantool master and should be fixed soon: tarantool/tarantool#9223

Added a workaround with the triggers removing before a space drop. Now the tests work with all versions of Taranatool.

@DifferentialOrange DifferentialOrange merged commit 26bfdc9 into master Oct 9, 2023
29 checks passed
@DifferentialOrange DifferentialOrange deleted the oleg-jukovec/gh-364-vshard-tests branch October 9, 2023 12:19
oleg-jukovec added a commit to tarantool/tarantool that referenced this pull request Oct 9, 2023
The patch returns integration test run with `crud`. The test run was
removed earlier [1] because the `crud` did not support tests
with Tarantool 3.0. But now it supports [2].

1. 7316d81
2. tarantool/crud#381

NO_DOC=ci
NO_TEST=ci
NO_CHANGELOG=ci
ylobankov pushed a commit to tarantool/tarantool that referenced this pull request Oct 9, 2023
The patch returns integration test run with `crud`. The test run was
removed earlier [1] because the `crud` did not support tests
with Tarantool 3.0. But now it supports [2].

1. 7316d81
2. tarantool/crud#381

NO_DOC=ci
NO_TEST=ci
NO_CHANGELOG=ci
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

doc/playground.lua does not start under tarantool 3.0 Test with vshard cluster
2 participants