-
Notifications
You must be signed in to change notification settings - Fork 251
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: run query engine tests with query compiler #5146
base: main
Are you sure you want to change the base?
Conversation
CodSpeed Performance ReportMerging #5146 will not alter performanceComparing Summary
|
WASM Query Engine file Size
|
22900bc
to
f9fd55e
Compare
f9fd55e
to
a41edef
Compare
d157164
to
c468ec2
Compare
a41edef
to
e212505
Compare
c468ec2
to
eaefcbd
Compare
e212505
to
3f14267
Compare
eaefcbd
to
ffebe63
Compare
0f58c9e
to
c462b32
Compare
c462b32
to
e0162d2
Compare
6251de8
to
5d29f7f
Compare
6847763
to
17710bb
Compare
type: 'teardown', | ||
}) | ||
|
||
await schemaState.worker.terminate() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
put it in finally
.await | ||
.unwrap(); | ||
if let Err(e) = teardown_project(&datamodel, Default::default(), runner.schema_id()).await { | ||
if !expected_to_fail { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
log the error either way
Ok::<(), TestError>(()) | ||
} | ||
Err(_) => { | ||
eprintln!("test panicked as expected"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
downcast the panic and print the message
62973b5
to
e7d5972
Compare
e7d5972
to
1dfe965
Compare
let last = parts.len() - 1; | ||
parts[last] = original_test_function_name; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let last = parts.len() - 1; | |
parts[last] = original_test_function_name; | |
parts.pop(); | |
parts.push(original_test_function_name); |
I like to avoid index arithmetic when possible
static IGNORED_TESTS: OnceLock<Vec<String>> = OnceLock::new(); | ||
static SHOULD_FAIL_TESTS: OnceLock<Vec<String>> = OnceLock::new(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why not HashSet
@@ -60,6 +60,9 @@ build() { | |||
local CONNECTOR="$1" | |||
local CARGO_TARGET_DIR | |||
CARGO_TARGET_DIR=$(cargo metadata --format-version 1 | jq -r .target_directory) | |||
|
|||
export RUSTFLAGS="-C link-args=-zstack-size=16777216" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
might be worth leaving a comment why we set the stack size
Closes: https://linear.app/prisma-company/issue/ORM-555/make-prisma-engines-tests-run-with-query-compiler