-
Notifications
You must be signed in to change notification settings - Fork 174
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
7539: JDP Tests failing in VPN environments #369
Conversation
👋 Welcome back parttimenerd! A progress list of the required criteria for merging this PR into |
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.
You also need to update the copyright years.
I'll test this later with my VPN.
core/tests/org.openjdk.jmc.jdp.test/src/test/java/org/openjdk/jmc/jdp/client/TestToolkit.java
Outdated
Show resolved
Hide resolved
core/tests/org.openjdk.jmc.jdp.test/src/test/java/org/openjdk/jmc/jdp/client/TestToolkit.java
Outdated
Show resolved
Hide resolved
core/tests/org.openjdk.jmc.jdp.test/src/test/java/org/openjdk/jmc/jdp/client/TestToolkit.java
Outdated
Show resolved
Hide resolved
Webrevs
|
I think it would be better to have the test provide information about how to properly configure the machine to properly run the tests than to automatically skip the tests. Perhaps we could also add a system property check or something to make it easy to skip the test from the command line, if someone truly can't get it to work. But then it should be a conscious choice, not something happening automatically to avoid having to fix the setup. Here is for example one possible scenario if we go with automated skipping:
We shouldn't automatically skip tests without a very strong reason. It's better to inform the runner of the test how to fix their config. |
An option could be to log a warning if we skip a test. |
I agree - we should catch the failure and then log something like: And then check for this property when deciding whether to run the test. |
Yup. We can even provide information about the proper command to use on Mac for adding the route. |
@parttimenerd 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 4 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 As you do not have Committer status in this project an existing Committer must agree to sponsor your change. Possible candidates are the reviewers of this PR (@thegreystone) but any other Committer may sponsor as well. ➡️ To flag this PR as ready for integration with the above commit message, type |
My current change still misses the integration in the Windows build script (but this might not be a problem as the VPN stuff primarily seems to affect Mac users) and a short remark in the README. Any thoughts about windows? |
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, I only have a few minor suggestions. For me it's ok to leave out the windows build script for now. I can add this later on, I want to play with that script anyway, have just built with maven so far.
core/tests/org.openjdk.jmc.jdp.test/src/test/java/org/openjdk/jmc/jdp/client/TestToolkit.java
Outdated
Show resolved
Hide resolved
core/tests/org.openjdk.jmc.jdp.test/src/test/java/org/openjdk/jmc/jdp/client/TestToolkit.java
Show resolved
Hide resolved
core/tests/org.openjdk.jmc.jdp.test/src/test/java/org/openjdk/jmc/jdp/client/TestToolkit.java
Outdated
Show resolved
Hide resolved
core/tests/org.openjdk.jmc.jdp.test/src/test/java/org/openjdk/jmc/jdp/client/TestToolkit.java
Outdated
Show resolved
Hide resolved
@RealCLanger has provided good insights! Let's act on his feedback before pushing this. |
dff7bc8
to
67473e8
Compare
67473e8
to
e3d853d
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.
LGTM
/integrate |
@parttimenerd |
/sponsor |
Going to push as commit f3ca1b1.
Your commit was automatically rebased without conflicts. |
@thegreystone @parttimenerd Pushed as commit f3ca1b1. 💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored. |
Only run broadcasting related tests when supported.
Tested on Mac M1 with and without VPN.
Progress
Issue
Reviewers
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.java.net/jmc pull/369/head:pull/369
$ git checkout pull/369
Update a local copy of the PR:
$ git checkout pull/369
$ git pull https://git.openjdk.java.net/jmc pull/369/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 369
View PR using the GUI difftool:
$ git pr show -t 369
Using diff file
Download this PR as a diff file:
https://git.openjdk.java.net/jmc/pull/369.diff