-
Notifications
You must be signed in to change notification settings - Fork 5.8k
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
JDK-8266797: Fix for 8266610 breaks the build on macos #3943
Conversation
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.
Hi Vyom,
That fixes the include file problem but as this was obviously not tested on non-Linux have you checked that the rest of the fix for 8266610 works okay on non-Linux?
Thanks,
David
Hi David, Original fix was intended to Linux specific. Current Fix will not impact other platforms. There is existing test (java/nio/channels/FileChannel/BlockDeviceSize.java) which test the new code but currently it is silently passing without running the test. This test requires root access. Please see the bug( https://bugs.openjdk.java.net/browse/JDK-8150539) Thanks, |
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.
MacOS builds fail with GHA since recently. So enabling GHA would serve a basic test for this to work.
@vyommani how are you going to test this? |
I tested locally at my Linux environment. we have a test "java/nio/channels/FileChannel/BlockDeviceSize.java" but it requires root privileged , i ran this as well as a root. Please have a look into this(https://bugs.openjdk.java.net/browse/JDK-8150539). |
The fix to 8266610 caused a build failure on macOS. What is your plan to make sure this won't happen with this change? |
@vyommani You can start tier1 CI build to make sure build passes with this fix. |
can you please do let me know how to start tier1 CI build ? |
/test tier1 |
I would recommend enabling GitHub Actions for the "vyommani/jdk" repo. |
/test tier1 |
Your original fix failed to be Linux specific, so given you never actually tested it on other platforms you don't know whether another part of the fix is also not actually Linux-specific. At a minimum ensure you have GitHub actions enabled so that your fixes get some basic cross-platform testing before they are integrated. Thanks. |
Could not create test job |
The /test functionality doesn't work. You need to either test locally or using GitHub actions. |
somehow tests not working for me. https://github.com/vyommani/jdk/actions/runs/827989185 |
I have run this PR through our CI: the tier1 tests are fine on all supported platforms. Please integrate this PR as soon as possible. Separately, please sort out the way you test your PRs. Read the error message that the failed GitHub Actions gave you:
|
In internal CI with fix tier 1 builds are running fine. |
👋 Welcome back vtewari! A progress list of the required criteria for merging this PR into |
Ok i will integrate my changes now. |
@vyommani This change now passes all automated pre-integration checks. ℹ️ This project also has non-automated pre-integration requirements. Please see the file CONTRIBUTING.md for details. After integration, the commit message for the final commit will be:
You can use pull request commands such as /summary, /contributor and /issue to adjust it as needed. At the time when this comment was updated there had been 3 new commits pushed to the
Please see this link for an up-to-date comparison between the source branch of this pull request and the ➡️ To integrate this PR with the above commit message to the |
/integrate |
@vyommani Since your change was applied there have been 3 commits pushed to the
Your commit was automatically rebased without conflicts. Pushed as commit b823b3e. 💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored. |
this change will include the below headers files to Linux only.
#include <linux/fs.h>
#include <sys/stat.h>
Progress
Issue
Reviewers
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.java.net/jdk pull/3943/head:pull/3943
$ git checkout pull/3943
Update a local copy of the PR:
$ git checkout pull/3943
$ git pull https://git.openjdk.java.net/jdk pull/3943/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 3943
View PR using the GUI difftool:
$ git pr show -t 3943
Using diff file
Download this PR as a diff file:
https://git.openjdk.java.net/jdk/pull/3943.diff