Thread: [Taskforest-discuss] `make test` failures?
Brought to you by:
enoor
From: Steve H. <st...@id...> - 2010-02-02 07:23:54
|
Hi, I just downloaded Task Forest 1.33 with high hopes and great expectations--I've been looking for a simple yet powerful text-file-based job scheduler of this sort for a long time. I ran `perl Makefile.PL`, `make`, and `make test` but many of the unit test fail and t/025_Midnight_Ready hangs after printing 1/19. Is this expected? Did I miss a setup or configuration step? I'm running perl v5.10.0 on Linux version 2.6.31-17-generic (Ubuntu 9.10). `make test` output included below. Thanks, steve PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t t/001_DateTime.........................ok t/002_TimeDependency...................ok t/003_Options..........................ok t/004_LogDir...........................ok t/005_Job..............................ok t/0065_StringHandle....................ok 1/16 Ignore this line: Hello, world! Back to stderr - Ignore this line Ignore this line: This is the first line Ignore this line: This is the second line t/0065_StringHandle....................ok t/006_Family...........................ok 1/74 # Failed test ' J1 is now ready' t/006_Family...........................NOK 62/74# at t/006_Family.t line 136. # got: 'Waiting' # expected: 'Ready' # Failed test ' J5 is now ready' # at t/006_Family.t line 136. t/006_Family...........................NOK 63/74# got: 'Waiting' # expected: 'Ready' # Failed test ' J10 is now ready' # at t/006_Family.t line 136. # got: 'Waiting' # expected: 'Ready' # Failed test ' J2 is has succeeded' # at t/006_Family.t line 142. # got: 'Ready' # expected: 'Success' # Failed test ' J3 is has succeeded' # at t/006_Family.t line 142. # got: 'Ready' # expected: 'Success' # Failed test ' J6 is has succeeded' # at t/006_Family.t line 142. # got: 'Ready' # expected: 'Success' # Failed test ' J7 is has succeeded' # at t/006_Family.t line 142. # got: 'Ready' # expected: 'Success' # Failed test ' J9 is has succeeded' # at t/006_Family.t line 142. # got: 'Ready' # expected: 'Success' # Looks like you failed 8 tests of 74. t/006_Family...........................dubious Test returned status 8 (wstat 2048, 0x800) DIED. FAILED tests 62-64, 70-74 Failed 8/74 tests, 89.19% okay t/007_TaskForest.......................ok 1/7# Haven't found job log files on try 1 of 10. Sleeping another 2 seconds # Haven't found job log files on try 2 of 10. Sleeping another 2 seconds # Haven't found job log files on try 3 of 10. Sleeping another 2 seconds # Haven't found job log files on try 4 of 10. Sleeping another 2 seconds # Haven't found job log files on try 5 of 10. Sleeping another 2 seconds # Haven't found job log files on try 6 of 10. Sleeping another 2 seconds # Haven't found job log files on try 7 of 10. Sleeping another 2 seconds # Haven't found job log files on try 8 of 10. Sleeping another 2 seconds # Haven't found job log files on try 9 of 10. Sleeping another 2 seconds # Haven't found job log files on try 10 of 10. Sleeping another 2 seconds # Failed test ' After first cycle, J2 ran successfully' # at t/007_TaskForest.t line 65. # Try to increase the value of $SLEEP_TIME in t/007_TaskForest.t t/007_TaskForest.......................NOK 3/7 # Failed test ' After first cycle, J3 ran successfully' # at t/007_TaskForest.t line 66. t/007_TaskForest.......................NOK 4/7# Try to increase the value of $SLEEP_TIME in t/007_TaskForest.t # Failed test ' After first cycle, J6 ran successfully' # at t/007_TaskForest.t line 67. t/007_TaskForest.......................NOK 5/7# Try to increase the value of $SLEEP_TIME in t/007_TaskForest.t # Failed test ' After first cycle, J7 ran successfully' # at t/007_TaskForest.t line 68. t/007_TaskForest.......................NOK 6/7# Try to increase the value of $SLEEP_TIME in t/007_TaskForest.t # Failed test ' After first cycle, J9 ran successfully' # at t/007_TaskForest.t line 69. t/007_TaskForest.......................NOK 7/7# Try to increase the value of $SLEEP_TIME in t/007_TaskForest.t # Looks like you failed 5 tests of 7. t/007_TaskForest.......................dubious Test returned status 5 (wstat 1280, 0x500) DIED. FAILED tests 3-7 Failed 5/7 tests, 28.57% okay t/008_Repeat...........................ok t/009_Display..........................ok t/010_LongRunningJobs..................ok 1/6 # Failed test 'Got Line LONG_RUNNING::JLongRunning Ready - America/Chicago 00:00 --:-- --:--' # at /var/tmp/TaskForest-1.33/blib/lib/TaskForest/Test.pm line 28. # 'LONG_RUNNING::JLongRunning Ready - America/Chicago 00:00 --:-- --:--' # doesn't match '(?-xism:LONG_RUNNING::JLongRunning +Running +- +America/Chicago +00:00 +\d\d:\d\d +--:--)' # Looks like you failed 1 test of 6. t/010_LongRunningJobs..................dubious Test returned status 1 (wstat 256, 0x100) DIED. FAILED test 6 Failed 1/6 tests, 83.33% okay t/011_NotEnoughTime....................ok t/012_Collapse.........................ok t/013_Rerun............................ok t/014_Mark.............................ok t/015_Syntax...........................ok 1/18Odd number of elements in hash assignment at /var/tmp/TaskForest-1.33/blib/lib/TaskForest/Family.pm line 1155. Use of uninitialized value $args in list assignment at /var/tmp/TaskForest-1.33/blib/lib/TaskForest/Family.pm line 1155. t/015_Syntax...........................ok t/016_Cascade..........................ok t/017_IgnoreRegex......................ok 1/12# Haven't found job log files on try 1 of 10. Sleeping another 2 seconds # Haven't found job log files on try 2 of 10. Sleeping another 2 seconds # Haven't found job log files on try 3 of 10. Sleeping another 2 seconds # Haven't found job log files on try 4 of 10. Sleeping another 2 seconds # Haven't found job log files on try 5 of 10. Sleeping another 2 seconds # Haven't found job log files on try 6 of 10. Sleeping another 2 seconds # Haven't found job log files on try 7 of 10. Sleeping another 2 seconds # Haven't found job log files on try 8 of 10. Sleeping another 2 seconds # Haven't found job log files on try 9 of 10. Sleeping another 2 seconds # Haven't found job log files on try 10 of 10. Sleeping another 2 seconds # Failed test ' After first cycle, J1 ran successfully' # at t/017_IgnoreRegex.t line 67. # Try to increase the value of $SLEEP_TIME in t/017_IgnoreRegex.t t/017_IgnoreRegex......................NOK 3/12 # Failed test ' After first cycle, J2 ran successfully' # at t/017_IgnoreRegex.t line 68. t/017_IgnoreRegex......................NOK 4/12# Try to increase the value of $SLEEP_TIME in t/017_IgnoreRegex.t t/017_IgnoreRegex......................ok 5/12# Haven't found job log files on try 1 of 10. Sleeping another 2 seconds # Haven't found job log files on try 2 of 10. Sleeping another 2 seconds # Haven't found job log files on try 3 of 10. Sleeping another 2 seconds # Haven't found job log files on try 4 of 10. Sleeping another 2 seconds # Haven't found job log files on try 5 of 10. Sleeping another 2 seconds # Haven't found job log files on try 6 of 10. Sleeping another 2 seconds # Haven't found job log files on try 7 of 10. Sleeping another 2 seconds # Haven't found job log files on try 8 of 10. Sleeping another 2 seconds # Haven't found job log files on try 9 of 10. Sleeping another 2 seconds # Haven't found job log files on try 10 of 10. Sleeping another 2 seconds # Failed test ' After second cycle, J1 ran successfully' # at t/017_IgnoreRegex.t line 106. # Try to increase the value of $SLEEP_TIME in t/017_IgnoreRegex.t t/017_IgnoreRegex......................ok 9/12# Looks like you failed 3 tests of 12. t/017_IgnoreRegex......................dubious Test returned status 3 (wstat 768, 0x300) DIED. FAILED tests 3-4, 8 Failed 3/12 tests, 75.00% okay t/018TaskForestDaemon..................# # ********************************************************************** # # No web server was found at port 1111. Skipping the rest of # these tests. If you want, you can start the web server and # rerun 'make test'. # # To start the web server enter: # # perl -T -I lib ./blib/script/taskforestd --config_file=./taskforestd.test.cfg # # For more help, see http://www.taskforest.com # # ********************************************************************** # t/018TaskForestDaemon..................ok 362/362 skipped: various reasons t/019_FamilyRemoval....................ok t/020_Run_With_Log.....................ok 1/7# Haven't found job log files on try 1 of 10. Sleeping another 2 seconds # Haven't found job log files on try 2 of 10. Sleeping another 2 seconds # Haven't found job log files on try 3 of 10. Sleeping another 2 seconds # Haven't found job log files on try 4 of 10. Sleeping another 2 seconds # Haven't found job log files on try 5 of 10. Sleeping another 2 seconds # Haven't found job log files on try 6 of 10. Sleeping another 2 seconds # Haven't found job log files on try 7 of 10. Sleeping another 2 seconds # Haven't found job log files on try 8 of 10. Sleeping another 2 seconds # Haven't found job log files on try 9 of 10. Sleeping another 2 seconds # Haven't found job log files on try 10 of 10. Sleeping another 2 seconds # Failed test ' After first cycle, J2 ran successfully' # at t/020_Run_With_Log.t line 65. # Try to increase the value of $SLEEP_TIME in t/007_TaskForest.t # Failed test ' After first cycle, J3 ran successfully' # at t/020_Run_With_Log.t line 66. # Try to increase the value of $SLEEP_TIME in t/007_TaskForest.t # Failed test ' After first cycle, J6 ran successfully' # at t/020_Run_With_Log.t line 67. # Try to increase the value of $SLEEP_TIME in t/007_TaskForest.t # Failed test ' After first cycle, J7 ran successfully' # at t/020_Run_With_Log.t line 68. # Try to increase the value of $SLEEP_TIME in t/007_TaskForest.t # Failed test ' After first cycle, J9 ran successfully' # at t/020_Run_With_Log.t line 69. # Try to increase the value of $SLEEP_TIME in t/007_TaskForest.t # Looks like you failed 5 tests of 7. t/020_Run_With_Log.....................dubious Test returned status 5 (wstat 1280, 0x500) DIED. FAILED tests 3-7 Failed 5/7 tests, 28.57% okay t/021_Release..........................ok t/022_Debug............................ok 1/7# Haven't found job log files on try 1 of 10. Sleeping another 2 seconds # Haven't found job log files on try 2 of 10. Sleeping another 2 seconds # Haven't found job log files on try 3 of 10. Sleeping another 2 seconds # Haven't found job log files on try 4 of 10. Sleeping another 2 seconds # Haven't found job log files on try 5 of 10. Sleeping another 2 seconds # Haven't found job log files on try 6 of 10. Sleeping another 2 seconds # Haven't found job log files on try 7 of 10. Sleeping another 2 seconds # Haven't found job log files on try 8 of 10. Sleeping another 2 seconds # Haven't found job log files on try 9 of 10. Sleeping another 2 seconds # Haven't found job log files on try 10 of 10. Sleeping another 2 seconds # Failed test ' After first cycle, J2 ran successfully' # at t/022_Debug.t line 65. # Try to increase the value of $SLEEP_TIME in t/007_TaskForest.t t/022_Debug............................NOK 3/7 # Failed test ' After first cycle, J3 ran successfully' # at t/022_Debug.t line 66. # Try to increase the value of $SLEEP_TIME in t/007_TaskForest.t t/022_Debug............................NOK 4/7 # Failed test ' After first cycle, J6 ran successfully' # at t/022_Debug.t line 67. t/022_Debug............................NOK 5/7# Try to increase the value of $SLEEP_TIME in t/007_TaskForest.t # Failed test ' After first cycle, J7 ran successfully' # at t/022_Debug.t line 68. t/022_Debug............................NOK 6/7# Try to increase the value of $SLEEP_TIME in t/007_TaskForest.t # Failed test ' After first cycle, J9 ran successfully' # at t/022_Debug.t line 69. t/022_Debug............................NOK 7/7# Try to increase the value of $SLEEP_TIME in t/007_TaskForest.t # Looks like you failed 5 tests of 7. t/022_Debug............................dubious Test returned status 5 (wstat 1280, 0x500) DIED. FAILED tests 3-7 Failed 5/7 tests, 28.57% okay t/023_Tokens...........................ok 1/5# Loop # 5: missing the following files: # /var/tmp/TaskForest-1.33/t/logs/20100201/TOKENS.J1.0 # /var/tmp/TaskForest-1.33/t/logs/20100201/TOKENS.J3.0 # /var/tmp/TaskForest-1.33/t/logs/20100201/TOKENS.J4.0 # /var/tmp/TaskForest-1.33/t/logs/20100201/TOKENS.J7.0 # /var/tmp/TaskForest-1.33/t/logs/20100201/TOKENS.J8.0 # Loop # 10: missing the following files: # /var/tmp/TaskForest-1.33/t/logs/20100201/TOKENS.J1.0 # /var/tmp/TaskForest-1.33/t/logs/20100201/TOKENS.J3.0 # /var/tmp/TaskForest-1.33/t/logs/20100201/TOKENS.J4.0 # /var/tmp/TaskForest-1.33/t/logs/20100201/TOKENS.J7.0 # /var/tmp/TaskForest-1.33/t/logs/20100201/TOKENS.J8.0 # Failed test 'After first cycle, jobs J1, J3, J4, J7, J8 ran successfully' # at t/023_Tokens.t line 51. t/023_Tokens...........................NOK 3/5# Loop # 5: missing the following files: # /var/tmp/TaskForest-1.33/t/logs/20100201/TOKENS.J2.0 # /var/tmp/TaskForest-1.33/t/logs/20100201/TOKENS.J5.0 # /var/tmp/TaskForest-1.33/t/logs/20100201/TOKENS.J9.0 # Loop # 10: missing the following files: # /var/tmp/TaskForest-1.33/t/logs/20100201/TOKENS.J2.0 # /var/tmp/TaskForest-1.33/t/logs/20100201/TOKENS.J5.0 # /var/tmp/TaskForest-1.33/t/logs/20100201/TOKENS.J9.0 # Failed test 'After second cycle, jobs J2, J5 and J9 ran successfully' # at t/023_Tokens.t line 62. t/023_Tokens...........................NOK 4/5# Loop # 5: missing the following files: # /var/tmp/TaskForest-1.33/t/logs/20100201/TOKENS.J6.0 # /var/tmp/TaskForest-1.33/t/logs/20100201/TOKENS.J10.0 # /var/tmp/TaskForest-1.33/t/logs/20100201/TOKENS.J11.0 # Loop # 10: missing the following files: # /var/tmp/TaskForest-1.33/t/logs/20100201/TOKENS.J6.0 # /var/tmp/TaskForest-1.33/t/logs/20100201/TOKENS.J10.0 # /var/tmp/TaskForest-1.33/t/logs/20100201/TOKENS.J11.0 # Failed test 'After third cycle, jobs J6, J10 and J11 ran successully' # at t/023_Tokens.t line 71. t/023_Tokens...........................NOK 5/5# Looks like you failed 3 tests of 5. t/023_Tokens...........................dubious Test returned status 3 (wstat 768, 0x300) DIED. FAILED tests 3-5 Failed 3/5 tests, 40.00% okay t/024_Midnight.........................ok t/025_Midnight_Ready...................ok 1/19 |
From: Aijaz A. <en...@us...> - 2010-02-02 14:17:45
|
Steve: Thanks for your detailed email. There may be a problem with the test case or something unexpected in your setup. I'll try to duplicate this on my end. Could you please answer these questions for me? It might help identify the problem. What time zone is your computer set at, and at what time were you running these tests? It really shouldn't matter, but it may help identify the problem. Were you attempting to install via CPAN or did you download the package and and manually type in perl Makefile.PL, make and make test? Did the linux user you were logged in as have write permission to the current directory you were in? Thanks, Aijaz. On Tue, Feb 2, 2010 at 1:23 AM, Steve Hulet <st...@id...> wrote: > Hi, > > I just downloaded Task Forest 1.33 with high hopes and great > expectations--I've been looking for a simple yet powerful > text-file-based job scheduler of this sort for a long time. > > I ran `perl Makefile.PL`, `make`, and `make test` but many of the unit > test fail and t/025_Midnight_Ready hangs after printing 1/19. Is this > expected? Did I miss a setup or configuration step? > > I'm running perl v5.10.0 on Linux version 2.6.31-17-generic (Ubuntu > 9.10). `make test` output included below. > > Thanks, > steve > > <snip> |
From: Steve H. <st...@id...> - 2010-02-02 16:55:51
|
Aijaz, Thanks for the prompt reply. I think you asked the right questions. Here is what I have learned this morning. First the easy questions: I saw the exact same set of failures last night installing both through CPAN and directly from the tarball. Yes, all of the relevant directories are writeable. Now for the news: running the exact same commands this morning (`perl Makefile.PL`, `make`, & `make test`) does *not* result in the same failures experienced last night. That is, all of the tests pass, *until* t/025_Midnight_Ready, which still hangs. When I was installing TaskForest last night it was between 10pm and midnight, PST. My system time zone was set to 'America/Los_Angeles'. If I change my system time zone to 'America/Chicago' then t/025_Midnight_Ready does not hang, and all test pass with the exception of t/018TaskForestDaemon, which seems to have errors either way (after starting the daemon with the suggested `perl -T -I lib ./blib/script/taskforestd --config_file=./taskforestd.test.cfg`). Interestingly, between 10pm and midnight PST and CST are on different days. Could this have caused the other `make test` failures? Looking inside t/families/MIDNIGHT I see: start => '00:00', tz=>'GMT', days => 'Mon,Tue,Wed,Thu,Fri,Sat,Sun' J_005( start=>'04:59') # 11:59pm Chicago time April 19 2009 Based on the comment this test appears to make the assumption that 4:59 GMT is 11:59pm Chicago time. While this was true April 19, 2009 it is not true today due to Daylight Savings Time not being in effect. 2009-04-09: http://timeanddate.com/worldclock/converted.html?month=4&day=19&year=2009&hour=4&min=55&sec=0&p1=0&p2=64 2010-02-02: http://timeanddate.com/worldclock/converted.html?month=2&day=2&year=2010&hour=4&min=55&sec=0&p1=0&p2=64 Could this have caused t/025_Midnight_Ready to hang? Thanks, steve On Tue, Feb 2, 2010 at 6:17 AM, Aijaz Ansari <en...@us...> wrote: > Steve: > > Thanks for your detailed email. There may be a problem with the test case > or something unexpected in your setup. I'll try to duplicate this on my > end. Could you please answer these questions for me? It might help > identify the problem. > > What time zone is your computer set at, and at what time were you running > these tests? It really shouldn't matter, but it may help identify the > problem. > > Were you attempting to install via CPAN or did you download the package and > and manually type in perl Makefile.PL, make and make test? > > Did the linux user you were logged in as have write permission to the > current directory you were in? > > Thanks, > > Aijaz. > > > On Tue, Feb 2, 2010 at 1:23 AM, Steve Hulet <st...@id...> wrote: >> >> Hi, >> >> I just downloaded Task Forest 1.33 with high hopes and great >> expectations--I've been looking for a simple yet powerful >> text-file-based job scheduler of this sort for a long time. >> >> I ran `perl Makefile.PL`, `make`, and `make test` but many of the unit >> test fail and t/025_Midnight_Ready hangs after printing 1/19. Is this >> expected? Did I miss a setup or configuration step? >> >> I'm running perl v5.10.0 on Linux version 2.6.31-17-generic (Ubuntu >> 9.10). `make test` output included below. >> >> Thanks, >> steve >> > > <snip> |
From: Aijaz A. <en...@us...> - 2010-02-02 17:19:35
|
Excellent detective work. Thanks, Steve. My comments are interspersed below. On Tue, Feb 2, 2010 at 10:55 AM, Steve Hulet <st...@id...> wrote: ... > > Now for the news: running the exact same commands this morning (`perl > Makefile.PL`, `make`, & `make test`) does *not* result in the same > failures experienced last night. That is, all of the tests pass, > *until* t/025_Midnight_Ready, which still hangs. > I think the test case has a bug. The code uses its own function (called LocalTime, I think) that returns the current time. That way during testing I can change the 'current time' so that I can test how the program would behave in the future. I think t/025_Midnight_Ready may not be using that function, and therefore must be confused about what day it is. I can test that out pretty easily. > > Interestingly, between 10pm and midnight PST and CST are on different > days. Could this have caused the other `make test` failures? > Yes. I'm pretty sure that's it. I think (hope) it's just a bug in the test code and not in the actual program itself. I'll verify that over the next day or two. It will take me a few days to get the new release out officially, but I'll let you know what I find as I go along. > > Looking inside t/families/MIDNIGHT I see: > > > start => '00:00', tz=>'GMT', days => 'Mon,Tue,Wed,Thu,Fri,Sat,Sun' > > J_005( start=>'04:59') # 11:59pm Chicago time April 19 2009 > > > Based on the comment this test appears to make the assumption that > 4:59 GMT is 11:59pm Chicago time. While this was true April 19, 2009 > it is not true today due to Daylight Savings Time not being in effect. > > 2009-04-09: > http://timeanddate.com/worldclock/converted.html?month=4&day=19&year=2009&hour=4&min=55&sec=0&p1=0&p2=64 > 2010-02-02<http://timeanddate.com/worldclock/converted.html?month=4&day=19&year=2009&hour=4&min=55&sec=0&p1=0&p2=64%0A2010-02-02>: > > http://timeanddate.com/worldclock/converted.html?month=2&day=2&year=2010&hour=4&min=55&sec=0&p1=0&p2=64 > > Could this have caused t/025_Midnight_Ready to hang? > I think this is ok. I don't have the code in front of me, but if I remember correctly, the test case sets the 'current time' to some time on 4/19/2009 (Chicago time). I'll double check this. You've given me all the information I need to be able to duplicate this at home and determine whether there's a bug in the test program or in the taskforest code itself, or both. As for the failure of the taskforestd daemon test, that's probably not related, but I'll gladly help you get that running once these other issues are resolved. Thanks again, Aijaz. > > Thanks, > steve > > > > On Tue, Feb 2, 2010 at 6:17 AM, Aijaz Ansari > <en...@us...> wrote: > > Steve: > > > > Thanks for your detailed email. There may be a problem with the test > case > > or something unexpected in your setup. I'll try to duplicate this on my > > end. Could you please answer these questions for me? It might help > > identify the problem. > > > > What time zone is your computer set at, and at what time were you running > > these tests? It really shouldn't matter, but it may help identify the > > problem. > > > > Were you attempting to install via CPAN or did you download the package > and > > and manually type in perl Makefile.PL, make and make test? > > > > Did the linux user you were logged in as have write permission to the > > current directory you were in? > > > > Thanks, > > > > Aijaz. > > > > > > On Tue, Feb 2, 2010 at 1:23 AM, Steve Hulet <st...@id...> > wrote: > >> > >> Hi, > >> > >> I just downloaded Task Forest 1.33 with high hopes and great > >> expectations--I've been looking for a simple yet powerful > >> text-file-based job scheduler of this sort for a long time. > >> > >> I ran `perl Makefile.PL`, `make`, and `make test` but many of the unit > >> test fail and t/025_Midnight_Ready hangs after printing 1/19. Is this > >> expected? Did I miss a setup or configuration step? > >> > >> I'm running perl v5.10.0 on Linux version 2.6.31-17-generic (Ubuntu > >> 9.10). `make test` output included below. > >> > >> Thanks, > >> steve > >> > > > > <snip> > |
From: Vitor V. <ven...@gm...> - 2010-02-02 17:30:21
|
Hello, I had the some problem, on the same platform. I never resolved it. On Tue, Feb 2, 2010 at 7:23 AM, Steve Hulet <st...@id...> wrote: > Hi, > > I just downloaded Task Forest 1.33 with high hopes and great > expectations--I've been looking for a simple yet powerful > text-file-based job scheduler of this sort for a long time. > > I ran `perl Makefile.PL`, `make`, and `make test` but many of the unit > test fail and t/025_Midnight_Ready hangs after printing 1/19. Is this > expected? Did I miss a setup or configuration step? > > I'm running perl v5.10.0 on Linux version 2.6.31-17-generic (Ubuntu > 9.10). `make test` output included below. > > Thanks, > steve > > > > > > PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" > "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t > t/001_DateTime.........................ok > t/002_TimeDependency...................ok > t/003_Options..........................ok > t/004_LogDir...........................ok > t/005_Job..............................ok > t/0065_StringHandle....................ok 1/16 > Ignore this line: Hello, world! > > Back to stderr - Ignore this line > Ignore this line: This is the first line > Ignore this line: This is the second line > t/0065_StringHandle....................ok > t/006_Family...........................ok 1/74 > # Failed test ' J1 is now ready' > t/006_Family...........................NOK 62/74# at t/006_Family.t line > 136. > # got: 'Waiting' > # expected: 'Ready' > > # Failed test ' J5 is now ready' > # at t/006_Family.t line 136. > t/006_Family...........................NOK 63/74# got: 'Waiting' > # expected: 'Ready' > > # Failed test ' J10 is now ready' > # at t/006_Family.t line 136. > # got: 'Waiting' > # expected: 'Ready' > > # Failed test ' J2 is has succeeded' > # at t/006_Family.t line 142. > # got: 'Ready' > # expected: 'Success' > > # Failed test ' J3 is has succeeded' > # at t/006_Family.t line 142. > # got: 'Ready' > # expected: 'Success' > > # Failed test ' J6 is has succeeded' > # at t/006_Family.t line 142. > # got: 'Ready' > # expected: 'Success' > > # Failed test ' J7 is has succeeded' > # at t/006_Family.t line 142. > # got: 'Ready' > # expected: 'Success' > > # Failed test ' J9 is has succeeded' > # at t/006_Family.t line 142. > # got: 'Ready' > # expected: 'Success' > # Looks like you failed 8 tests of 74. > t/006_Family...........................dubious > Test returned status 8 (wstat 2048, 0x800) > DIED. FAILED tests 62-64, 70-74 > Failed 8/74 tests, 89.19% okay > t/007_TaskForest.......................ok 1/7# Haven't found job log > files on try 1 of 10. Sleeping another 2 seconds > # Haven't found job log files on try 2 of 10. Sleeping another 2 seconds > # Haven't found job log files on try 3 of 10. Sleeping another 2 seconds > # Haven't found job log files on try 4 of 10. Sleeping another 2 seconds > # Haven't found job log files on try 5 of 10. Sleeping another 2 seconds > # Haven't found job log files on try 6 of 10. Sleeping another 2 seconds > # Haven't found job log files on try 7 of 10. Sleeping another 2 seconds > # Haven't found job log files on try 8 of 10. Sleeping another 2 seconds > # Haven't found job log files on try 9 of 10. Sleeping another 2 seconds > # Haven't found job log files on try 10 of 10. Sleeping another 2 seconds > > # Failed test ' After first cycle, J2 ran successfully' > # at t/007_TaskForest.t line 65. > # Try to increase the value of $SLEEP_TIME in t/007_TaskForest.t > t/007_TaskForest.......................NOK 3/7 > # Failed test ' After first cycle, J3 ran successfully' > # at t/007_TaskForest.t line 66. > t/007_TaskForest.......................NOK 4/7# Try to increase the > value of $SLEEP_TIME in t/007_TaskForest.t > > # Failed test ' After first cycle, J6 ran successfully' > # at t/007_TaskForest.t line 67. > t/007_TaskForest.......................NOK 5/7# Try to increase the > value of $SLEEP_TIME in t/007_TaskForest.t > > # Failed test ' After first cycle, J7 ran successfully' > # at t/007_TaskForest.t line 68. > t/007_TaskForest.......................NOK 6/7# Try to increase the > value of $SLEEP_TIME in t/007_TaskForest.t > > # Failed test ' After first cycle, J9 ran successfully' > # at t/007_TaskForest.t line 69. > t/007_TaskForest.......................NOK 7/7# Try to increase the > value of $SLEEP_TIME in t/007_TaskForest.t > # Looks like you failed 5 tests of 7. > t/007_TaskForest.......................dubious > Test returned status 5 (wstat 1280, 0x500) > DIED. FAILED tests 3-7 > Failed 5/7 tests, 28.57% okay > t/008_Repeat...........................ok > t/009_Display..........................ok > t/010_LongRunningJobs..................ok 1/6 > # Failed test 'Got Line LONG_RUNNING::JLongRunning Ready > - America/Chicago 00:00 --:-- --:--' > # at /var/tmp/TaskForest-1.33/blib/lib/TaskForest/Test.pm line 28. > # 'LONG_RUNNING::JLongRunning Ready - > America/Chicago 00:00 --:-- --:--' > # doesn't match '(?-xism:LONG_RUNNING::JLongRunning +Running +- > +America/Chicago +00:00 +\d\d:\d\d +--:--)' > # Looks like you failed 1 test of 6. > t/010_LongRunningJobs..................dubious > Test returned status 1 (wstat 256, 0x100) > DIED. FAILED test 6 > Failed 1/6 tests, 83.33% okay > t/011_NotEnoughTime....................ok > t/012_Collapse.........................ok > t/013_Rerun............................ok > t/014_Mark.............................ok > t/015_Syntax...........................ok 1/18Odd number of elements > in hash assignment at > /var/tmp/TaskForest-1.33/blib/lib/TaskForest/Family.pm line 1155. > Use of uninitialized value $args in list assignment at > /var/tmp/TaskForest-1.33/blib/lib/TaskForest/Family.pm line 1155. > t/015_Syntax...........................ok > t/016_Cascade..........................ok > t/017_IgnoreRegex......................ok 1/12# Haven't found job log > files on try 1 of 10. Sleeping another 2 seconds > # Haven't found job log files on try 2 of 10. Sleeping another 2 seconds > # Haven't found job log files on try 3 of 10. Sleeping another 2 seconds > # Haven't found job log files on try 4 of 10. Sleeping another 2 seconds > # Haven't found job log files on try 5 of 10. Sleeping another 2 seconds > # Haven't found job log files on try 6 of 10. Sleeping another 2 seconds > # Haven't found job log files on try 7 of 10. Sleeping another 2 seconds > # Haven't found job log files on try 8 of 10. Sleeping another 2 seconds > # Haven't found job log files on try 9 of 10. Sleeping another 2 seconds > # Haven't found job log files on try 10 of 10. Sleeping another 2 seconds > > # Failed test ' After first cycle, J1 ran successfully' > # at t/017_IgnoreRegex.t line 67. > # Try to increase the value of $SLEEP_TIME in t/017_IgnoreRegex.t > t/017_IgnoreRegex......................NOK 3/12 > # Failed test ' After first cycle, J2 ran successfully' > # at t/017_IgnoreRegex.t line 68. > t/017_IgnoreRegex......................NOK 4/12# Try to increase the > value of $SLEEP_TIME in t/017_IgnoreRegex.t > t/017_IgnoreRegex......................ok 5/12# Haven't found job log > files on try 1 of 10. Sleeping another 2 seconds > # Haven't found job log files on try 2 of 10. Sleeping another 2 seconds > # Haven't found job log files on try 3 of 10. Sleeping another 2 seconds > # Haven't found job log files on try 4 of 10. Sleeping another 2 seconds > # Haven't found job log files on try 5 of 10. Sleeping another 2 seconds > # Haven't found job log files on try 6 of 10. Sleeping another 2 seconds > # Haven't found job log files on try 7 of 10. Sleeping another 2 seconds > # Haven't found job log files on try 8 of 10. Sleeping another 2 seconds > # Haven't found job log files on try 9 of 10. Sleeping another 2 seconds > # Haven't found job log files on try 10 of 10. Sleeping another 2 seconds > > # Failed test ' After second cycle, J1 ran successfully' > # at t/017_IgnoreRegex.t line 106. > # Try to increase the value of $SLEEP_TIME in t/017_IgnoreRegex.t > t/017_IgnoreRegex......................ok 9/12# Looks like you failed > 3 tests of 12. > t/017_IgnoreRegex......................dubious > Test returned status 3 (wstat 768, 0x300) > DIED. FAILED tests 3-4, 8 > Failed 3/12 tests, 75.00% okay > t/018TaskForestDaemon..................# > # ********************************************************************** > # > # No web server was found at port 1111. Skipping the rest of > # these tests. If you want, you can start the web server and > # rerun 'make test'. > # > # To start the web server enter: > # > # perl -T -I lib ./blib/script/taskforestd > --config_file=./taskforestd.test.cfg > # > # For more help, see http://www.taskforest.com > # > # ********************************************************************** > # > t/018TaskForestDaemon..................ok > 362/362 skipped: various reasons > t/019_FamilyRemoval....................ok > t/020_Run_With_Log.....................ok 1/7# Haven't found job log > files on try 1 of 10. Sleeping another 2 seconds > # Haven't found job log files on try 2 of 10. Sleeping another 2 seconds > # Haven't found job log files on try 3 of 10. Sleeping another 2 seconds > # Haven't found job log files on try 4 of 10. Sleeping another 2 seconds > # Haven't found job log files on try 5 of 10. Sleeping another 2 seconds > # Haven't found job log files on try 6 of 10. Sleeping another 2 seconds > # Haven't found job log files on try 7 of 10. Sleeping another 2 seconds > # Haven't found job log files on try 8 of 10. Sleeping another 2 seconds > # Haven't found job log files on try 9 of 10. Sleeping another 2 seconds > # Haven't found job log files on try 10 of 10. Sleeping another 2 seconds > > # Failed test ' After first cycle, J2 ran successfully' > # at t/020_Run_With_Log.t line 65. > # Try to increase the value of $SLEEP_TIME in t/007_TaskForest.t > > # Failed test ' After first cycle, J3 ran successfully' > # at t/020_Run_With_Log.t line 66. > # Try to increase the value of $SLEEP_TIME in t/007_TaskForest.t > > # Failed test ' After first cycle, J6 ran successfully' > # at t/020_Run_With_Log.t line 67. > # Try to increase the value of $SLEEP_TIME in t/007_TaskForest.t > > # Failed test ' After first cycle, J7 ran successfully' > # at t/020_Run_With_Log.t line 68. > # Try to increase the value of $SLEEP_TIME in t/007_TaskForest.t > > # Failed test ' After first cycle, J9 ran successfully' > # at t/020_Run_With_Log.t line 69. > # Try to increase the value of $SLEEP_TIME in t/007_TaskForest.t > # Looks like you failed 5 tests of 7. > t/020_Run_With_Log.....................dubious > Test returned status 5 (wstat 1280, 0x500) > DIED. FAILED tests 3-7 > Failed 5/7 tests, 28.57% okay > t/021_Release..........................ok > t/022_Debug............................ok 1/7# Haven't found job log > files on try 1 of 10. Sleeping another 2 seconds > # Haven't found job log files on try 2 of 10. Sleeping another 2 seconds > # Haven't found job log files on try 3 of 10. Sleeping another 2 seconds > # Haven't found job log files on try 4 of 10. Sleeping another 2 seconds > # Haven't found job log files on try 5 of 10. Sleeping another 2 seconds > # Haven't found job log files on try 6 of 10. Sleeping another 2 seconds > # Haven't found job log files on try 7 of 10. Sleeping another 2 seconds > # Haven't found job log files on try 8 of 10. Sleeping another 2 seconds > # Haven't found job log files on try 9 of 10. Sleeping another 2 seconds > # Haven't found job log files on try 10 of 10. Sleeping another 2 seconds > > # Failed test ' After first cycle, J2 ran successfully' > # at t/022_Debug.t line 65. > # Try to increase the value of $SLEEP_TIME in t/007_TaskForest.t > t/022_Debug............................NOK 3/7 > # Failed test ' After first cycle, J3 ran successfully' > # at t/022_Debug.t line 66. > # Try to increase the value of $SLEEP_TIME in t/007_TaskForest.t > t/022_Debug............................NOK 4/7 > # Failed test ' After first cycle, J6 ran successfully' > # at t/022_Debug.t line 67. > t/022_Debug............................NOK 5/7# Try to increase the > value of $SLEEP_TIME in t/007_TaskForest.t > > # Failed test ' After first cycle, J7 ran successfully' > # at t/022_Debug.t line 68. > t/022_Debug............................NOK 6/7# Try to increase the > value of $SLEEP_TIME in t/007_TaskForest.t > > # Failed test ' After first cycle, J9 ran successfully' > # at t/022_Debug.t line 69. > t/022_Debug............................NOK 7/7# Try to increase the > value of $SLEEP_TIME in t/007_TaskForest.t > # Looks like you failed 5 tests of 7. > t/022_Debug............................dubious > Test returned status 5 (wstat 1280, 0x500) > DIED. FAILED tests 3-7 > Failed 5/7 tests, 28.57% okay > t/023_Tokens...........................ok 1/5# Loop # 5: missing the > following files: > # /var/tmp/TaskForest-1.33/t/logs/20100201/TOKENS.J1.0 > # /var/tmp/TaskForest-1.33/t/logs/20100201/TOKENS.J3.0 > # /var/tmp/TaskForest-1.33/t/logs/20100201/TOKENS.J4.0 > # /var/tmp/TaskForest-1.33/t/logs/20100201/TOKENS.J7.0 > # /var/tmp/TaskForest-1.33/t/logs/20100201/TOKENS.J8.0 > # Loop # 10: missing the following files: > # /var/tmp/TaskForest-1.33/t/logs/20100201/TOKENS.J1.0 > # /var/tmp/TaskForest-1.33/t/logs/20100201/TOKENS.J3.0 > # /var/tmp/TaskForest-1.33/t/logs/20100201/TOKENS.J4.0 > # /var/tmp/TaskForest-1.33/t/logs/20100201/TOKENS.J7.0 > # /var/tmp/TaskForest-1.33/t/logs/20100201/TOKENS.J8.0 > > # Failed test 'After first cycle, jobs J1, J3, J4, J7, J8 ran > successfully' > # at t/023_Tokens.t line 51. > t/023_Tokens...........................NOK 3/5# Loop # 5: missing the > following files: > # /var/tmp/TaskForest-1.33/t/logs/20100201/TOKENS.J2.0 > # /var/tmp/TaskForest-1.33/t/logs/20100201/TOKENS.J5.0 > # /var/tmp/TaskForest-1.33/t/logs/20100201/TOKENS.J9.0 > # Loop # 10: missing the following files: > # /var/tmp/TaskForest-1.33/t/logs/20100201/TOKENS.J2.0 > # /var/tmp/TaskForest-1.33/t/logs/20100201/TOKENS.J5.0 > # /var/tmp/TaskForest-1.33/t/logs/20100201/TOKENS.J9.0 > > # Failed test 'After second cycle, jobs J2, J5 and J9 ran successfully' > # at t/023_Tokens.t line 62. > t/023_Tokens...........................NOK 4/5# Loop # 5: missing the > following files: > # /var/tmp/TaskForest-1.33/t/logs/20100201/TOKENS.J6.0 > # /var/tmp/TaskForest-1.33/t/logs/20100201/TOKENS.J10.0 > # /var/tmp/TaskForest-1.33/t/logs/20100201/TOKENS.J11.0 > # Loop # 10: missing the following files: > # /var/tmp/TaskForest-1.33/t/logs/20100201/TOKENS.J6.0 > # /var/tmp/TaskForest-1.33/t/logs/20100201/TOKENS.J10.0 > # /var/tmp/TaskForest-1.33/t/logs/20100201/TOKENS.J11.0 > > # Failed test 'After third cycle, jobs J6, J10 and J11 ran successully' > # at t/023_Tokens.t line 71. > t/023_Tokens...........................NOK 5/5# Looks like you failed > 3 tests of 5. > t/023_Tokens...........................dubious > Test returned status 3 (wstat 768, 0x300) > DIED. FAILED tests 3-5 > Failed 3/5 tests, 40.00% okay > t/024_Midnight.........................ok > t/025_Midnight_Ready...................ok 1/19 > > > ------------------------------------------------------------------------------ > The Planet: dedicated and managed hosting, cloud storage, colocation > Stay online with enterprise data centers and the best network in the > business > Choose flexible plans and management services without long-term contracts > Personal 24x7 support from experience hosting pros just a phone call away. > http://p.sf.net/sfu/theplanet-com > _______________________________________________ > Taskforest-discuss mailing list > Tas...@li... > https://lists.sourceforge.net/lists/listinfo/taskforest-discuss > |
From: Aijaz A. <en...@us...> - 2010-02-08 17:35:15
|
Vitor: As I just mentioned to Steve on the mailing list, version 1.34 (available unofficially at http://www.taskforest.com/TaskForest-1.34.tar.gz ) should fix this problem. Please let me know if it doesn't. I'll release an official version 1.35 in a few days after I complete the user documentation. Thanks, Aijaz. On Tue, Feb 2, 2010 at 11:30 AM, Vitor Ventura <ven...@gm...>wrote: > Hello, > > I had the some problem, on the same platform. I never resolved it. > > ... > >> >> I just downloaded Task Forest 1.33 with high hopes and great >> expectations--I've been looking for a simple yet powerful >> text-file-based job scheduler of this sort for a long time. >> >> I ran `perl Makefile.PL`, `make`, and `make test` but many of the unit >> test fail and t/025_Midnight_Ready hangs after printing 1/19. Is this >> expected? Did I miss a setup or configuration step? >> >> I'm running perl v5.10.0 on Linux version 2.6.31-17-generic (Ubuntu >> 9.10). `make test` output included below. >> >> |
From: Aijaz A. <en...@us...> - 2010-02-08 17:32:42
|
Steve: I can confirm that there was a problem with the test cases (as opposed to the actual program). I've fixed the test cases, and the scenario you were describing works now. There's an unofficial version 1.34 available at http://www.taskforest.com/TaskForest-1.34.tar.gz It's unofficial because I had already been working on version 1.34 and it's got a few other enhancements, including the ability to put a job on hold and release a hold off a job. I haven't finished working on the documentation of these new features and don't want to release the code officially until the user documentation is done. I expect it will take a few more days to complete the docs. If you would like to, feel free to download 1.34 and test it out. I'll release the official version as 1.35. Thanks again for your help in debugging this. Aijaz. On Tue, Feb 2, 2010 at 11:19 AM, Aijaz Ansari <en...@us...>wrote: > Excellent detective work. Thanks, Steve. My comments are interspersed > below. > > On Tue, Feb 2, 2010 at 10:55 AM, Steve Hulet <st...@id...> wrote: > ... > >> >> Now for the news: running the exact same commands this morning (`perl >> Makefile.PL`, `make`, & `make test`) does *not* result in the same >> failures experienced last night. That is, all of the tests pass, >> *until* t/025_Midnight_Ready, which still hangs. >> > > I think the test case has a bug. The code uses its own function (called > LocalTime, I think) that returns the current time. That way during testing > I can change the 'current time' so that I can test how the program would > behave in the future. I think t/025_Midnight_Ready may not be using that > function, and therefore must be confused about what day it is. I can test > that out pretty easily. > > >> >> Interestingly, between 10pm and midnight PST and CST are on different >> days. Could this have caused the other `make test` failures? >> > > Yes. I'm pretty sure that's it. I think (hope) it's just a bug in the test > code and not in the actual program itself. I'll verify that over the next > day or two. It will take me a few days to get the new release out > officially, but I'll let you know what I find as I go along. > > >> >> Looking inside t/families/MIDNIGHT I see: >> >> >> start => '00:00', tz=>'GMT', days => 'Mon,Tue,Wed,Thu,Fri,Sat,Sun' >> >> J_005( start=>'04:59') # 11:59pm Chicago time April 19 2009 >> >> >> Based on the comment this test appears to make the assumption that >> 4:59 GMT is 11:59pm Chicago time. While this was true April 19, 2009 >> it is not true today due to Daylight Savings Time not being in effect. >> >> 2009-04-09: >> http://timeanddate.com/worldclock/converted.html?month=4&day=19&year=2009&hour=4&min=55&sec=0&p1=0&p2=64 >> 2010-02-02<http://timeanddate.com/worldclock/converted.html?month=4&day=19&year=2009&hour=4&min=55&sec=0&p1=0&p2=64%0A2010-02-02>: >> >> http://timeanddate.com/worldclock/converted.html?month=2&day=2&year=2010&hour=4&min=55&sec=0&p1=0&p2=64 >> >> Could this have caused t/025_Midnight_Ready to hang? >> > > I think this is ok. I don't have the code in front of me, but if I > remember correctly, the test case sets the 'current time' to some time on > 4/19/2009 (Chicago time). I'll double check this. > > You've given me all the information I need to be able to duplicate this at > home and determine whether there's a bug in the test program or in the > taskforest code itself, or both. > > As for the failure of the taskforestd daemon test, that's probably not > related, but I'll gladly help you get that running once these other issues > are resolved. > > Thanks again, > > Aijaz. > > >> >> Thanks, >> steve >> >> >> >> On Tue, Feb 2, 2010 at 6:17 AM, Aijaz Ansari >> <en...@us...> wrote: >> > Steve: >> > >> > Thanks for your detailed email. There may be a problem with the test >> case >> > or something unexpected in your setup. I'll try to duplicate this on >> my >> > end. Could you please answer these questions for me? It might help >> > identify the problem. >> > >> > What time zone is your computer set at, and at what time were you >> running >> > these tests? It really shouldn't matter, but it may help identify the >> > problem. >> > >> > Were you attempting to install via CPAN or did you download the package >> and >> > and manually type in perl Makefile.PL, make and make test? >> > >> > Did the linux user you were logged in as have write permission to the >> > current directory you were in? >> > >> > Thanks, >> > >> > Aijaz. >> > >> > >> > On Tue, Feb 2, 2010 at 1:23 AM, Steve Hulet <st...@id...> >> wrote: >> >> >> >> Hi, >> >> >> >> I just downloaded Task Forest 1.33 with high hopes and great >> >> expectations--I've been looking for a simple yet powerful >> >> text-file-based job scheduler of this sort for a long time. >> >> >> >> I ran `perl Makefile.PL`, `make`, and `make test` but many of the unit >> >> test fail and t/025_Midnight_Ready hangs after printing 1/19. Is this >> >> expected? Did I miss a setup or configuration step? >> >> >> >> I'm running perl v5.10.0 on Linux version 2.6.31-17-generic (Ubuntu >> >> 9.10). `make test` output included below. >> >> >> >> Thanks, >> >> steve >> >> >> > >> > <snip> >> > > |
From: Steve H. <st...@id...> - 2010-02-12 04:33:42
|
Aijaz, Thanks for the update. TaskForest-1.34 passes all unit tests which were previously failing under similar conditions. Thanks again, Steve Hulet On Mon, Feb 8, 2010 at 9:32 AM, Aijaz Ansari <en...@us...> wrote: > Steve: > > I can confirm that there was a problem with the test cases (as opposed to > the actual program). I've fixed the test cases, and the scenario you were > describing works now. There's an unofficial version 1.34 available at > http://www.taskforest.com/TaskForest-1.34.tar.gz > > It's unofficial because I had already been working on version 1.34 and it's > got a few other enhancements, including the ability to put a job on hold and > release a hold off a job. I haven't finished working on the documentation > of these new features and don't want to release the code officially until > the user documentation is done. I expect it will take a few more days to > complete the docs. If you would like to, feel free to download 1.34 and > test it out. I'll release the official version as 1.35. > > Thanks again for your help in debugging this. > > Aijaz. > |