8285915: failure_handler: gather the contents of /etc/hosts file#8466
8285915: failure_handler: gather the contents of /etc/hosts file#8466jaikiran wants to merge 2 commits intoopenjdk:masterfrom
Conversation
|
👋 Welcome back jpai! A progress list of the required criteria for merging this PR into |
Webrevs
|
|
/label add infra, build |
|
@jaikiran
|
|
/label add build |
|
@jaikiran |
dfuch
left a comment
There was a problem hiding this comment.
Thanks for doing this Jaikiran! That should be helpful. Please get approval from someone from build-dev before integrating.
|
@jaikiran 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 20 new commits pushed to the
As there are no conflicts, your changes will automatically be rebased on top of these commits when integrating. If you prefer to avoid this automatic rebasing, please check the documentation for the /integrate command for further details. ➡️ To integrate this PR with the above commit message to the |
|
Not sure if it's relevant, but did you consider doing this for Windows as well? The file is located at |
|
Hello Erik,
I hadn't investigated what the corresponding command would be for Windows, so had left it out. Quick question - the path you note, is that even applicable for x64? I see that it has a "System32" so just curious. I'll experiment a bit shortly against some CI setups to see how this goes on Windows. |
Yes, System32 is not related to 32 vs 64 bit. As I understand it, that name was introduced when moving from 16 to 32 bit. |
|
Hello Erik, I've updated the PR to include capturing the contents of hosts file even on Windows. I've tested this against an internal Windows system where it correct shows the content: |
|
Thank you Erik and Daniel for the reviews. |
|
/integrate |
|
Going to push as commit 45ca81f.
Your commit was automatically rebased without conflicts. |
Can I please get a review of this change which addresses https://bugs.openjdk.java.net/browse/JDK-8285915?
With this change, the environment details collected by the failure handler will now include the contents of the
/etc/hosts/file, which can be useful in certain cases when debugging network tests that fail.Testing done (on macOS):
Then verified that the generated environment.html had the
/etc/hostsfile contentProgress
Issue
Reviewers
Reviewing
Using
gitCheckout this PR locally:
$ git fetch https://git.openjdk.java.net/jdk pull/8466/head:pull/8466$ git checkout pull/8466Update a local copy of the PR:
$ git checkout pull/8466$ git pull https://git.openjdk.java.net/jdk pull/8466/headUsing Skara CLI tools
Checkout this PR locally:
$ git pr checkout 8466View PR using the GUI difftool:
$ git pr show -t 8466Using diff file
Download this PR as a diff file:
https://git.openjdk.java.net/jdk/pull/8466.diff