Closed Bug 1085762 Opened 6 years ago Closed 6 years ago

MozMill test step "get buildId" is failing to find the application.ini / doesn't run tests due to path changes

Categories

(Thunderbird :: Testing Infrastructure, defect)

All
macOS
defect
Not set
normal

Tracking

(thunderbird34 fixed, thunderbird35 fixed, thunderbird36 fixed)

RESOLVED FIXED
Thunderbird 36.0
Tracking Status
thunderbird34 --- fixed
thunderbird35 --- fixed
thunderbird36 --- fixed

People

(Reporter: ewong, Assigned: standard8)

References

(Depends on 1 open bug)

Details

(Whiteboard: [red needs bug 1084139 fixing])

Attachments

(1 file)

Seeing this bustage in OSX debug test Mozmill:

Traceback (most recent call last):
  File "/builds/slave/talos-slave/test/tools/buildfarm/utils/printbuildrev.py", line 19, in <module>
    buildid = appini.get('App', 'BuildID')
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ConfigParser.py", line 599, in get
    raise NoSectionError(section)
ConfigParser.NoSectionError: No section: 'App'
program finished with exit code 1
elapsedTime=0.040062

Same issue with bug 1084139.

application.ini has been moved to ./Resources.
Bug 1084139 is only part of the reason these are busted. The tests aren't running due to:

['/builds/slave/talos-slave/test/build/mozmill/../mozmill-virtualenv/bin/python', 'runtest.py', '-t', 'account', '--binary', '.././Daily.app', '--symbols-path', 'http://ftp.mozilla.org/pub/mozilla.org/thunderbird/tinderbox-builds/comm-central-macosx64/1413885721/thunderbird-36.0a1.en-US.mac.crashreporter-symbols.zip']
Could not find the Mozilla runtime.
Using profile dir: /builds/slave/talos-slave/test/build/mozmill/mozmillprofile
Traceback (most recent call last):
  File "runtest.py", line 513, in <module>
    ThunderTestCLI().run()
  File "/builds/slave/talos-slave/test/build/mozmill-virtualenv/lib/python2.7/site-packages/mozmill/__init__.py", line 785, in run
    self.mozmill.start(runner=runner, profile=runner.profile)
  File "/builds/slave/talos-slave/test/build/mozmill-virtualenv/lib/python2.7/site-packages/mozmill/__init__.py", line 229, in start
    self.create_network()
  File "/builds/slave/talos-slave/test/build/mozmill-virtualenv/lib/python2.7/site-packages/mozmill/__init__.py", line 203, in create_network
    self.jsbridge_port)
  File "/builds/slave/talos-slave/test/build/mozmill-virtualenv/lib/python2.7/site-packages/jsbridge/__init__.py", line 72, in wait_and_create_network
    raise Exception("Sorry, cannot connect to jsbridge extension, port %s" % port)
Exception: Sorry, cannot connect to jsbridge extension, port 24242

They don't like the relative path for some reason. I have a patch for that.
Summary: MozMill test step "get buildId" is failing to find the application.ini. → MozMill test step "get buildId" is failing to find the application.ini / doesn't run tests due to path changes
This switches us to use absolute directories - I suspect there's something wacky with paths or something.

It gets us working locally and on the builders. Try run is here:

https://tbpl.mozilla.org/?tree=Thunderbird-Try&rev=cd2fb5ac6f08

I suspect OSX is still red due to the other half of this issue.
Attachment #8509315 - Flags: review?(Pidgeot18)
(In reply to Mark Banner (:standard8) (away until 23rd Oct) from comment #2)
> I suspect OSX is still red due to the other half of this issue.

(Though the tests run with this).
Attachment #8509315 - Flags: review?(Pidgeot18) → review+
https://hg.mozilla.org/comm-central/rev/b7c94ef88334
Assignee: nobody → standard8
Status: NEW → RESOLVED
Closed: 6 years ago
Depends on: 1084139
Hardware: x86 → All
Resolution: --- → FIXED
Whiteboard: [red needs bug 1084139 fixing]
Target Milestone: --- → Thunderbird 36.0
Comment on attachment 8509315 [details] [diff] [review]
Use absolute directories for mozmill

[Triage Comment]
Taking to aurora & beta to fix bustage there as well.
Attachment #8509315 - Flags: approval-comm-beta+
Attachment #8509315 - Flags: approval-comm-aurora+
You need to log in before you can comment on or make changes to this bug.