Review request: JDK-8080108: [TEST_BUG] ERROR: No IPv6 address returned from platform
Chris Hegarty
chris.hegarty at oracle.com
Wed Aug 5 14:54:03 UTC 2015
On 04/08/15 13:53, Alexander Fomin wrote:
> Hi Chris
>
> On 04.08.2015 13:29, Chris Hegarty wrote:
>> Alexander,
>>
>> Wow, that's a lot of boiler plate for a manual test. Surely a
>> README.txt, or similar would be sufficient?
>>
>> I noticed that with your changes, now this test has a dependency on
>> the jdk.desktop module ( imports from java.awt.* ). Is it really
>> necessary to have a dialog window pop-up?
>
> With the current process manual tests without a dialog window with
> instruction and PASS/FAIL buttons will be, actually, skipped.
> The manual tests aren't run one by one. The regression manual
> testing is started with the command like:
>
> ..\bin\jtreg -v -m -ignore:quiet -jdk:<path to JDK> -r:<path to reprot
> dir> -w:<path to workDir>
>
> that run all manual test. So, nobody will read all README.txt files for
> all tests before run, right?
>
> With the command above, if we have some manual test with the only
> README.txt and without dialog window, the test will be run by jtreg
> automatically. In the result the instruction in README.txt will be
> skipped and the test will PASS or FAIL automatically (it depends on how
> the test is written). If a such test passed, it doesn't mean that
> something has been ever tested. It may pass just because some resources
> or properties, required for the test, were absent. If the test FAIL,
> well, we may at least do one more iteration to rerun all failed manual
> tests one by one following to the instruction in the corresponding
> README.txt. But it's too expensive. Usually the failures just reported
> by SQE engineers as test bugs.
Ok. If this is already established process.
> BYW, the original test has a readme.txt with instruction. But it
> was never run properly. At least for JDK 9 it was never pass (even on
> non Windows systems) because nobody read the README.txt before test
> execution, I guess.
>
> What is the problem with dependency on the jdk.desktop module?
The problem is that you must have a java runtime image with the
java.desktop module installed, to be able to run a core networking test
that has got nothing to do with graphics. Also it cannot be run on a
headless system?
That said, I would prefer that this test was run by someone, at some
point in time. If these changes facilitate that, then I support them,
once I run jtreg with '-a' ( automatic only) and it is ignored.
> If we should avoid the dependency and we still wish the tests
> without standard dialog windows with test's instructions and PASS/FAIL
> buttons were run regularly, we, probably, need to fix jtreg. Currently
> jtreg doesn't take into account readme.txt files or provide any
> mechanism for manual test run execution. But this jtreg enhancement is
> out of scope for the bug I'm trying to fix.
Right.
-Chris.
> Thanks,
> Alexander
>
>>
>> -Chris.
>>
>> On 29/07/15 12:59, Alexander Fomin wrote:
>>> Hello,
>>>
>>> Please review the test bug fix
>>> https://bugs.openjdk.java.net/browse/JDK-8080108
>>>
>>> See webrev here
>>> http://cr.openjdk.java.net/~kshefov/8080108/webrev.00/
>>>
>>> The original test
>>> (com/sun/jndi/dns/IPv6NameserverPlatformParsingTest.java @bug 6991580)
>>> fails automatically if /etc/resolv.conf file doesn't contain IPv6
>>> nameserver entries.
>>> It's needed to edit /etc/resolv.conf manually before the test run, so
>>> this is a manual regression test.
>>> The test is intended to be run on non-Windows systems.
>>>
>>> Fix:
>>> - provided standard test machinery for regression manual tests with
>>> instructions for a user;
>>> - the test excluded for Windows.
>>>
>>> Tested on Linux and Windows(to make sure it's excluded).
>>>
>>> Thanks,
>>> Alexander
>
More information about the core-libs-dev
mailing list