-
Notifications
You must be signed in to change notification settings - Fork 4k
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
THRIFT-5560: use junit 5 for all java unit tests #2574
Conversation
0210f82
to
520c43f
Compare
722487c
to
ce7dcae
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall, these changes look really good, and will be a nice improvement. I had a few suggestions. Also, please don't force push. This PR is pretty big, and it would be easier to see the incremental changes if you don't force push. All the commits can be squashed and/or force-pushed after the bulk of the reviews are done.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good overall. However, need to make sure all the tests pass after this change before merging.
honestly i have no idea why just switching to JUnit 5 results in this error:
but there's no stacktrace and I can't reproduce it locally. |
turns out it was a race condition: some unit tests were modifying system property while others read from it. this was not an issue before because |
lib/java/src/test/java/org/apache/thrift/transport/TestTSSLTransportFactoryStreamedStore.java
Show resolved
Hide resolved
had to rebase to pickup fix from #2585 |
test failures seem flaky - the C++ ones are failing... |
hi @ctubbsii do you still have any questions regarding this pull request? if no possibly this can be merged before: because otherwise it'll introduce a lot of hard to resolve conflicts with this; on the other hand i can always just re-format if this pull request goes in first |
@jimexist I merged this first, because I thought you were saying this PR should be merged before that one. But, now I see conflicts in that one. So, I'm wondering if you meant that one could be merged first. Apologies if I misunderstood. I can merge that one in next once the conflicts are resolved. On this PR, I understood: |
use junit 5 for all java unit tests
[skip ci]
anywhere in the commit message to free up build resources.