Skip to content

[CALCITE-5501] SqlToRelConverterTest.checkActualAndReferenceFiles fai…#3049

Merged
asolimando merged 1 commit intoapache:mainfrom
asolimando:main-CALCITE-5501-fix_sqltorelconverterextededtest_flaky
Feb 10, 2023
Merged

[CALCITE-5501] SqlToRelConverterTest.checkActualAndReferenceFiles fai…#3049
asolimando merged 1 commit intoapache:mainfrom
asolimando:main-CALCITE-5501-fix_sqltorelconverterextededtest_flaky

Conversation

@asolimando
Copy link
Member

@asolimando asolimando commented Jan 27, 2023

…ls intermittently in Jenkins CI

The PR addresses a race condition over the shared file SqlToRelConverterTest.xml by enforcing a lock between SqlToRelConverterTest and SqlToRelConverterExtendedTest classes.

The tests within the two classes, and with respect to any other test class, remain parallel, so no test runtime drop is expected.

…ls intermittently in Jenkins CI

Use the 'ResourceLock' JUnit5's annotation to force sequential execution of SqlToRelConverterTest and SqlToRelConverterExtendedTest test classes which have a race condition over SqlToRelConverterTest.xml file
@asolimando asolimando force-pushed the main-CALCITE-5501-fix_sqltorelconverterextededtest_flaky branch from b77b68e to 765a53f Compare January 27, 2023 21:43
@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

Copy link
Contributor

@clesaec clesaec left a comment

Choose a reason for hiding this comment

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

LGTM, didn't know about JUnit5 ResourceLock 👍

@asolimando asolimando merged commit 03a0b9d into apache:main Feb 10, 2023
@asolimando asolimando deleted the main-CALCITE-5501-fix_sqltorelconverterextededtest_flaky branch February 10, 2023 17:06
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