Last modified: 2014-10-07 22:54:44 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T73766, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 71766 - jsub command produces empty output/error files
jsub command produces empty output/error files
Status: NEW
Product: Wikimedia Labs
Classification: Unclassified
tools (Other open bugs)
unspecified
All All
: Unprioritized normal
: ---
Assigned To: Yuvi Panda
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-10-07 22:54 UTC by Bernd Sitzmann
Modified: 2014-10-07 22:54 UTC (History)
2 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Bernd Sitzmann 2014-10-07 22:54:20 UTC
To repro:
login to tools and become wikipedia-android-builds

# note output of:
  ls -l build.*
-rw-rw---- 1 tools.wikipedia-android-builds tools.wikipedia-android-builds 0 Oct  7 21:39 build.err
-rw-rw---- 1 tools.wikipedia-android-builds tools.wikipedia-android-builds 0 Oct  7 21:39 build.out

# force a build by making git fetch a new commit
cd wikipedia
git reset --hard HEAD^

# run the build either from cron or directly the jsub command:
jsub -mem 8G -quiet -once /data/project/wikipedia-android-builds/src/build.py

I can see that a job is running (with job -v build), but there is no output added to the ~/build.out or ~/build.err files.

I've modified the build.py script. So, it's possible there is a bug in the script.
Note that I added more env vars:
    'JAVA_HOME': '/usr/lib/jvm/java-7-openjdk-amd64',
    'TERM': 'xterm-256color'

(Gradle needs TERM set to something valid.)

Strangely, sometimes I do get output in those files. But it seems to be the rare case when I've been trying throughout today. Can't try it again right now since most machines are dead. But Yuvi asked me to file a bug.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links