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

Embedding preparation #42

Merged

Conversation

DifferentialOrange
Copy link
Member

@DifferentialOrange DifferentialOrange commented Jan 9, 2023

test: do not run on built-in

After embedding checks to the core binary, plain require('checks') will return embedded module. So it won't be possible to run repository module tests (in reusable_testing or with repository CI) with repository code until it overloads build-in code. Until [1] is resolved there are no any other way to deal with it. (And even after [1] would be resolved, it may worth to leave it like this to support older versions with built-in checks.)

  1. Builtin modules overloading tarantool#7774

Part of tarantool/tarantool#7726

@DifferentialOrange DifferentialOrange force-pushed the DifferentialOrange/tarantool-embed-followups branch 4 times, most recently from eb40948 to ae752bd Compare January 11, 2023 13:07
@DifferentialOrange DifferentialOrange force-pushed the DifferentialOrange/tarantool-embed-followups branch 2 times, most recently from 703f839 to ebd2fbe Compare January 16, 2023 08:00
@DifferentialOrange DifferentialOrange changed the base branch from master to DifferentialOrange/new-checks-types January 16, 2023 09:29
@DifferentialOrange DifferentialOrange force-pushed the DifferentialOrange/tarantool-embed-followups branch 2 times, most recently from dcab163 to 092d931 Compare January 16, 2023 14:18
@DifferentialOrange DifferentialOrange force-pushed the DifferentialOrange/new-checks-types branch from d167608 to a501cc5 Compare January 16, 2023 14:49
@DifferentialOrange DifferentialOrange force-pushed the DifferentialOrange/tarantool-embed-followups branch from 092d931 to 0ae478b Compare January 16, 2023 15:14
Base automatically changed from DifferentialOrange/new-checks-types to master January 16, 2023 20:04
@DifferentialOrange DifferentialOrange force-pushed the DifferentialOrange/tarantool-embed-followups branch from 0ae478b to ddf0836 Compare January 16, 2023 20:05
@DifferentialOrange DifferentialOrange changed the title Various fixes on embedding Embedding preparation Jan 17, 2023
@DifferentialOrange DifferentialOrange marked this pull request as ready for review January 17, 2023 07:25
@DifferentialOrange DifferentialOrange force-pushed the DifferentialOrange/tarantool-embed-followups branch 3 times, most recently from a14633e to 27713d6 Compare January 19, 2023 08:29
@DifferentialOrange
Copy link
Member Author

DifferentialOrange commented Jan 19, 2023

I decided to stick to the os environment switch since it is easier to set up that _G var (simple TEST_VAR make test instead of adding Lua code to some place).

UPD: the decision was changed.

@DifferentialOrange DifferentialOrange force-pushed the DifferentialOrange/tarantool-embed-followups branch from 27713d6 to 7a35c5b Compare January 20, 2023 08:43
Copy link
Member

@ligurio ligurio left a comment

Choose a reason for hiding this comment

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

LGTM (after fixing a couple of comments inline)

test/perftest.lua Outdated Show resolved Hide resolved
Makefile Show resolved Hide resolved
@DifferentialOrange DifferentialOrange force-pushed the DifferentialOrange/tarantool-embed-followups branch from 7a35c5b to 29c4f0d Compare February 6, 2023 16:16
Makefile Show resolved Hide resolved
test/perftest.lua Outdated Show resolved Hide resolved
test/helper.lua Show resolved Hide resolved
luatest expect tests to be stored in test folder.

Part of tarantool/tarantool#7726
After embedding checks to the core binary, plain require('checks') will
return embedded module. So it won't be possible to run repository module
tests (in reusable_testing or with repository CI) with repository code
until it overloads build-in code. Until [1] is resolved there are no
any other way to deal with it. (And even after [1] would be resolved,
it may worth to leave it like this to support older versions with
built-in checks.) test/helper.lua is automatically required by luatest
before any run.

1. tarantool/tarantool#7774

Part of tarantool/tarantool#7726
@DifferentialOrange DifferentialOrange force-pushed the DifferentialOrange/tarantool-embed-followups branch from 29c4f0d to 41c8659 Compare February 7, 2023 12:12
@DifferentialOrange DifferentialOrange merged commit 90bbf3e into master Feb 8, 2023
@DifferentialOrange DifferentialOrange deleted the DifferentialOrange/tarantool-embed-followups branch February 8, 2023 11:37
@Totktonada Totktonada removed their request for review February 8, 2023 15:53
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.

3 participants