Skip to content

Speed up PostgreSQL builds#1649

Merged
tsegismont merged 1 commit intoeclipse-vertx:masterfrom
tsegismont:speed-up-pg-builds
Apr 1, 2026
Merged

Speed up PostgreSQL builds#1649
tsegismont merged 1 commit intoeclipse-vertx:masterfrom
tsegismont:speed-up-pg-builds

Conversation

@tsegismont
Copy link
Copy Markdown
Member

Create a shared rule instance in ContainerPgRule.

This instance is used where we don't need particular customization (SSL, different user, ...etc.). In ContainerPgRule#after method, we skip stopping the server if the method is called on the SHARED instance. Therefore, we avoid starting/stopping the PostgreSQL container before/after each test class. On my box, the builds takes 1-2 minutes instead of 5-6 minutes. This behavior is aligned with MySQL, MSSQL and Oracle clients testing.

Also, modified EnumeratedTypesExtendedCodecTest#testEncodeEnumArrayEmptyValues. It checked a column that had nothing to do with enum array. Without this change, we cannot use a shared rule.

Create a shared rule instance in ContainerPgRule.

This instance is used where we don't need particular customization (SSL, different user, ...etc.).
In ContainerPgRule#after method, we skip stopping the server if the method is called on the SHARED instance.
Therefore, we avoid starting/stopping the PostgreSQL container before/after each test class.
On my box, the builds takes 1-2 minutes instead of 5-6 minutes.
This behavior is aligned with MySQL, MSSQL and Oracle clients testing.

Also, modified EnumeratedTypesExtendedCodecTest#testEncodeEnumArrayEmptyValues.
It checked a column that had nothing to do with enum array.
Without this change, we cannot use a shared rule.

Signed-off-by: Thomas Segismont <tsegismont@gmail.com>
@tsegismont tsegismont merged commit 3d0acdc into eclipse-vertx:master Apr 1, 2026
20 checks passed
@tsegismont tsegismont deleted the speed-up-pg-builds branch April 1, 2026 19:02
tsegismont added a commit that referenced this pull request Apr 1, 2026
Create a shared rule instance in ContainerPgRule.

This instance is used where we don't need particular customization (SSL, different user, ...etc.).
In ContainerPgRule#after method, we skip stopping the server if the method is called on the SHARED instance.
Therefore, we avoid starting/stopping the PostgreSQL container before/after each test class.
On my box, the builds takes 1-2 minutes instead of 5-6 minutes.
This behavior is aligned with MySQL, MSSQL and Oracle clients testing.

Also, modified EnumeratedTypesExtendedCodecTest#testEncodeEnumArrayEmptyValues.
It checked a column that had nothing to do with enum array.
Without this change, we cannot use a shared rule.

Signed-off-by: Thomas Segismont <tsegismont@gmail.com>
tsegismont added a commit to tsegismont/vertx-sql-client that referenced this pull request Apr 1, 2026
Backport of eclipse-vertx#1649

Create a shared rule instance in ContainerPgRule.

This instance is used where we don't need particular customization (SSL, different user, ...etc.).
In ContainerPgRule#after method, we skip stopping the server if the method is called on the SHARED instance.
Therefore, we avoid starting/stopping the PostgreSQL container before/after each test class.
On my box, the builds takes 1-2 minutes instead of 5-6 minutes.
This behavior is aligned with MySQL, MSSQL and Oracle clients testing.

Also, modified EnumeratedTypesExtendedCodecTest#testEncodeEnumArrayEmptyValues.
It checked a column that had nothing to do with enum array.
Without this change, we cannot use a shared rule.

Signed-off-by: Thomas Segismont <tsegismont@gmail.com>
tsegismont added a commit that referenced this pull request Apr 1, 2026
Backport of #1649

Create a shared rule instance in ContainerPgRule.

This instance is used where we don't need particular customization (SSL, different user, ...etc.).
In ContainerPgRule#after method, we skip stopping the server if the method is called on the SHARED instance.
Therefore, we avoid starting/stopping the PostgreSQL container before/after each test class.
On my box, the builds takes 1-2 minutes instead of 5-6 minutes.
This behavior is aligned with MySQL, MSSQL and Oracle clients testing.

Also, modified EnumeratedTypesExtendedCodecTest#testEncodeEnumArrayEmptyValues.
It checked a column that had nothing to do with enum array.
Without this change, we cannot use a shared rule.

Signed-off-by: Thomas Segismont <tsegismont@gmail.com>
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.

1 participant