On Thu, Aug 11, 2011 at 3:37 PM, Corry Haines <[email protected]> wrote: > Ah, it seems that if the puts() function is not told to flush, the output > just never appears in jenkins. Very odd.
I'm no expert in these things but Python will buffer things differently depending on what is being written to and what's going on. A classic case is when you have a fast-moving 'for' loop containing a regular 'print' statement -- in some terminals you won't see *any* output until the for loop terminates. Thus the flush option for puts(). So whatever is going on between Python and Jenkins is preventing Python from knowing when to flush to its stdout file handle, most likely. Most of the time Fabric is used in "regular" terminals, so we're still running into occasional issues with wrapped Fabric sessions like buildbot/Jenkins setups and etc. > > On Thu, Aug 11, 2011 at 2:38 PM, Corry Haines <[email protected]> wrote: >> >> Jenkins seems to be eating output from Fabric when I run it as a job. >> Generally, it seems that Jenkins only shows the 'Warning' and "run()" >> output, but not anything from "puts()" >> Has anyone else seen anything like the (on jenkins or elsewhere)? >> I think this is because of the odd nature of the jenkins runtime, but it >> should not affect Fabric like this... >> Thanks, >> Corry > > _______________________________________________ > Fab-user mailing list > [email protected] > https://lists.nongnu.org/mailman/listinfo/fab-user > > -- Jeff Forcier Unix sysadmin; Python/Ruby engineer http://bitprophet.org _______________________________________________ Fab-user mailing list [email protected] https://lists.nongnu.org/mailman/listinfo/fab-user
