Closed
Bug 1439694
Opened 7 years ago
Closed 7 years ago
ImportError jsonschema when running talos locally
Categories
(Testing :: Talos, defect)
Tracking
(firefox60 fixed, firefox61 fixed)
RESOLVED
FIXED
mozilla61
People
(Reporter: Alex_Gaynor, Assigned: rwood)
References
Details
(Whiteboard: [PI:March])
Attachments
(1 file)
Steps to reproduce:
1) rm -rf obj-*/testing/talos-venv/ (or $OBJDIR) is for you
2) env MOZCONFIG=(pwd)/mozconfig-opt MOZ_UPLOAD_DIR=(pwd)/sync-profile ./mach talos-test --activeTests sessionrestore --geckoProfile --cycles=1 --tpcycles=1 - this will work cleanly, the virtualenv is created, jsonschema is installed, and works fine
3) env MOZCONFIG=(pwd)/mozconfig-opt MOZ_UPLOAD_DIR=(pwd)/sync-profile ./mach talos-test --activeTests sessionrestore --geckoProfile --cycles=1 --tpcycles=1 - (the same command) this fails like so:
[...]
13:55:43 INFO - Thanks for running Talos locally. Results are in ['/Users/agaynor/projects/mozilla-central/testing/mozharness/build/local.json']
13:55:43 INFO - Return code: 0
13:55:43 INFO - Running post-action listener: _package_coverage_data
13:55:43 INFO - Running post-action listener: _resource_record_post_action
13:55:43 INFO - [mozharness: 2018-02-20 18:55:43.729577Z] Finished run-tests step (failed)
13:55:43 FATAL - Uncaught exception: Traceback (most recent call last):
13:55:43 FATAL - File "/Users/agaynor/projects/mozilla-central/testing/mozharness/mozharness/base/script.py", line 2059, in run
13:55:43 FATAL - self.run_action(action)
13:55:43 FATAL - File "/Users/agaynor/projects/mozilla-central/testing/mozharness/mozharness/base/script.py", line 1998, in run_action
13:55:43 FATAL - self._possibly_run_method(method_name, error_if_missing=True)
13:55:43 FATAL - File "/Users/agaynor/projects/mozilla-central/testing/mozharness/mozharness/base/script.py", line 1938, in _possibly_run_method
13:55:43 FATAL - return getattr(self, method_name)()
13:55:43 FATAL - File "/Users/agaynor/projects/mozilla-central/testing/mozharness/mozharness/mozilla/testing/talos.py", line 730, in run_tests
13:55:43 FATAL - self._validate_treeherder_data(parser)
13:55:43 FATAL - File "/Users/agaynor/projects/mozilla-central/testing/mozharness/mozharness/mozilla/testing/talos.py", line 599, in _validate_treeherder_data
13:55:43 FATAL - import jsonschema
13:55:43 FATAL - File "/Users/agaynor/projects/mozilla-central/build/mach_bootstrap.py", line 363, in __call__
13:55:43 FATAL - module = self._original_import(name, globals, locals, fromlist, level)
13:55:43 FATAL - ImportError: No module named jsonschema
13:55:43 FATAL - Running post_fatal callback...
13:55:43 FATAL - Exiting -1
13:55:43 INFO - Running post-run listener: _resource_record_post_run
13:55:43 INFO - Running post-run listener: _upload_blobber_files
13:55:43 WARNING - Blob upload gear skipped. Missing cmdline options.
13:55:43 INFO - Running post-run listener: copy_logs_to_upload_dir
13:55:43 INFO - Copying logs to upload dir...
Assignee | ||
Updated•7 years ago
|
Whiteboard: [PI:February]
Assignee | ||
Updated•7 years ago
|
Assignee: nobody → rwood
Status: NEW → ASSIGNED
Assignee | ||
Comment 1•7 years ago
|
||
Comment hidden (mozreview-request) |
Assignee | ||
Comment 3•7 years ago
|
||
Comment on attachment 8954186 [details]
Bug 1439694 - Fix jsonschema import error when running talos locally;
Cancelling the review, this solution doesn't work for tp6 since tp6 uses a different py3 venv
Attachment #8954186 -
Flags: review?(jmaher)
Comment hidden (mozreview-request) |
Comment 5•7 years ago
|
||
mozreview-review |
Comment on attachment 8954186 [details]
Bug 1439694 - Fix jsonschema import error when running talos locally;
https://reviewboard.mozilla.org/r/223342/#review229992
Attachment #8954186 -
Flags: review?(jmaher) → review+
Assignee | ||
Comment 6•7 years ago
|
||
Comment hidden (mozreview-request) |
Assignee | ||
Comment 8•7 years ago
|
||
Assignee | ||
Comment 9•7 years ago
|
||
Note: Don't land this until it's tested on the new moonshot hardware (which will be re-landing in Bug 1431161)
Depends on: 1431161
Assignee | ||
Comment 10•7 years ago
|
||
Assignee | ||
Comment 11•7 years ago
|
||
Comment 10 is a try push of this jsonschema patch but running on the new moonshot win10 h/w
Updated•7 years ago
|
Whiteboard: [PI:February] → [PI:March]
Comment hidden (mozreview-request) |
Assignee | ||
Comment 13•7 years ago
|
||
Comment 14•7 years ago
|
||
Pushed by rwood@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/f249c97b9d35
Fix jsonschema import error when running talos locally; r=jmaher
Comment 15•7 years ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
status-firefox61:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla61
Comment 16•7 years ago
|
||
bugherder uplift |
status-firefox60:
--- → fixed
You need to log in
before you can comment on or make changes to this bug.
Description
•