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

PostgreSQL embedded: tests use system temp dir for installation #55

Merged
merged 1 commit into from
Mar 12, 2024

Conversation

mrizzi
Copy link
Collaborator

@mrizzi mrizzi commented Mar 12, 2024

Investigating the failure in https://github.com/trustification/trustify/actions/runs/8234967143/job/22517985508?pr=40#step:9:33, it turned out it was related to multi tests concurrently extracting PostgreSQL to the same folder.

Installing tests to extract PostgreSQL in folder within the system temporary directory enables tests to be executed concurrently.

The drawback with this implementation is that into_path consumes TempDir hence it won't be automatically deleted at the end of the test but considering the installation directory is within the system temporary directory, I think this could be considered acceptable in the context of tests execution.

@mrizzi mrizzi marked this pull request as ready for review March 12, 2024 10:45
@mrizzi
Copy link
Collaborator Author

mrizzi commented Mar 12, 2024

@bobmcwhirter I haven't permissions to add you as reviewer but I would like to have your review please.

@bobmcwhirter bobmcwhirter self-requested a review March 12, 2024 11:14
@bobmcwhirter bobmcwhirter merged commit 7569ef8 into trustification:main Mar 12, 2024
4 checks passed
@mrizzi mrizzi deleted the test-concurrently branch March 12, 2024 11:45
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