-
Notifications
You must be signed in to change notification settings - Fork 178
[issue-2375] [issue-2377] Re-enables PermissionTest and SecurityIT tests #2465
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
Conversation
|
I upgraded |
|
Will this work in environments that does not have docker support? I've been keeping the OpenTable dependency on the pre-1.0 release due to the migration over to docker. |
|
Just as a follow up, tests fail on my Windows 11 PC: |
|
@chrisknoll Thanks for looking at this! You're right: the upgrade on the OpenTable dependency would require Docker. Is migrating to Docker a show stopper? For awareness, I'm not able to run the tests with the OpenTable dependency as-is on Apple Silicon. I get the following exception: |
|
If migrating to Docker is a show stopper, perhaps we could switch to Zonky Embedded Postgres instead (as mentioned in this OpenTable issue)? Zonky Embedded Postgres advertises support for a seemingly wider range of platforms and architectures at least. |
|
yes, Docker requirement is a show stopper. Yes, Zonky could be a path forward. I looked throught he docs, and it seems you can choose a type of implementation (you can go with the OpenTable one that embeds the binary ie. OpenTable 0.13, or use one that does the docker, i think there are other options too. If this can be set up to be selected via some configuration variable (to default to old-style open table pg Embed) and then when needed change the config to select the docker backed impl then that would be acceptable. Also, might be somethign to report to Zonky that when you go with the old-style open table PG binary appraoch, it doesn't have support on that platfrom, maybe that is somethnig they can fix. |
* Adds the verify goal to the default set of goals for the Maven failsafe plugin to ensure integration test failures are caught by `mvn test`
* Switches from OpenTable's otj-pg-embedded to Zonky embedded-postgres
* OpenTable's 0.13.1 doesn't support Apple Silicon
* Newer versions of OpenTable use Docker and testcontainers under the hood
* OpenTable recommends using Zonky in cases where a non-Docker solution is preferred: opentable/otj-pg-embedded#166
07f6dc8 to
7cf10e1
Compare
|
@chrisknoll I updated the PR to switch to the Zonky implementation. I added profiles to pull in the appropriate Zonky binary for the following OS/architecture combinations:
Are there other platforms I should add? Thanks! |
|
Ok, I'm checking now. For future reference: can you refrain from force pushing branches up to the PR once the PR review starts. I had to do some git maneuvers to overwrite the branch that I pulled with the forced-pushed one, involving some fetching and hard resetting, and I'd prefer if I could just pull the branch next time and get your updates. Thank you! And don't worry too much about what goes into the final merge into master, I typically do a squash or rebase to get a clean commit into master. It's very rare that I'll ask anyone to squash/rebase their PR after the PR review starts, although if the commit history looks confusing I will ask them to squash/rebase before the first pull is done just to get things into a cleaner state for review. |
|
So far looks like it's running correctly on my local env, but I just want to let everything pass through before approving. Thanks so much for the quick turn around and the upgrade to Zonky, I think that's a much better long term solution. |
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.
Tests ran successfully.
mvn test