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

Not delete the server's working directory in Server:drop() #327

Merged
merged 1 commit into from
Sep 14, 2023

Conversation

ochaplashkin
Copy link

@ochaplashkin ochaplashkin commented Sep 12, 2023

Description

Now, luatest does not delete the server's working directory in the Server:drop() function. Instead of this, it deletes the whole var directory (default: /tmp/t) before running tests. So all server artifacts from all tests are saved after the run and can be analyzed.

However, you can disable this deletion by specifying the new --no-clean option.

🟢 What's new in administration

  • server artifacts are never deleted after the test run, so it takes some disk space;
  • --no-clean - new option to disable deletion of the var directory before running tests.

Usage

$ ls /tmp/t
server-foo server-bar ...
$ ./bin/luatest -c -v ./test/new_test.lua
...
$ ls /tmp/t
server-new123
$ ./bin/luatest -c -v --no-clean ./test/new_test.lua
$ ls /tmp/t
server-new123 server-new456

Part of #308

@ochaplashkin ochaplashkin marked this pull request as draft September 12, 2023 12:56
@ochaplashkin ochaplashkin force-pushed the not-clean-vardir-by-param branch from cf7febf to fba6eb2 Compare September 12, 2023 13:20
@ochaplashkin ochaplashkin marked this pull request as ready for review September 12, 2023 13:23
@ochaplashkin ochaplashkin force-pushed the not-clean-vardir-by-param branch 2 times, most recently from a252015 to 582b2d8 Compare September 13, 2023 12:39
@ochaplashkin ochaplashkin changed the title Add --not-clean parameter and dont clean workdir Add --no-clean parameter and dont clean workdir Sep 13, 2023
luatest/replica_set.lua Outdated Show resolved Hide resolved
luatest/replica_set.lua Outdated Show resolved Hide resolved
luatest/runner.lua Outdated Show resolved Hide resolved
luatest/runner.lua Outdated Show resolved Hide resolved
luatest/server.lua Outdated Show resolved Hide resolved
luatest/server.lua Outdated Show resolved Hide resolved
CHANGELOG.md Outdated Show resolved Hide resolved
@ochaplashkin ochaplashkin force-pushed the not-clean-vardir-by-param branch 3 times, most recently from fcbdec7 to 42e5609 Compare September 13, 2023 15:52
luatest/replica_set.lua Outdated Show resolved Hide resolved
luatest/replica_set.lua Outdated Show resolved Hide resolved
luatest/server.lua Outdated Show resolved Hide resolved
luatest/server.lua Outdated Show resolved Hide resolved
@ochaplashkin ochaplashkin force-pushed the not-clean-vardir-by-param branch from 42e5609 to 4ec28ac Compare September 14, 2023 08:51
@ylobankov ylobankov changed the title Add --no-clean parameter and dont clean workdir Not delete the server's working directory in the Server:drop() Sep 14, 2023
@ylobankov ylobankov changed the title Not delete the server's working directory in the Server:drop() Not delete the server's working directory in Server:drop() Sep 14, 2023
@ochaplashkin ochaplashkin force-pushed the not-clean-vardir-by-param branch from 4ec28ac to 9cd23b3 Compare September 14, 2023 09:35
Now, luatest does not delete the server's working directory in the drop()
function. Instead of this, it deletes the whole var dir (default: /tmp/t)
before running tests. So all server artifacts from all tests are saved
after the run and can be analyzed.

However, you can disable this deletion by specifying the new `--no-clean`
option.

Part of tarantool#308
@ochaplashkin ochaplashkin force-pushed the not-clean-vardir-by-param branch from 9cd23b3 to fd505dc Compare September 14, 2023 09:37
@ylobankov ylobankov merged commit 18859f6 into tarantool:master Sep 14, 2023
@ylobankov ylobankov added this to the 1.0.0 milestone Nov 20, 2023
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.

2 participants