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

Introduce "real" integration tests #778

Merged
merged 1 commit into from
Jan 15, 2025
Merged

Introduce "real" integration tests #778

merged 1 commit into from
Jan 15, 2025

Conversation

adutra
Copy link
Contributor

@adutra adutra commented Jan 15, 2025

For now, some tests will fail due to #769.

@QuarkusTest
public class QuarkusSparkIntegrationTest extends PolarisSparkIntegrationTest {}
@QuarkusIntegrationTest
public class QuarkusSparkIT extends PolarisSparkIntegrationTest {}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I removed this test from the test directory but left the others, because this one is a bit more heavy-weight.

@@ -72,6 +72,8 @@ quarkus.otel.sdk.disabled=false
# quarkus.otel.traces.sampler=parentbased_always_on
# quarkus.otel.traces.sampler.arg=1.0d

quarkus.test.integration-test-profile=test
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is required for now, but a bit unfortunate. I will look into making the test profile converge towards the prod profile later on.

import org.apache.polaris.service.it.test.PolarisRestCatalogIntegrationTest;

@QuarkusIntegrationTest
public class QuarkusRestCatalogIT extends PolarisRestCatalogIntegrationTest {}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggestion: if tests can work with the same server, it might be an option to rung them via a JUnit5 "suite". This way we can have only one class that references the package of tests from polaris-test and also leverage JUnit5 parallelism as opposed to Gradle test parallelism.

I did not do that under DW only because it was hard to share DW servers between test threads. Now, it looks like all tests are segregated by in entity names and servers are in a separate JVM... so it might work :)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm I haven't used JUnit5 suites. Mind if we do your suggestion in another PR?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

absolutely (it's one additional dependency for the "suite" engine, by the way)

@adutra adutra enabled auto-merge (squash) January 15, 2025 15:42
@adutra adutra merged commit d7c07dd into apache:main Jan 15, 2025
5 checks passed
@adutra adutra deleted the int-tests branch January 15, 2025 15:54
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