Closed
Bug 1175219
Opened 10 years ago
Closed 10 years ago
Strange error message when urlopen request for crash reporter symbols fails: "AttributeError: addinfourl instance has no attribute '__exit__'"
Categories
(Testing :: Talos, defect)
Testing
Talos
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: mstange, Assigned: mstange)
References
Details
Attachments
(1 file)
1.61 KB,
patch
|
jmaher
:
review+
|
Details | Diff | Splinter Review |
as observed on http://ftp.mozilla.org/pub/mozilla.org/firefox/try-builds/mchang@mozilla.com-f4c35b8e21d8/try-win32/try_xp-ix_test-chromez-bm111-tests1-windows-build216.txt.gz :
> 17:30:24 INFO - Mon Jun 15 17:30:23 2015 MainThread Retrieving symbol zip from https://queue.taskcluster.net/v1/task/lY3aydKoSlazObCfRmNJYA/artifacts/public/build/firefox-41.0a1.en-US.win32.crashreporter-symbols.zip...
> 17:30:24 ERROR - Traceback (most recent call last):
> 17:30:24 INFO - File "C:\slave\test\build\venv\Scripts\talos-script.py", line 9, in <module>
> 17:30:24 INFO - load_entry_point('talos==0.0', 'console_scripts', 'talos')()
> 17:30:24 INFO - File "C:\slave\test\build\venv\lib\site-packages\talos\run_tests.py", line 336, in main
> 17:30:24 INFO - sys.exit(run_tests(parser))
> 17:30:24 INFO - File "C:\slave\test\build\venv\lib\site-packages\talos\run_tests.py", line 267, in run_tests
> 17:30:24 INFO - talos_results.add(mytest.runTest(browser_config, test))
> 17:30:24 INFO - File "C:\slave\test\build\venv\lib\site-packages\talos\ttest.py", line 297, in runTest
> 17:30:24 INFO - return self._runTest(browser_config, test_config)
> 17:30:24 INFO - File "C:\slave\test\build\venv\lib\site-packages\talos\ttest.py", line 655, in _runTest
> 17:30:24 INFO - browser_config['symbols_path']
> 17:30:24 INFO - File "C:\slave\test\build\venv\lib\site-packages\talos\profiler\symbolication.py", line 136, in integrate_symbol_zip_from_url
> 17:30:24 INFO - with urllib2.urlopen(symbol_zip_url, None, 30) as io:
> 17:30:24 INFO - AttributeError: addinfourl instance has no attribute '__exit__'
> 17:30:24 ERROR - Return code: 1
> 17:30:24 WARNING - setting return code to 1
> 17:30:24 ERROR - # TBPL WARNING #
Taskcluster is down at the moment. I've never seen this error message before, so I think it's only shown when the request fails.
Googling for the error message leads me to believe that urlopen shouldn't be used together with "with" unless you're using python 3.
Assignee | ||
Comment 1•10 years ago
|
||
Attachment #8623176 -
Flags: review?(jmaher)
Comment 2•10 years ago
|
||
Comment on attachment 8623176 [details] [diff] [review]
patch
Review of attachment 8623176 [details] [diff] [review]:
-----------------------------------------------------------------
this looks nice
Attachment #8623176 -
Flags: review?(jmaher) → review+
Comment 3•10 years ago
|
||
Can we land this? The error is still happening:
https://treeherder.mozilla.org/#/jobs?repo=try&revision=4e739add6d23
Comment 4•10 years ago
|
||
Assignee | ||
Comment 5•10 years ago
|
||
Thanks Joel.
I don't really expect this fix to fix Mason's problem, though, but you never know.
Comment 6•10 years ago
|
||
Should'nt we close this bug ? I suppose that the landed patch fixed the issue here.
Updated•10 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Comment 7•10 years ago
|
||
This indeed fixed the talos profiling issue on try. Thanks!
You need to log in
before you can comment on or make changes to this bug.
Description
•