Skip to content

Remove usage of static test classes in kuduconnectortests#11185

Merged
ebyhr merged 2 commits intotrinodb:masterfrom
grantatspothero:gn/fixKuduTests
Mar 2, 2022
Merged

Remove usage of static test classes in kuduconnectortests#11185
ebyhr merged 2 commits intotrinodb:masterfrom
grantatspothero:gn/fixKuduTests

Conversation

@grantatspothero
Copy link
Copy Markdown
Contributor

@grantatspothero grantatspothero commented Feb 24, 2022

See here: #10940 (comment)

Static inner classes behave weirdly during some test failures, I'm not sure why but when the baseconnectortest naming convention test fails it causes the entire static inner class tests to not be run. Just breaking these static inner classes into separate top level classes.

Running stress tests then will remove the ci commit.

Documentation

(x) No documentation is needed.

Release notes

(x) No release notes entries required.

@cla-bot cla-bot bot added the cla-signed label Feb 24, 2022
Static inner test classes that did not follow the BaseConnectorTest
naming convention were not being run. Rename tests to follow the naming
convention and then fix the test error that was previously hidden
Static test classes with testng lead to unexpected behavior during
test failures, switch to using top level classes instead
@grantatspothero
Copy link
Copy Markdown
Contributor Author

grantatspothero commented Feb 28, 2022

@ebyhr found 2 more problems, see the 2 new commits I pushed. The first is an actual race in the kudu connector code itself, the second is just a race in the test code.

I'm going to create another PR for those 2 commits since they are unrelated to this PR. Note that means we will still have some flakes in this PR. #11264

@ebyhr
Copy link
Copy Markdown
Member

ebyhr commented Mar 1, 2022

@grantatspothero Could you rebase on upstream to resolve conflicts in SchemaEmulationByTableNameConvention.java?

@grantatspothero grantatspothero force-pushed the gn/fixKuduTests branch 2 times, most recently from fa2665a to 62dfc34 Compare March 1, 2022 19:31
@ebyhr ebyhr merged commit c8daf6b into trinodb:master Mar 2, 2022
@ebyhr
Copy link
Copy Markdown
Member

ebyhr commented Mar 2, 2022

Merged, thanks!

@github-actions github-actions bot added this to the 372 milestone Mar 2, 2022
hashhar pushed a commit to grantatspothero/trino that referenced this pull request Mar 15, 2022
TestNG support for inner test classes is poor, see this issue:
trinodb#11185
hashhar pushed a commit that referenced this pull request Mar 16, 2022
TestNG support for inner test classes is poor, see this issue:
#11185
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

2 participants