-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Fix parallel spec tests still mutating some sequences #1799
Comments
Quick question @wolfgangwalther which may be related to this issue (but perhaps not). Is the return from |
In fact it's completely unrelated to this issue ;) However I made a quick test as follows: create table t (
c TEXT
);
create function sleep_raise() returns trigger
language plpgsql as $$begin
perform pg_sleep(5);
raise 'failed';
end$$;
create constraint trigger def after insert on t
deferrable initially deferred for each row
execute function sleep_raise(); Now, when I run a Note, however, that this is not the case, when using |
Thanks for the info! I've concluded that my HTTP-based, python multi-threaded tests are most likely just running too quickly, resulting in phantom read anomalies which are throwing errors. Before each and every test run, I create multiple That is very cool, about the |
This potentially allows to run the remaining tests in those files in parallel mode. References #1799
Changing the PK here will avoid duplicate conflicts with another test. References #1799
Fixed a few things, right now the biggest offender is this: postgrest/test/spec/Feature/Query/ComputedRelsSpec.hs Lines 107 to 146 in 01a56db
|
Noted after merging #1797, but unrelated to that PR, we still have some tests that depend on the order in which they are run. Some kind of rare race-condition when running the tests.
Error here:
https://app.circleci.com/pipelines/github/PostgREST/postgrest/850/workflows/1c7c98b4-8081-4239-96a8-fef6a9fb5f1e/jobs/8487
The text was updated successfully, but these errors were encountered: