You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@wink.apache.org by "Sebb (JIRA)" <ji...@apache.org> on 2009/08/06 17:33:22 UTC

[jira] Created: (WINK-127) Test failure with Wink 0.1 tag

Test failure with Wink 0.1 tag
------------------------------

                 Key: WINK-127
                 URL: https://issues.apache.org/jira/browse/WINK-127
             Project: Wink
          Issue Type: Bug
          Components: Testsuite
            Reporter: Sebb


-------------------------------------------------------
 T E S T S
-------------------------------------------------------
Running org.apache.wink.example.locking.LockingTest
Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 1.578 sec <<< FAILURE!

Results :

Failed tests:
  testLockingExample(org.apache.wink.example.locking.LockingTest)

Tests run: 1, Failures: 1, Errors: 0, Skipped: 0

Surefire files to follow

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (WINK-127) Test failure with Wink 0.1 tag

Posted by "Bryant Luk (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WINK-127?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12741471#action_12741471 ] 

Bryant Luk commented on WINK-127:
---------------------------------

Ahh, I misread the original failure log.  I can re-produce the original error by setting the timezone to "(GMT) Greenwich Mean Time : Dublin, Edinburgh, Lisbon, London" and checking the Automatically adjust clock for daylight savings time in that Windows Time Zone box.

I still get errors around the United States time zones (-0600 Central Time (US & Canada) in particular) and Moscow (GMT+0300).

