Closed Bug 1171825 Opened 9 years ago Closed 9 years ago

[v2.2] Cannot import name TreeherderRequest

Categories

(Firefox OS Graveyard :: Gaia::UI Tests, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(b2g-v2.1 verified, b2g-v2.1S verified, b2g-v2.2 fixed, b2g-master unaffected)

RESOLVED FIXED
2.2 S14 (12june)
Tracking Status
b2g-v2.1 --- verified
b2g-v2.1S --- verified
b2g-v2.2 --- fixed
b2g-master --- unaffected

People

(Reporter: mlien, Assigned: martijn.martijn)

References

Details

Attachments

(3 files)

v2.1 and v2.2 cannot run gaia-ui-test due to import error
below are v2.1 error message:

+ cp /var/lib/jenkins/JenkinsCI/B2G_Resource/GaiaUITest/manifest_flame_v2dot1_dialer.ini /var/lib/jenkins/JenkinsCI/B2G_Flame_2dot1_Kitkat/B2G_Gaia_2dot1/tests/python/gaia-ui-tests/gaiatest/tests/functional/dialer/manifest.ini
+ cp /var/lib/jenkins/JenkinsCI/B2G_Resource/GaiaUITest/manifest_flame_v2dot1_settings.ini /var/lib/jenkins/JenkinsCI/B2G_Flame_2dot1_Kitkat/B2G_Gaia_2dot1/tests/python/gaia-ui-tests/gaiatest/tests/functional/settings/manifest.ini
+ gaiatest --address=localhost:2834 --testvars=/var/lib/jenkins/JenkinsCI/B2G_Resource/GaiaUITest/gaiatestvars_flame_v2dot1.json --xml-output=results/result.xml --html-output=results/index.html --restart --timeout=30000 --type=b2g+smoketest gaiatest/tests/functional/manifest.ini
Traceback (most recent call last):
  File "/var/lib/jenkins/JenkinsCI/B2G_Flame_2dot1_Kitkat/B2G_Gaia_2dot1/tests/python/gaia-ui-tests/.env/bin/gaiatest", line 9, in <module>
    load_entry_point('gaiatest-v2.1==0.1', 'console_scripts', 'gaiatest')()
  File "/var/lib/jenkins/JenkinsCI/B2G_Flame_2dot1_Kitkat/B2G_Gaia_2dot1/tests/python/gaia-ui-tests/.env/local/lib/python2.7/site-packages/distribute-0.6.24-py2.7.egg/pkg_resources.py", line 337, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "/var/lib/jenkins/JenkinsCI/B2G_Flame_2dot1_Kitkat/B2G_Gaia_2dot1/tests/python/gaia-ui-tests/.env/local/lib/python2.7/site-packages/distribute-0.6.24-py2.7.egg/pkg_resources.py", line 2279, in load_entry_point
    return ep.load()
  File "/var/lib/jenkins/JenkinsCI/B2G_Flame_2dot1_Kitkat/B2G_Gaia_2dot1/tests/python/gaia-ui-tests/.env/local/lib/python2.7/site-packages/distribute-0.6.24-py2.7.egg/pkg_resources.py", line 1989, in load
    entry = __import__(self.module_name, globals(),globals(), ['__name__'])
  File "/var/lib/jenkins/JenkinsCI/B2G_Flame_2dot1_Kitkat/B2G_Gaia_2dot1/tests/python/gaia-ui-tests/gaiatest/__init__.py", line 6, in <module>
    from mixins import *
  File "/var/lib/jenkins/JenkinsCI/B2G_Flame_2dot1_Kitkat/B2G_Gaia_2dot1/tests/python/gaia-ui-tests/gaiatest/mixins/__init__.py", line 6, in <module>
    from treeherder import TreeherderOptionsMixin, \
  File "/var/lib/jenkins/JenkinsCI/B2G_Flame_2dot1_Kitkat/B2G_Gaia_2dot1/tests/python/gaia-ui-tests/gaiatest/mixins/treeherder.py", line 19, in <module>
    from thclient import TreeherderRequest, TreeherderJobCollection
ImportError: cannot import name TreeherderRequest
The solution is to pin the treeherder client as we did recently in master:
https://github.com/mozilla-b2g/gaia/commit/1ca290208510ba80c9ed08591d4af682ecf2ba38
Hi Martijn,
I have run it, and it still passes(10/10). Could you please review this patch. Thanks!

[Gaia]v2.2: https://github.com/Lance-k/patch/commit/30da479c8e1dc18e20a6136b56bfa67b9e8c8e1a
Flags: needinfo?(martijn.martijn)
Here is the v2.2 pull request for it. I'll merge it when Treeherder for it is green.
Flags: needinfo?(martijn.martijn)
Depends on: 1166873
Assignee: nobody → martijn.martijn
Summary: Cannot import name TreeherderRequest → [v2.2] Cannot import name TreeherderRequest
Oh, William is also asking for v2.1 and v2.1s versions in bug 1166873, comment 15. I'll do that.
Attached file v2.1 pull request
Attached file v2.1s pull request
Oh, I guess v2.1 and v2.1s don't have Treeherder Try support.
William, I can check in the v2.1, v2.1s and v2.2 pull requests if they look good to you.
Flags: needinfo?(whsu)
(In reply to Martijn Wargers [:mwargers] (QA) from comment #7)
> Oh, I guess v2.1 and v2.1s don't have Treeherder Try support.
> William, I can check in the v2.1, v2.1s and v2.2 pull requests if they look
> good to you.

Please help us uplift patch to v2.1 and v2.1s branch because we encountered the same ERROR on these branches.
Thank you Martijn.

@ v2.1 branch
+ gaiatest --address=localhost:2834 --testvars=/var/lib/jenkins/JenkinsCI/B2G_Resource/gaiatestvars_flame_v2dot1.json --xml-output=results/result.xml --html-output=results/index.html --restart --timeout=30000 --type=b2g+smoketest gaiatest/tests/functional/manifest.ini
Traceback (most recent call last):
  File "/var/lib/jenkins/JenkinsCI/B2G_Flame_2dot1_Kitkat/B2G_Gaia_2dot1/tests/python/gaia-ui-tests/.env/bin/gaiatest", line 9, in <module>
    load_entry_point('gaiatest-v2.1==0.1', 'console_scripts', 'gaiatest')()
  File "/var/lib/jenkins/JenkinsCI/B2G_Flame_2dot1_Kitkat/B2G_Gaia_2dot1/tests/python/gaia-ui-tests/.env/local/lib/python2.7/site-packages/distribute-0.6.24-py2.7.egg/pkg_resources.py", line 337, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "/var/lib/jenkins/JenkinsCI/B2G_Flame_2dot1_Kitkat/B2G_Gaia_2dot1/tests/python/gaia-ui-tests/.env/local/lib/python2.7/site-packages/distribute-0.6.24-py2.7.egg/pkg_resources.py", line 2279, in load_entry_point
    return ep.load()
  File "/var/lib/jenkins/JenkinsCI/B2G_Flame_2dot1_Kitkat/B2G_Gaia_2dot1/tests/python/gaia-ui-tests/.env/local/lib/python2.7/site-packages/distribute-0.6.24-py2.7.egg/pkg_resources.py", line 1989, in load
    entry = __import__(self.module_name, globals(),globals(), ['__name__'])
  File "/var/lib/jenkins/JenkinsCI/B2G_Flame_2dot1_Kitkat/B2G_Gaia_2dot1/tests/python/gaia-ui-tests/gaiatest/__init__.py", line 6, in <module>
    from mixins import *
  File "/var/lib/jenkins/JenkinsCI/B2G_Flame_2dot1_Kitkat/B2G_Gaia_2dot1/tests/python/gaia-ui-tests/gaiatest/mixins/__init__.py", line 6, in <module>
    from treeherder import TreeherderOptionsMixin, \
  File "/var/lib/jenkins/JenkinsCI/B2G_Flame_2dot1_Kitkat/B2G_Gaia_2dot1/tests/python/gaia-ui-tests/gaiatest/mixins/treeherder.py", line 19, in <module>
    from thclient import TreeherderRequest, TreeherderJobCollection
ImportError: cannot import name TreeherderRequest
Flags: needinfo?(whsu)
For future reference, v2.1 is merged to v2.1s, so you don't need to double-land. This is covered on the B2G Landing page.
https://wiki.mozilla.org/Release_Management/B2G_Landing#v2.1S
Target Milestone: --- → 2.2 S14 (12june)
Thanks for the heads-up, Ryan.
Thank you Martijn and Ryan.
Gaia UI test is back. :)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: