Closed
Bug 727711
Opened 12 years ago
Closed 12 years ago
interpolate files referencing the talos directory with the ${talos} pattern
Categories
(Testing :: Talos, defect)
Testing
Talos
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: k0scist, Unassigned)
References
Details
Attachments
(1 file, 8 obsolete files)
38.25 KB,
patch
|
k0scist
:
review+
|
Details | Diff | Splinter Review |
run_tests.py has a way of interpolating file paths wrt the talos directory: http://hg.mozilla.org/build/talos/file/56020a3a3bba/talos/run_tests.py#l506 This is currently only used for bundles and extensions, but should be done for other items in .config/.yml files, including: - profile paths (for each test) - tpmanifest (for each test) - head and tail (for each test) See https://bugzilla.mozilla.org/show_bug.cgi?id=705809#c16 I may have missed something but at least these are required. Also, and more painfully, the .config files will have to be edited to add the '${talos}/' string in to each occurance of these, unless bug 725097 is fixed first
Comment 1•12 years ago
|
||
Attachment #598398 -
Flags: review?(jhammel)
Comment 2•12 years ago
|
||
Attachment #598399 -
Flags: review?(jhammel)
Comment 3•12 years ago
|
||
Removed extraneous print statement. This also includes this fix: https://bug722476.bugzilla.mozilla.org/attachment.cgi?id=597129
Attachment #598398 -
Attachment is obsolete: true
Attachment #598401 -
Flags: review?(jhammel)
Attachment #598398 -
Flags: review?(jhammel)
Comment 4•12 years ago
|
||
Combine patches, take out part that changes path to 'remoteapp.ini'
Attachment #598399 -
Attachment is obsolete: true
Attachment #598401 -
Attachment is obsolete: true
Attachment #598411 -
Flags: review?(jhammel)
Attachment #598399 -
Flags: review?(jhammel)
Attachment #598401 -
Flags: review?(jhammel)
Reporter | ||
Comment 5•12 years ago
|
||
Comment on attachment 598411 [details] [diff] [review] Bug 727711 - interpolate files referencing the talos directory with the ${talos} pattern;r=jhammel looks good!
Attachment #598411 -
Flags: review?(jhammel) → review+
Reporter | ||
Comment 6•12 years ago
|
||
I pushed this to try, https://tbpl.mozilla.org/?tree=Try&rev=8b51dd89b5f7 Windows, at least WinXP, seems to be having some problems, e.g. https://tbpl.mozilla.org/php/getParsedLog.php?id=9430189&tree=Try&full=1 : Failed tsvg: Stopped Fri, 17 Feb 2012 18:02:42 FAIL: Busted: tsvg FAIL: unrecognized output format Traceback (most recent call last): File "run_tests.py", line 668, in ? main() File "run_tests.py", line 665, in main test_file(arg, options, parser.parsed) File "run_tests.py", line 606, in test_file raise e utils.talosError: 'unrecognized output format' program finished with exit code 1 elapsedTime=24.484000 TinderboxPrint:<a href = "http://hg.mozilla.org/try/rev/8b51dd89b5f7">rev:8b51dd89b5f7</a> I don't know why this is happening, but it is clearly bad :(
Comment 7•12 years ago
|
||
Try run for 8b51dd89b5f7 is complete. Detailed breakdown of the results available here: https://tbpl.mozilla.org/?tree=Try&rev=8b51dd89b5f7 Results (out of 72 total builds): exception: 2 success: 57 failure: 13 Builds (or logs if builds failed) available at: http://ftp.mozilla.org/pub/mozilla.org/firefox/try-builds/jhammel@mozilla.com-8b51dd89b5f7
Comment 8•12 years ago
|
||
I was able to track down a windows XP machine to debug - it looks like pageloader wasn't finding the manifest, perhaps due to spaces in the path or something else about file uris on windows.
Attachment #598411 -
Attachment is obsolete: true
Attachment #599282 -
Flags: review?(jhammel)
Reporter | ||
Comment 9•12 years ago
|
||
Comment on attachment 599282 [details] [diff] [review] Bug 727711 - interpolate files referencing the talos directory with the ${talos} pattern;r=jhammel - self.buildRemoteManifest(line.split(":")[1].strip()) + self.buildRemoteManifest(line.split("${talos}/")[1].strip()) Not sure what this line is but....I'm pretty sure we need to do something different
Reporter | ||
Comment 10•12 years ago
|
||
(In reply to Jeff Hammel [:jhammel] from comment #9) > Comment on attachment 599282 [details] [diff] [review] > Bug 727711 - interpolate files referencing the talos directory with the > ${talos} pattern;r=jhammel > > - self.buildRemoteManifest(line.split(":")[1].strip()) > + > self.buildRemoteManifest(line.split("${talos}/")[1].strip()) > > Not sure what this line is but....I'm pretty sure we need to do something > different So I would recommend: 1. putting interpolatePath in utils.py and importing it to PerfConfigurator 2. manifest = line.split(":")[1].strip() if manifest: self.buildRemoteManifest(manifest) See also bug 729361 about making buildRemoteManifest be a little smarter about errors
Comment 11•12 years ago
|
||
Move interpolatePath to utils and call on manifest name, only call buildRemoteManifest is the manifest is not empty.
Attachment #599282 -
Attachment is obsolete: true
Attachment #599420 -
Flags: review?(jhammel)
Attachment #599282 -
Flags: review?(jhammel)
Reporter | ||
Comment 12•12 years ago
|
||
Comment on attachment 599420 [details] [diff] [review] Bug 727711 - interpolate files referencing the talos directory with the ${talos} pattern;r=jhammel + +here = os.path.dirname(os.path.realpath(__file__)) No need for this in PerfConfigurator.py + if test.get('tpmanifest'): + test['tpmanifest'] = '%s%s' % ('file://', test['tpmanifest'].replace(" ", "%20")) I would probably do something like import urllib # at the top of the file tpmanifest = test.get('tpmanifest') if tpmanifest: test['tpmanifest'] = 'file://%s' % urlquote(tpmanifest) r+ if you remove the unusedhere from PerfConfigurator.py
Attachment #599420 -
Flags: review?(jhammel) → review+
Reporter | ||
Comment 13•12 years ago
|
||
pushed to try: https://tbpl.mozilla.org/?tree=Try&rev=cf4f725389d4
Comment 14•12 years ago
|
||
This version makes use of urllib.quote() function and deletes unnecessary 'here' assignment in PerfConfigurator.py.
Attachment #599468 -
Flags: review?(jhammel)
Comment 15•12 years ago
|
||
Try run for cf4f725389d4 is complete. Detailed breakdown of the results available here: https://tbpl.mozilla.org/?tree=Try&rev=cf4f725389d4 Results (out of 72 total builds): success: 71 failure: 1 Builds (or logs if builds failed) available at: http://ftp.mozilla.org/pub/mozilla.org/firefox/try-builds/jhammel@mozilla.com-cf4f725389d4
Reporter | ||
Comment 16•12 years ago
|
||
Comment on attachment 599468 [details] [diff] [review] Bug 727711 - interpolate files referencing the talos directory with the ${talos} pattern;r=jhammel Looks great! Thanks a bunch!
Attachment #599468 -
Flags: review?(jhammel) → review+
Reporter | ||
Updated•12 years ago
|
Whiteboard: [talos-checkin-needed]
Reporter | ||
Comment 17•12 years ago
|
||
Probably needs android testing. The try run from comment 15 is pretty friggin green (the one red on android isn't even testing the right talos) but the patch has slightly changed since then
Comment 18•12 years ago
|
||
In light of bug https://bugzilla.mozilla.org/show_bug.cgi?id=730342 I will take a closer look at this for android and modify the patch appropriately.
Comment 19•12 years ago
|
||
Fix manifest path to work for Android. I have this working for tdhtml on Android, Windows XP, and Mac (develop mode). Tested by running from the directory above talos/talos, eg python talos/run_tests.py -d -n talos/mytest.yml. Realpath, which we use to get "here," appears to work (in part) by calling abspath, which calls normpath, so this works without these few lines: http://hg.mozilla.org/build/talos/file/099171bc6da5/talos/run_tests.py#l530
Attachment #599420 -
Attachment is obsolete: true
Attachment #599468 -
Attachment is obsolete: true
Attachment #601755 -
Flags: review?(jhammel)
Reporter | ||
Comment 20•12 years ago
|
||
Comment on attachment 601755 [details] [diff] [review] Unbitrot + fix for android + test['tpmanifest'] = os.path.normpath('file:/%s' % (urllib.quote(test['tpmanifest'], '/\\t:\\'))) should this be 'file://%s' % os.path.normpath(urllib.quote(test['tpmanifest'], '/\\t:\\') ?
Attachment #601755 -
Flags: review?(jhammel) → review+
Reporter | ||
Comment 21•12 years ago
|
||
pushing to try: https://tbpl.mozilla.org/?tree=Try&rev=5fe02fed627b
Reporter | ||
Comment 22•12 years ago
|
||
This seems to pass on tsvg and ts locally
Reporter | ||
Comment 23•12 years ago
|
||
But massive failures on windows: talos-r3-w7-041: Started Fri, 02 Mar 2012 10:57:56 Running test ts_places_generated_max: Started Fri, 02 Mar 2012 10:57:56 '..' is not recognized as an internal or external command, operable program or batch file. NOISE: NOISE: __FAILbrowser non-zero return code (1)__FAIL Failed ts_places_generated_max: Stopped Fri, 02 Mar 2012 10:58:07 FAIL: Busted: ts_places_generated_max FAIL: failed to initialize browser Traceback (most recent call last): File "run_tests.py", line 671, in ? main() File "run_tests.py", line 668, in main test_file(arg, options, parser.parsed) File "run_tests.py", line 609, in test_file raise e utils.talosError: 'failed to initialize browser' program finished with exit code 1 elapsedTime=14.187000
Reporter | ||
Updated•12 years ago
|
Whiteboard: [talos-checkin-needed]
Comment 24•12 years ago
|
||
Try run for 5fe02fed627b is complete. Detailed breakdown of the results available here: https://tbpl.mozilla.org/?tree=Try&rev=5fe02fed627b Results (out of 74 total builds): exception: 2 success: 56 failure: 16 Builds (or logs if builds failed) available at: http://ftp.mozilla.org/pub/mozilla.org/firefox/try-builds/jhammel@mozilla.com-5fe02fed627b
Comment 25•12 years ago
|
||
This works for windows, testing with a directory structure similar to the automation machines (using ../firefox/firefox as the browser path). Needed to reinstate calling normpath on the browser path because it doesn't make use of ${talos} at the moment. As we talked about briefly on irc, 'file://%s' % os.path.normpath(urllib.quote(test['tpmanifest'], '/\\t:\\') results in pageloader displaying the contents of the manifest in the browser rather than loading the pages (tested on Android 2.3.6). This may warrant further investigation.
Attachment #601755 -
Attachment is obsolete: true
Updated•12 years ago
|
Attachment #602800 -
Flags: review?(jhammel)
Reporter | ||
Comment 26•12 years ago
|
||
Comment on attachment 602800 [details] [diff] [review] Fix for Windows looks good! I still would love to figure out the file:// issue on android
Attachment #602800 -
Flags: review?(jhammel) → review+
Reporter | ||
Comment 27•12 years ago
|
||
pushed to try: https://tbpl.mozilla.org/?tree=Try&rev=642678b88ebd needs testing on android
Whiteboard: [talos-checkin-needed]
Comment 28•12 years ago
|
||
Try run for 642678b88ebd is complete. Detailed breakdown of the results available here: https://tbpl.mozilla.org/?tree=Try&rev=642678b88ebd Results (out of 65 total builds): success: 63 failure: 2 Builds (or logs if builds failed) available at: http://ftp.mozilla.org/pub/mozilla.org/firefox/try-builds/jhammel@mozilla.com-642678b88ebd
Reporter | ||
Comment 29•12 years ago
|
||
looks pretty green pushed: http://hg.mozilla.org/build/talos/rev/1b66e67c9fa5 :chmanchester, can you file a follow-up bug about what you were seeing with the file:/ vs file:// issue? Thanks, and thanks for the patch! Glad it stuck this time
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Updated•12 years ago
|
Whiteboard: [talos-checkin-needed]
You need to log in
before you can comment on or make changes to this bug.
Description
•