-
-
Notifications
You must be signed in to change notification settings - Fork 259
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
Race condition in running cargo test #319
Comments
oh, this is super interesting. I can't tell you how many times I've run Neat. I'll noodle it tomorrow. Thanks for the report. |
I've been running The "compile & install extension" bit of The error indicates that the I'm not exactly sure what to do here. Any other information you can provide? Details about your system might be interesting. Based on file paths, I assume you're on MacOS (so am I)? |
Got it. Thanks for trying to reproduce it. I am able to semi-consistently reproduce this, and the code pointer is helpful. I will attempt to put some additional logging into place to validate / debunk my theory. I'm unfamiliar with the issue etiquette for this repository, but I will close this issue and re-open once I have additional actionable data. |
It's a weird one. Improving the error reporting from: would probably help a ton in hunting this down. |
We noted this may be caused by #328 |
Steps to reproduce:
cargo pgx test v13
Removing the
.so
file from~/.pgx/13.5/pgx-install/lib/postgresql/<extension_name>.so
, causes the shared object file to regenerate which causes the test run to succeed. But this periodically fails again. Removing the file is one way to fix it.This seems like a case where the copy at https://github.com/zombodb/pgx/blob/2a15b6d62c0f61ddcd80fe6b229cd56ae4c2c6dd/cargo-pgx/src/commands/install.rs#L48 isn't waiting for the build to complete.
The text was updated successfully, but these errors were encountered: