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

More reliable test setup in integration-tests/hibernate-orm-tenancy/datasource #36833

Merged
merged 1 commit into from
Nov 2, 2023

Conversation

yrodiere
Copy link
Member

@yrodiere yrodiere commented Nov 2, 2023

The previous config was relying on FlyWay on a default datasource to create other databases which named datasources pointed at.

Which works well, until a named datasource gets initialized before the default datasource; then named datasource initialization fails because the corresponding database doesn't exist yet.

This happened on my local laptop, I don't know why it didn't happen on CI.

@quarkus-bot quarkus-bot bot added area/hibernate-orm Hibernate ORM area/persistence OBSOLETE, DO NOT USE labels Nov 2, 2023
Copy link

quarkus-bot bot commented Nov 2, 2023

/cc @Sanne (hibernate-orm), @gsmet (hibernate-orm)

@yrodiere yrodiere requested a review from geoand November 2, 2023 12:40

This comment has been minimized.

…atasource

The previous config was relying on FlyWay on a default datasource to create other databases
which named datasources pointed at.

Which works well, until a named datasource gets initialized before the default datasource;
then named datasource initialization fails because the corresponding database doesn't exist yet.

This happened on my local laptop, I don't know why it didn't happen on CI.
@yrodiere yrodiere force-pushed the tenancy-datasource-testfix branch from 10cd7be to 5da533e Compare November 2, 2023 14:20
@yrodiere yrodiere added the triage/waiting-for-ci Ready to merge when CI successfully finishes label Nov 2, 2023
Copy link

quarkus-bot bot commented Nov 2, 2023

✔️ The latest workflow run for the pull request has completed successfully.

It should be safe to merge provided you have a look at the other checks in the summary.

@yrodiere yrodiere merged commit 72d993c into quarkusio:main Nov 2, 2023
19 checks passed
@quarkus-bot quarkus-bot bot added this to the 3.6 - main milestone Nov 2, 2023
@quarkus-bot quarkus-bot bot removed the triage/waiting-for-ci Ready to merge when CI successfully finishes label Nov 2, 2023
@aloubyansky aloubyansky modified the milestones: 3.6 - main, 3.2.8.Final Nov 3, 2023
@yrodiere yrodiere deleted the tenancy-datasource-testfix branch January 29, 2024 11:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/hibernate-orm Hibernate ORM area/persistence OBSOLETE, DO NOT USE
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants