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(query-engine): fix some PlanetScale tests #4909

Merged
merged 2 commits into from
Jun 7, 2024
Merged

Conversation

@jkomyno jkomyno added this to the 5.16.0 milestone Jun 6, 2024
@jkomyno jkomyno marked this pull request as ready for review June 6, 2024 10:02
@jkomyno jkomyno requested a review from a team as a code owner June 6, 2024 10:02
@jkomyno jkomyno requested review from laplab and removed request for a team June 6, 2024 10:02
Copy link

codspeed-hq bot commented Jun 6, 2024

CodSpeed Performance Report

Merging #4909 will not alter performance

Comparing fix/planetscale-tests (e7ad242) with main (12e25d8)

Summary

✅ 11 untouched benchmarks

Copy link
Contributor

github-actions bot commented Jun 6, 2024

WASM Query Engine file Size

Engine This PR Base branch Diff
Postgres 2.043MiB 2.043MiB 0.000B
Postgres (gzip) 813.868KiB 813.868KiB 0.000B
Mysql 2.013MiB 2.013MiB 0.000B
Mysql (gzip) 800.252KiB 800.254KiB -2.000B
Sqlite 1.914MiB 1.914MiB 0.000B
Sqlite (gzip) 762.108KiB 762.109KiB -1.000B

@jkomyno jkomyno self-assigned this Jun 7, 2024
@jkomyno
Copy link
Contributor Author

jkomyno commented Jun 7, 2024

I'm merging this PR, as it's self-contained, is green on the CI, and only touches a couple of tests.

@jkomyno jkomyno merged commit 9ee8c02 into main Jun 7, 2024
182 checks passed
@jkomyno jkomyno deleted the fix/planetscale-tests branch June 7, 2024 12:41
r#"mutation{createOnePost(data:{id: 2, user_id:2, user_age: 2}){id, user_id, user_age, User{id}}}"#,
2003
);
// Foreign key violation, which doesn't happen on PlanetScale.
Copy link
Contributor

Choose a reason for hiding this comment

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

Why though?

Copy link
Contributor Author

@jkomyno jkomyno Jun 7, 2024

Choose a reason for hiding this comment

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

Because foreign keys are disabled by default on PlanetScale. Plus, our PlanetScale simulator lacks the ability to turn foreign key violations on

Copy link
Contributor

Choose a reason for hiding this comment

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

Could we add this to the comment?
Also, shouldn't we have an emulated error in this case?

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