-
Notifications
You must be signed in to change notification settings - Fork 9.2k
MAPREDUCE-7428. Fix failing MapReduce tests due to the JUnit upgrades in WebServicesTestUtils #5243
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
Merged
Merged
Changes from 5 commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
baffc92
Test: Remove JUnit API from WebServicesTestUtils to fix MAPREDUCE-7428
aajisaka f7e550d
Add changes to run tests in hadoop-mapreduce-client-app and hadoop-ma…
aajisaka 31773be
Revert "Add changes to run tests in hadoop-mapreduce-client-app and h…
aajisaka 2889872
Revert "MAPREDUCE-7428. Fix failures related to Junit 4 to Junit 5 up…
aajisaka 75f9604
Remove JUnit API from TestContainerLogsUtils
aajisaka e1269ae
Add check
aajisaka ff6d5fa
Remove AssertJ libraries
aajisaka File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
this does cut the check of the outcome...are we all happy with this?
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.
I thought we are happy because the directory has been removed in the previous line, but rethinking this, it's possible to fail removing the directory and then mkdir fails. Adding back the check in the next commit.
Uh oh!
There was an error while loading. Please reload this page.
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.
Thanks a lot for your question, I think we should keep this
assertTrue.We are currently experiencing some difficulties.
TestContainerLogsUtils.javauses assertTrue oforg.junit.jupiter,hadoop-mapreduce-client-hsandhadoop-mapreduce-client-appuseTestContainerLogsUtils.java,hadoop-mapreduce-client-hsandhadoop-mapreduce-client-appThese two modules have not upgraded the junit test, so when running the test, the classes cannot be found.hadoop-mapreduce-client-hsandhadoop-mapreduce-client-appmay take some time to upgrade junit test.aajisaka's idea can quickly fix this problem without affecting the compilation of other modules.
I will continue to follow up the
mapreducejunit upgrade. If the mapreduce module junit upgrade is completed, I will change this back.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.
@aajisaka I see your latest changes, your changes are reasonable. LGTM.
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.
Thanks for adding it back. It makes sense. LGTM
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.
Thanks @slfan1989
I have already raised PR for both the modules. Can see some failures in
hadoop-mapreduce-client-app- will fix it as well in that PR.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.
how about removing the asserts and just calling getFileStatus(dir) after.
remember also that delete() returning false means "dir wasn't there"...not a reason to fail
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.
Added
getFileStatus(dir)to check the dir exists in the latest commit. Thank you @steveloughran