I changed the line:
    if (TimeZone.getDefault().useDaylightTime()) {

to:
    if (TimeZone.getDefault().useDaylightTime() && TimeZone.getDefault().getRawOffset() == 0) {

and that seemed to work a bit better (passing on the GMT and the other time zones where it is failing for me).


> Test failure with Wink 0.1 tag
> ------------------------------
>
>                 Key: WINK-127
>                 URL: https://issues.apache.org/jira/browse/WINK-127
>             Project: Wink
>          Issue Type: Bug
>          Components: Testsuite
>            Reporter: Sebb
>            Assignee: Michael Elman
>             Fix For: 0.1
>
>         Attachments: org.apache.wink.example.locking.LockingTest-output.txt, org.apache.wink.example.locking.LockingTest.txt, TEST-org.apache.wink.example.locking.LockingTest.xml
>
>
> -------------------------------------------------------
>  T E S T S
> -------------------------------------------------------
> Running org.apache.wink.example.locking.LockingTest
> Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 1.578 sec <<< FAILURE!
> Results :
> Failed tests:
>   testLockingExample(org.apache.wink.example.locking.LockingTest)
> Tests run: 1, Failures: 1, Errors: 0, Skipped: 0
> Surefire files to follow

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (WINK-127) Test failure with Wink 0.1 tag

Posted by "Sebb (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WINK-127?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sebb updated WINK-127:
----------------------

    Attachment: TEST-org.apache.wink.example.locking.LockingTest.xml
                org.apache.wink.example.locking.LockingTest-output.txt
                org.apache.wink.example.locking.LockingTest.txt

> Test failure with Wink 0.1 tag
> ------------------------------
>
>                 Key: WINK-127
>                 URL: https://issues.apache.org/jira/browse/WINK-127
>             Project: Wink
>          Issue Type: Bug
>          Components: Testsuite
>            Reporter: Sebb
>         Attachments: org.apache.wink.example.locking.LockingTest-output.txt, org.apache.wink.example.locking.LockingTest.txt, TEST-org.apache.wink.example.locking.LockingTest.xml
>
>
> -------------------------------------------------------
>  T E S T S
> -------------------------------------------------------
> Running org.apache.wink.example.locking.LockingTest
> Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 1.578 sec <<< FAILURE!
> Results :
> Failed tests:
>   testLockingExample(org.apache.wink.example.locking.LockingTest)
> Tests run: 1, Failures: 1, Errors: 0, Skipped: 0
> Surefire files to follow

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (WINK-127) Test failure with Wink 0.1 tag

Posted by "Hudson (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WINK-127?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12741069#action_12741069 ] 

Hudson commented on WINK-127:
-----------------------------

Integrated in Wink-Trunk-JDK1.5 #94 (See [http://hudson.zones.apache.org/hudson/job/Wink-Trunk-JDK1.5/94/])
    Fixing  - unit test failure in case of daylight saving timezone


> Test failure with Wink 0.1 tag
> ------------------------------
>
>                 Key: WINK-127
>                 URL: https://issues.apache.org/jira/browse/WINK-127
>             Project: Wink
>          Issue Type: Bug
>          Components: Testsuite
>            Reporter: Sebb
>            Assignee: Michael Elman
>             Fix For: 0.1
>
>         Attachments: org.apache.wink.example.locking.LockingTest-output.txt, org.apache.wink.example.locking.LockingTest.txt, TEST-org.apache.wink.example.locking.LockingTest.xml
>
>
> -------------------------------------------------------
>  T E S T S
> -------------------------------------------------------
> Running org.apache.wink.example.locking.LockingTest
> Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 1.578 sec <<< FAILURE!
> Results :
> Failed tests:
>   testLockingExample(org.apache.wink.example.locking.LockingTest)
> Tests run: 1, Failures: 1, Errors: 0, Skipped: 0
> Surefire files to follow

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (WINK-127) Test failure with Wink 0.1 tag

Posted by "Bryant Luk (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WINK-127?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12741477#action_12741477 ] 

Bryant Luk commented on WINK-127:
---------------------------------

> Anyway, I think that this issue is not a showstopper for a release, since it's a testing problem, which occurs on specific environments.

Agreed not a showstopper.

> Test failure with Wink 0.1 tag
> ------------------------------
>
>                 Key: WINK-127
>                 URL: https://issues.apache.org/jira/browse/WINK-127
>             Project: Wink
>          Issue Type: Bug
>          Components: Testsuite
>            Reporter: Sebb
>            Assignee: Michael Elman
>             Fix For: 0.1
>
>         Attachments: org.apache.wink.example.locking.LockingTest-output.txt, org.apache.wink.example.locking.LockingTest.txt, TEST-org.apache.wink.example.locking.LockingTest.xml
>
>
> -------------------------------------------------------
>  T E S T S
> -------------------------------------------------------
> Running org.apache.wink.example.locking.LockingTest
> Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 1.578 sec <<< FAILURE!
> Results :
> Failed tests:
>   testLockingExample(org.apache.wink.example.locking.LockingTest)
> Tests run: 1, Failures: 1, Errors: 0, Skipped: 0
> Surefire files to follow

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (WINK-127) Test failure with Wink 0.1 tag

Posted by "Michael Elman (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WINK-127?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Michael Elman resolved WINK-127.
--------------------------------

       Resolution: Fixed
    Fix Version/s: 0.1
         Assignee: Michael Elman

It seems like a kind of inconsistency in JDK's date related classes.
You were the first person complaining about this bug, while it should have happened to more people, especially on Hudson.

Anyway, hopefully I've fixed it. I'll really appreciate if you verify it in your environment.

Btw, I've renamed the test from LockingTest to PreconditionsTest to match the updated example's name.

> Test failure with Wink 0.1 tag
> ------------------------------
>
>                 Key: WINK-127
>                 URL: https://issues.apache.org/jira/browse/WINK-127
>             Project: Wink
>          Issue Type: Bug
>          Components: Testsuite
>            Reporter: Sebb
>            Assignee: Michael Elman
>             Fix For: 0.1
>
>         Attachments: org.apache.wink.example.locking.LockingTest-output.txt, org.apache.wink.example.locking.LockingTest.txt, TEST-org.apache.wink.example.locking.LockingTest.xml
>
>
> -------------------------------------------------------
>  T E S T S
> -------------------------------------------------------
> Running org.apache.wink.example.locking.LockingTest
> Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 1.578 sec <<< FAILURE!
> Results :
> Failed tests:
>   testLockingExample(org.apache.wink.example.locking.LockingTest)
> Tests run: 1, Failures: 1, Errors: 0, Skipped: 0
> Surefire files to follow

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Assigned: (WINK-127) Test failure with Wink 0.1 tag

Posted by "Michael Elman (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WINK-127?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Michael Elman reassigned WINK-127:
----------------------------------

    Assignee: Bryant Luk  (was: Michael Elman)

Reassigning, since Bryant has actually fixed this one.

> Test failure with Wink 0.1 tag
> ------------------------------
>
>                 Key: WINK-127
>                 URL: https://issues.apache.org/jira/browse/WINK-127
>             Project: Wink
>          Issue Type: Bug
>          Components: Testsuite
>            Reporter: Sebb
>            Assignee: Bryant Luk
>             Fix For: 0.1
>
>         Attachments: org.apache.wink.example.locking.LockingTest-output.txt, org.apache.wink.example.locking.LockingTest.txt, TEST-org.apache.wink.example.locking.LockingTest.xml, WINK-127.patch
>
>
> -------------------------------------------------------
>  T E S T S
> -------------------------------------------------------
> Running org.apache.wink.example.locking.LockingTest
> Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 1.578 sec <<< FAILURE!
> Results :
> Failed tests:
>   testLockingExample(org.apache.wink.example.locking.LockingTest)
> Tests run: 1, Failures: 1, Errors: 0, Skipped: 0
> Surefire files to follow

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (WINK-127) Test failure with Wink 0.1 tag

Posted by "Bryant Luk (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WINK-127?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Bryant Luk resolved WINK-127.
-----------------------------

    Resolution: Fixed

I've applied the patch here, but it would be good to know if other environments no longer see this test issue.

> Test failure with Wink 0.1 tag
> ------------------------------
>
>                 Key: WINK-127
>                 URL: https://issues.apache.org/jira/browse/WINK-127
>             Project: Wink
>          Issue Type: Bug
>          Components: Testsuite
>            Reporter: Sebb
>            Assignee: Michael Elman
>             Fix For: 0.1
>
>         Attachments: org.apache.wink.example.locking.LockingTest-output.txt, org.apache.wink.example.locking.LockingTest.txt, TEST-org.apache.wink.example.locking.LockingTest.xml, WINK-127.patch
>
>
> -------------------------------------------------------
>  T E S T S
> -------------------------------------------------------
> Running org.apache.wink.example.locking.LockingTest
> Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 1.578 sec <<< FAILURE!
> Results :
> Failed tests:
>   testLockingExample(org.apache.wink.example.locking.LockingTest)
> Tests run: 1, Failures: 1, Errors: 0, Skipped: 0
> Surefire files to follow

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (WINK-127) Test failure with Wink 0.1 tag

Posted by "Michael Elman (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WINK-127?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12741451#action_12741451 ] 

Michael Elman commented on WINK-127:
------------------------------------

I could reproduce the error while changing the daylight time flag in windows...

Anyway, I think that this issue is not a showstopper for a release, since it's a testing problem, which occurs on specific environments.
It good to understand when exactly it happens. I'm still failing to understand the exact scenario.

> Test failure with Wink 0.1 tag
> ------------------------------
>
>                 Key: WINK-127
>                 URL: https://issues.apache.org/jira/browse/WINK-127
>             Project: Wink
>          Issue Type: Bug
>          Components: Testsuite
>            Reporter: Sebb
>            Assignee: Michael Elman
>             Fix For: 0.1
>
>         Attachments: org.apache.wink.example.locking.LockingTest-output.txt, org.apache.wink.example.locking.LockingTest.txt, TEST-org.apache.wink.example.locking.LockingTest.xml
>
>
> -------------------------------------------------------
>  T E S T S
> -------------------------------------------------------
> Running org.apache.wink.example.locking.LockingTest
> Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 1.578 sec <<< FAILURE!
> Results :
> Failed tests:
>   testLockingExample(org.apache.wink.example.locking.LockingTest)
> Tests run: 1, Failures: 1, Errors: 0, Skipped: 0
> Surefire files to follow

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Reopened: (WINK-127) Test failure with Wink 0.1 tag

Posted by "Bryant Luk (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WINK-127?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Bryant Luk reopened WINK-127:
-----------------------------


Re-opening just to fix it for all users.

> Test failure with Wink 0.1 tag
> ------------------------------
>
>                 Key: WINK-127
>                 URL: https://issues.apache.org/jira/browse/WINK-127
>             Project: Wink
>          Issue Type: Bug
>          Components: Testsuite
>            Reporter: Sebb
>            Assignee: Michael Elman
>             Fix For: 0.1
>
>         Attachments: org.apache.wink.example.locking.LockingTest-output.txt, org.apache.wink.example.locking.LockingTest.txt, TEST-org.apache.wink.example.locking.LockingTest.xml, WINK-127.patch
>
>
> -------------------------------------------------------
>  T E S T S
> -------------------------------------------------------
> Running org.apache.wink.example.locking.LockingTest
> Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 1.578 sec <<< FAILURE!
> Results :
> Failed tests:
>   testLockingExample(org.apache.wink.example.locking.LockingTest)
> Tests run: 1, Failures: 1, Errors: 0, Skipped: 0
> Surefire files to follow

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (WINK-127) Test failure with Wink 0.1 tag

Posted by "Bryant Luk (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WINK-127?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12741398#action_12741398 ] 

Bryant Luk commented on WINK-127:
---------------------------------

Using my Windows machine, I get a test failure in Preconditions test now.

I think the code should be changed from:

if (TimeZone.getDefault().useDaylightTime()) {

to:

if (TimeZone.getDefault().inDaylightTime(test.toGregorianCalendar().getTime())) {

but I don't know if this fixes the original problem.  I tried changing my local time zone a few times but I couldn't reproduce the original error.

> Test failure with Wink 0.1 tag
> ------------------------------
>
>                 Key: WINK-127
>                 URL: https://issues.apache.org/jira/browse/WINK-127
>             Project: Wink
>          Issue Type: Bug
>          Components: Testsuite
>            Reporter: Sebb
>            Assignee: Michael Elman
>             Fix For: 0.1
>
>         Attachments: org.apache.wink.example.locking.LockingTest-output.txt, org.apache.wink.example.locking.LockingTest.txt, TEST-org.apache.wink.example.locking.LockingTest.xml
>
>
> -------------------------------------------------------
>  T E S T S
> -------------------------------------------------------
> Running org.apache.wink.example.locking.LockingTest
> Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 1.578 sec <<< FAILURE!
> Results :
> Failed tests:
>   testLockingExample(org.apache.wink.example.locking.LockingTest)
> Tests run: 1, Failures: 1, Errors: 0, Skipped: 0
> Surefire files to follow

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (WINK-127) Test failure with Wink 0.1 tag

Posted by "Bryant Luk (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WINK-127?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Bryant Luk updated WINK-127:
----------------------------

    Attachment: WINK-127.patch

Possible fix.

> Test failure with Wink 0.1 tag
> ------------------------------
>
>                 Key: WINK-127
>                 URL: https://issues.apache.org/jira/browse/WINK-127
>             Project: Wink
>          Issue Type: Bug
>          Components: Testsuite
>            Reporter: Sebb
>            Assignee: Michael Elman
>             Fix For: 0.1
>
>         Attachments: org.apache.wink.example.locking.LockingTest-output.txt, org.apache.wink.example.locking.LockingTest.txt, TEST-org.apache.wink.example.locking.LockingTest.xml, WINK-127.patch
>
>
> -------------------------------------------------------
>  T E S T S
> -------------------------------------------------------
> Running org.apache.wink.example.locking.LockingTest
> Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 1.578 sec <<< FAILURE!
> Results :
> Failed tests:
>   testLockingExample(org.apache.wink.example.locking.LockingTest)
> Tests run: 1, Failures: 1, Errors: 0, Skipped: 0
> Surefire files to follow

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (WINK-127) Test failure with Wink 0.1 tag

Posted by "Hudson (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WINK-127?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12742885#action_12742885 ] 

Hudson commented on WINK-127:
-----------------------------

Integrated in Wink-Trunk-JDK1.5 #99 (See [http://hudson.zones.apache.org/hudson/job/Wink-Trunk-JDK1.5/99/])
    Only adjust time if TimeZone is GMT

See []


> Test failure with Wink 0.1 tag
> ------------------------------
>
>                 Key: WINK-127
>                 URL: https://issues.apache.org/jira/browse/WINK-127
>             Project: Wink
>          Issue Type: Bug
>          Components: Testsuite
>            Reporter: Sebb
>            Assignee: Michael Elman
>             Fix For: 0.1
>
>         Attachments: org.apache.wink.example.locking.LockingTest-output.txt, org.apache.wink.example.locking.LockingTest.txt, TEST-org.apache.wink.example.locking.LockingTest.xml, WINK-127.patch
>
>
> -------------------------------------------------------
>  T E S T S
> -------------------------------------------------------
> Running org.apache.wink.example.locking.LockingTest
> Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 1.578 sec <<< FAILURE!
> Results :
> Failed tests:
>   testLockingExample(org.apache.wink.example.locking.LockingTest)
> Tests run: 1, Failures: 1, Errors: 0, Skipped: 0
> Surefire files to follow

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.