Releases: risinglightdb/sqllogictest-rs
Releases · risinglightdb/sqllogictest-rs
v0.20.6
[0.20.6] - 2024-06-21
- runner: add logs for
system
command (with targetsqllogictest::system_command
) for ease of debugging.
v0.20.5
[0.20.5] - 2024-06-20
- fix(runner): when running in parallel, the runner will correctly inherit configuration like
sort_mode
andlabels
from the main runner.
v0.20.3
[0.20.3] - 2024-06-06
- feat(bin): hide
INFO
level log by default
v0.20.2
[0.20.2] - 2024-04-22
- fix(bin):
halt
is not handled.
v0.20.1
[0.20.1] - 2024-04-17
- bin: When using
-j <jobs>
to run tests in parallel, add a random suffix to the temporary databases. This is useful if the test is manually canceled, but you want to rerun it freshly. Note that if the test failed, the database will be dropped. This is existing behavior and unchanged. - bin: replace
env_logger
withtracing-subscriber
. You will be able to see the record being executed withRUST_LOG=debug sqllogictest ...
. - runner: fix the behavior of background
system
commands (end with&
). In0.20.0
, it will block until the process exits. Now we return immediately.system ok sleep 5 &
v0.20.0
[0.20.0] - 2024-04-08
-
Show stdout, stderr when
system
command fails. -
Support matching stdout for
system
system ok echo "Hello, world!" ---- Hello, world!
Currently, only exact match is supported. Besides, the output cannot contain more than one blank lines in between. The record ends with two consecutive blank lines.
Some minor Breaking changes:
- Add field
stdout
toparser::Record::System
andrunner::RecordOutput::System
, and mark them as#[non_exhaustive]
. - Change trait method
AsyncDB::run_command
's return type fromstd::process::ExitStatus
tostd::process::Output
.
- Add field
v0.19.1
[0.19.1] - 2024-01-04
- parser:
include
now returns error if no file is matched.
v0.19.0
[0.19.0] - 2023-11-11
- parser: refactor
expect
field in sqllogictest parser to make it easier to work with.
v0.18.0
[0.18.0] - 2023-11-08
-
Support matching multiline error message under
----
for bothstatement error
andquery error
.query error SELECT 1/0; ---- db error: ERROR: Failed to execute query Caused by these errors: 1: Failed to evaluate expression: 1/0 2: Division by zero
The output error message must be the exact match of the expected one to pass the test, except for the leading and trailing whitespaces. Users may use
--override
to let the runner update the test files with the actual output.Empty lines are allowed in the expected error message. As a result, the message must end with two consecutive empty lines.
Breaking changes in the parser:
- Add new variants to
ParseErrorKind
. Mark it as#[non_exhaustive]
. - Change the type of
expected_error
fromRegex
toExpectedError
, which is either a inlineRegex
or multilineString
.
- Add new variants to
v0.17.2
[0.17.2] - 2023-11-01
- fix(runner): fix parallel testing db name duplication. Now we use full file path instead of filename as the temporary db name in
run_parallel_async
.