Closed Bug 644309 Opened 13 years ago Closed 13 years ago

Improve logging of executed commands for better failure discovery

Categories

(Mozilla QA Graveyard :: Mozmill Crowd Extension, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: aaronmt, Assigned: whimboo)

References

Details

Attachments

(1 file)

On Linux (Ubuntu 10.10), I am unable to start a test run. The phase at which I see this error is after cloning mozmill-automation:

requesting all changes
adding changesets
adding manifests
adding file changes
added 1179 changesets with 4172 changes to 479 files (+3 heads)
updating to branch default
198 files updated, 0 files merged, 0 files removed, 0 files unresolved
No option 'SourceRepository' in section: 'App'
*** Removing repository '/tmp/tmpeqetL6.mozmill-tests'
 
In the extension's console, I see:

The log file "/home/aaronmt/Desktop/testrun.log" could not be read.

setup.sh has no issue running on its own
For some reason it cant load the logfile because the file is not being created
Summary: Unable to start a run, error 'The log file could not be read.' → Log file is not created on Linux, error: 'The log file could not be read.' during attempt to load
Which build of Firefox are you using?
Blocks: 641897
On my ubuntu VM I was using release 4.0
Attached patch Patch v1Splinter Review
This patch adds a logging message to the Error Console, which shows up the exact command which gets executed.
Assignee: nobody → hskupin
Status: NEW → ASSIGNED
Attachment #521325 - Flags: review?(aaron.train)
Comment on attachment 521325 [details] [diff] [review]
Patch v1

Works for me, example output of the cmd

MozMill Crowd: Executing: '/home/aaronmt/Desktop/mozmill-env/run.sh python /home/aaronmt/Desktop/mozmill-automation/testrun_endurance.py --repository=https://hg.mozilla.org/qa/mozmill-tests/ --logfile=/home/aaronmt/Desktop/testrun.log --screenshot-path=/home/aaronmt/Desktop/screenshots --iterations=1 --delay=0.1 /usr/lib/firefox-4.0/firefox-bin'
Attachment #521325 - Flags: review?(aaron.train) → review+
The problem here is that Ubuntu modifies the application.ini file and removes the necessary references to the SourceRepository which we need to identify the branch we are working on correctly. We can't do anything against that and would have to find a way to gracefully workaround that issue if possible.

For now lets take this patch and make it easier to investigate failures like those.
OS: Linux → All
Hardware: x86 → All
Summary: Log file is not created on Linux, error: 'The log file could not be read.' during attempt to load → Improve logging of executed commands for better failure discovery
Landed as:
https://github.com/whimboo/mozmill-crowd/commit/10a8b2a478b647b2abad0c9c9661bf726056d9a0
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Product: Mozilla QA → Mozilla QA Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: