#foswiki 2012-09-17,Mon

↑back Search ←Prev date Next date→ Show only urls(Click on time to select a line by its url)

WhoWhatWhen
SvenDowideitwow, had to relocate the wifi gw
madness is complete
[00:05]
.............. (idle for 1h8mn)
pharveymy datahand is proving... interesting. To re-learn a similar-but-not-quite qwerty layout. [01:13]
Babarspeaking of the devil...
similar but not quite? What happened?
[01:18]
pharveyYou use different keys to hit the letters. Some are completely shifted, like b, t, y, n
and the punctuation is even more changed; I mean, the layout is basically projected in a similar way, so I can picture the key I need to press if I think hard enough, without looking, but typing this way only gets you < 25wpm
[01:21]
Babarwhat are you trying to achieve? learning Dvorak? [01:24]
pharveyhttp://www.datahand.com/overview/photos.htm [01:25]
SvenDowideitargh! itsa pharvey [01:26]
Babaris that a joke? [01:27]
pharveyhaha [01:27]
SvenDowideityes, /me isa joke :p [01:27]
pharveyit's a real keyboard. I've been practicing on one I won on eBay. [01:28]
SvenDowideitwhereas pharvey's KB is just a cruel torture device [01:28]
***Babar sets mode: +oooo gac410 gmc julian_work pharvey
Babar sets mode: +o SvenDowideit
[01:28]
Babaryou "won" on eBay? [01:28]
***SvenDowideit has left "Leaving" [01:28]
pharveyYou "win" bids... Yes.
I kept getting sniped on other auctions
[01:29]
Babaryeah, I just love the terminology
you didn't "buy" it, you "won" it. Even though it's exactly the same
except the price isn't fixed.
[01:30]
***Babar sets mode: +o SvenDowideit [01:30]
gac410SvenDowideit: What deb. did you install - Graphical Desktop, Web Server ... ?
I figure I'll select Graphical, Web, File, Mail, SQL, SSH for the "Software to install"
BTW I hope a 20 gig disk is enough.
[01:31]
Babarwhat are you trying to do? [01:32]
SvenDowideitgac410, i install none [01:33]
gac410Do whatever Sven did for his auto testing vm, so I can figure out why his tests hang.
None??? Not even "System utilities" ?
[01:33]
Babarmaybe use vagrant? :) [01:33]
SvenDowideitBabar, no, i use rex
its portable
whereas vagrant uses vbox
but i broke something in my rex lately
[01:33]
Babaryeah, we had this discussion before [01:34]
SvenDowideitwhile developing LXC bindingd [01:34]
Babardid you write some Rexfile for foswiki? [01:34]
gac410You said you installed a Deb stable. So I'm trying to install deb 6.0.5. I don't have a lot of hardware to play with . Adding a debian vm under qemu. [01:34]
Babardid you publish it? [01:34]
SvenDowideitBabar, no, because it depends on too many loose ends atm :/ [01:34]
Babarright.
whereas if gac410 uses vagrant, he can have a VM running Foswiki under Debian stable in less than an hour
[01:35]
gac410No. don [01:35]
SvenDowideity, but he's trying to replicate my nightly test system
as that fails really badly
and i can't work out why
[01:35]
gac410Right. Not running foswiki. Just run the autobuilder script. [01:35]
SvenDowideitbasically, make vm, install base debian, then wget autobuilder
run that script, and fix all the missing modules
one mo, i can help with that tho
[01:36]
gac410I make vm, I install base, and it says "What software do you want. Desktop, File Server, Mail Server, SQL Server .... Laptop, System Utilities" [01:37]
SvenDowideitmmm, how to publish :/
gac410, all you want is ssh
nothing else
[01:37]
gac410:P Okay.
Not even system utilites that are selected by default?
[01:37]
SvenDowideitmaybe systtem uilts, but i dunno
use it, as you're not a debian head :p
[01:37]
Babarlet's see if my vagrant VM failed the tests [01:37]
SvenDowideitok, pushing my Rexfile [01:38]
gac410It's downloading packages now. (Soon to hear squawk from other users of dsl link :P) [01:38]
SvenDowideithttps://github.com/SvenDowideit/rex-recipes/blob/master/Rexfile
gac410, see all the lines that start with 'install package'
those are packages i installed
[01:39]
gac410okay great. [01:40]
SvenDowideitand that also has the cronjob i use
that, plus the rest of that repo and rex are what i use to create, setup and init the qemu vm
but it relies on my dhcp server setup and the network briodging i configured
i still have to pull out the hardcoded bits that make my network go
[01:40]
gac410okay. I'll install the packages and see if I can figure out what might be missing from a test run. I do know the basics of debian. Net is already up and running here using a qemu tap interface to my bridge [01:41]
SvenDowideit(it also uses my global ssmtp setup to throw emails, and so on
SvenDowideit goes back to getting poked in the eye by mongodb
[01:42]
gac410I'll ignore all that stuff. I really want to figure out why the tests stop if I can. I'll start with just a manual run. [01:42]
SvenDowideity, when I use autobuild to get the code
and then run ../bin/TestRunner -clean FoswikiSuite
it hangs too
so its easy to reproduce
[01:43]
Babarit hangs right away? [01:45]
SvenDowideitno
i think its when it gets to spawning a worker in the Fn_SEARCH tests
[01:45]
Babarok, so I'll let it run until that then [01:46]
SvenDowideitbut i havn't looked into how the worker stuff works [01:46]
gac410If one believes the logs that it mails out it's right in the AdminUser tests unless the mail misses some buffered stuff. [01:46]
SvenDowideitthe emailed text is post regexing
better to look at the uploaded files
[01:46]
Babarwhat version of perl are you using?
'cause I've just passed the Fn_SEARCH tests on my VM
[01:46]
SvenDowideitdebian stable, so 5.10.2
and its a very bog standard install
[01:47]
gac410hm. the debian installer appears to be installing exim, even though I only said SSH and System utils. :P [01:47]
Babarexim is needed by cron [01:47]
gac410Nothing hangs for me either. Ah. [01:47]
Babar(which is in System utils) [01:47]
gac410okay. [01:48]
......... (idle for 42mn)
Definite strangeness SvenDowideit - It gets to configureTests, and output seems to stop at the first "expected" failure when it tries to install a missing package. then the only messages I see are the worker messages.
But all output stops, as if it got redirected or captured. CPU is chugging along, w/ lots of disk io, but no output.
Acually ALL output has been captured by the Fn_SEARCH code. Crap - no scrollback on my console. :P Anyway the worker output to stdout.4343.log seems to have all the testing results.
[02:30]
It's the DependencyTests. When it "fails" to load the missing dependency, at that point everything is messed up. [02:40]
SvenDowideitgac410, nice
i got nothing in the stdout log file i looked in
and no fileio afer a while, just stalled processes
but i wasn't looking hard, too distracted
[02:47]
.... (idle for 18mn)
gac410SvenDowideit: I don't understand the bug, but if "zip" and "unzip" are missing, then the test installing a zipfile fails. That's to be expected. But then from there on stdout has been captured.
Something down in Foswiki::Configure::Util::_unzip(). It just does a eval - my $out = `unzip -n $archive`; dies if it fails, and returns the error. But the tests are toast from that point on.
[03:06]
FoswikiBothttp://trunk.foswiki.org/System/PerlDoc?module=Foswiki::Configure::Util [03:10]
gac410Maybe it's an interaction between nested evals and the try/catch code.
Anyway, Install apt-get install zip unzip ... and all is well.
[03:10]
.... (idle for 15mn)
SvenDowideitgac410, really? awesome, no wonder i couldn't work it out, thats obscure [03:26]
.... (idle for 15mn)
gac410If either Archive::Zip was installed or the system tools, it would have worked. Not a clue though why a die within an eval would cause this.
Tests still running. I figured I'd see if anything else pops up as missing.
Done. 26 failures Mostly due to the store changes.
* ConfigureTests::test_Util_createArchive_perlZip - Missing Archive::Zip .... That would okay to install I guess.
nothing else significatnt jumps out. The Bcrypt stuff is missing, but that's a corner case for sure.
Missing Crypt::Eksblowfish::Bcrypt
[03:41]
The package needed is libcrypt-eksblowfish-perl [03:52]
...... (idle for 27mn)
***gac410 has left [04:19]
..................................... (idle for 3h0mn)
ChanServ sets mode: +o MichaelDaum [07:19]
.............................. (idle for 2h26mn)
ChanServ sets mode: +o MichaelDaum [09:45]
......................... (idle for 2h4mn)
SvenDowideitarghZ!!E@ [11:49]
...... (idle for 25mn)
CDotSvenDowideit: ? [12:14]
SvenDowideiti started to fix a bug in mongodb
and then started to refactor the resultset code a little
only to then look at ripping out the embedded parse and array of shite in meta
looks like i'm going to extract all the put & get etc into the Embedded serialise class
then add a new fast-serialise that has the same methods
and then look at making 1.2.0 stupid faster
just because i happen to be in that ugly code
[12:20]
.... (idle for 18mn)
CDotlovely [12:40]
.... (idle for 15mn)
gac410foswikibot seen LarsEik [12:55]
FoswikiBotgac410: LarsEik was last seen in #foswiki 88 days 1 hours ago joining the channel. [12:55]
gac410Item12077 - Sven, I've created a task for your unit test failures. Absolutely no idea why or how to fix. Maybe something needs to be set to LOCAL before the configure code attempts to run unzip? [13:09]
FoswikiBothttp://foswiki.org/Tasks/Item12077 [ Item12077: Unit tests appear to hang if Archive::Zip and zip/unzip tools are not installed ] [13:09]
..... (idle for 24mn)
gac410Babar, can you think of any reason that an eval of a system command ( eval `unzip ...` ) would break the try/catch hierarchy and leave stdout captured
The code doesn't even capture stdout, stuff just breaks. I tried changing the "die" to a Carp::cluck but thing still fail.
[13:33]
Babarwait... WHAT?
eval `unzip` ???
Babar must be missing something
[13:34]
gac410Yeah - it's part of the install a zipped extension code. If Archive::Unzip is unavailable, then it attempts a system unzip.
See Item12077:
The code has been this way for a long time - but Sven tripped over it because his test system didn't have any zip tools installed.
The package code works as expected, and tests continue to run. But TestRunner itself gets broken with mis-directed stdout
Its a corner case. No tarball for the extension, and Archive::Zip not installed, and system also doesn't have unzip on the path.
[13:35]
Babarah... eval { my $out = `unzip`; }
ok.
[13:39]
gac410I'm guessing the eval is breaking the try/catch hierarchy somehow.
After that code runs. If unzip is not installed, all STDOUT from the tests stops.
[13:40]
Babarnesting eval's is always tricky [13:48]
gac410Hm. Adding a "local *STDOUT; " ahead of the `unzip` has no impact. STDOUT is still captured for some reason.
It seems that my $out = `unzip` leaves stdout captured to $out or wherever if the `unzip` dies. And later on when Fn_SEARCH captures STDOUT, then it picks up all output from that point.
[13:48]
jastyou could try turning it into an open(..., '|-', ...)
much more verbose, of course, but maybe it won't trip up the same way?
[13:51]
gac410yeah. or use the Foswiki::Sandbox. which is probably more portable. [13:52]
jastright [13:52]
FoswikiBothttp://trunk.foswiki.org/System/PerlDoc?module=Foswiki::Sandbox [13:52]
gac410But I hate to change apparently working code because it messes up the unit tests only when some dependencies are missing. [13:53]
jastyou could argue that the code is broken if it fails to handle missing dependencies correctly [13:54]
Babarhum, where did you try to put your local *STDOUT? [13:56]
gac410Right before the $out = `unzip ...
So it was inside the eval block.
Jast - it handles it correctly when actually using it to install an extension. Or at least it did with my manual tests.
It's the TestRunner that gets messed up.
[13:57]
jastright [13:58]
gac410I'm not sure it's worth fixing. If sven installs unzip, or Archive::Zip, all will be good again. [13:59]
Babargac410: canyou try to put the local *STDOUT before the eval ? [14:00]
gac410Okay - I'll give that a try
:P Nope. Same fail. ConfigureTests::test_Package_errors is the last line written to stdout.
[14:00]
The test that goes south is an attempt to unzip an invalid format zipfile. So if the unzip runs and fails, that's okay - and it all works as expected. The unzip generates a stdout that reports the error. If unzip is missing though, that's when it messes up. [14:10]
Babar: It's a perl bug I suspect. Set up the same conditions on Perl 5.14.2 and it all just works.
Debian stable is 5.10.1
[14:22]
..... (idle for 20mn)
Babarno, it's not a perl bug :)
http://perldoc.perl.org/perl5140delta.html#Exception-Handling
or if you consider that a bug
but... resetting $@ to '' at the end of the eval _might_ help
[14:42]
gac410cool. I've got worse issues on my own system. I've updated my base OS to latest gentoo packages, and it seems perl is not finding things like tar and zip on the path, and worse, when I point it to the full path /bin/tar and /usr/bin/zip ... it can't find the gzip child that tar tries to run.
nope... It's the "pseudo-install -A " configuration. If I restore my "real" config file, the configure tests all pass.
Cool Babar, resetting $@ seems to fix the unit tests.
At least stdout doesn't get stuck
[14:44]
Babar\o/
(don't thank me, thank Vincent Pit who suggested it)
[14:50]
gac410Now need to figure out why pseudo_install -A is not sufficient to run the tests. I'm guessing maybe the SafeEnvPath ... not sure yet. [14:52]
Babarinteresting [14:54]
gac410It's fine on Debian stable. Seems to be an issue on my gentoo after latest updates.
Damn. Must have been a one-off issue. I've recreated LocalSite.cfg with pseudo_install and it's all working fine. Doh...
[14:55]
CDotgac410: did you keep the pre-recreate LSC? [15:06]
gac410no. :( [15:06]
CDotok. I would suspect the file paths, myself, but no way to tell now. [15:07]
gac410Not particularly smart today. Though that would not be unusual any day. ;) [15:07]
..................... (idle for 1h40mn)
GithubBot[foswiki] FoswikiBot pushed 1 new commit to Release01x01: http://git.io/cG1Pag
[foswiki/Release01x01] Item12077: Reset $@ after unzip or tar failure - GeorgeClark
[16:47]
***GithubBot has left [16:47]
FoswikiBothttp://foswiki.org/Tasks/Item12077 [ Item12077: Unit tests appear to hang if Archive::Zip and zip/unzip tools are not installed ] [16:47]
GithubBot[foswiki] FoswikiBot pushed 1 new commit to master: http://git.io/K-AbTw
[foswiki/master] Item12077: Reset $@ after unzip or tar failure - GeorgeClark
[16:48]
***GithubBot has left [16:48]
................................ (idle for 2h38mn)
rajaniemi.freenode.net sets mode: +o gmc
ChanServ sets mode: -o gmc
[19:26]

↑back Search ←Prev date Next date→ Show only urls(Click on time to select a line by its url)