Closed Bug 1195463 Opened 10 years ago Closed 10 years ago

Windows sendchange failure: exceptions.KeyError: partialMarUrl/packageUrl

Categories

(Release Engineering :: General, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: aleth, Assigned: mshal)

Details

Attachments

(1 file)

Busts comm-central Linux and Windows builds, e.g. https://treeherder.mozilla.org/logviewer.html#?job_id=22748&repo=comm-central https://treeherder.mozilla.org/logviewer.html#?job_id=22751&repo=comm-central ========= Started sendchange (results: 2, elapsed: 0 secs) (at 2015-08-15 15:48:31.016943) ========= [Failure instance: Traceback: <type 'exceptions.KeyError'>: 'packageUrl' /builds/buildbot/build1/lib/python2.7/site-packages/twisted/internet/defer.py:260:addCallback /builds/buildbot/build1/lib/python2.7/site-packages/twisted/internet/defer.py:249:addCallbacks /builds/buildbot/build1/lib/python2.7/site-packages/twisted/internet/defer.py:441:_runCallbacks /builds/buildbot/build1/lib/python2.7/site-packages/buildbot-0.8.2_hg_808f68cc2960_production_0.8-py2.7.egg/buildbot/process/buildstep.py:769:_startStep_2 --- <exception caught here> --- /builds/buildbot/build1/lib/python2.7/site-packages/buildbotcustom/steps/misc.py:109:start /builds/buildbot/build1/lib/python2.7/site-packages/buildbot-0.8.2_hg_808f68cc2960_production_0.8-py2.7.egg/buildbot/process/properties.py:108:render /builds/buildbot/build1/lib/python2.7/site-packages/buildbot-0.8.2_hg_808f68cc2960_production_0.8-py2.7.egg/buildbot/process/properties.py:106:render /builds/buildbot/build1/lib/python2.7/site-packages/buildbot-0.8.2_hg_808f68cc2960_production_0.8-py2.7.egg/buildbot/process/properties.py:194:render /builds/buildbot/build1/lib/python2.7/site-packages/buildbot-0.8.2_hg_808f68cc2960_production_0.8-py2.7.egg/buildbot/process/properties.py:169:__getitem__ /builds/buildbot/build1/lib/python2.7/site-packages/buildbot-0.8.2_hg_808f68cc2960_production_0.8-py2.7.egg/buildbot/process/properties.py:50:__getitem__ ] ========= Finished sendchange (results: 2, elapsed: 0 secs) (at 2015-08-15 15:48:31.017954) =========
Appears to have resolved itself on Linux for some reason. Windows still fails with exceptions.KeyError: 'partialMarUrl'
Summary: Linux/Windows sendchange failure: 'exceptions.KeyError': 'packageUrl' in buildstep.py:769:_startStep_2 → Windows sendchange failure: 'exceptions.KeyError': 'partialMarUrl' in buildstep.py:769:_startStep_2
Windows now fails with [Failure instance: Traceback: <type 'exceptions.KeyError'>: 'packageUrl'] No obvious reason for the change.
Summary: Windows sendchange failure: 'exceptions.KeyError': 'partialMarUrl' in buildstep.py:769:_startStep_2 → Windows sendchange failure: exceptions.KeyError: partialMarUrl/packageUrl
Nick, please can you say what could be wrong here? The mar files and also the binaries are on the ftp server.
Flags: needinfo?(nthomas)
mshal, you might know more here. It appears that packageUrl is not being parsed out of make upload output, eg at http://buildbot-master85.bb.releng.scl3.mozilla.com:8001/builders/TB%20WINNT%205.2%20comm-central%20build/builds/32. This is using the old-school method, no mach automation or TC here. aleth, Paenglab - it would be super helpful to know when this first started.
Flags: needinfo?(nthomas) → needinfo?(mshal)
(In reply to Nick Thomas [:nthomas] from comment #17) > aleth, Paenglab - it would be super helpful to know when this first started. August 15 - which means the earliest possible time for when it actually broke would be sometime August 14.
I think the problem is that previously, the output from post_upload.py passed straight through to the terminal, whereas now it is captured using check_output(). Somewhere along the way, the line endings are becoming '\r\n' instead of '\n', which the regex doesn't recognize. Eg: stdout in parse_make_upload() looks like: 'mozmake.exe[1]: Entering directory \'c:/builds/moz2_slave/tb-c-cen-w32-00000000000000000/build/objdir-tb/mail/installer\'\r\nmkdir -p `dirname \'../../dist//thunderbird-43.0a1.en-US.win32.checksums\'`\r\n... Just replacing \r\n with \n makes the regex work again.
Flags: needinfo?(mshal)
Assignee: nobody → mshal
Attachment #8653633 - Flags: review?(nthomas)
Comment on attachment 8653633 [details] [diff] [review] make-upload-newlines Could also use "\n".join([stdout, stderr]).strip() by the looks, but I know you checked the windows case already and swapping would require more verification.
Attachment #8653633 - Flags: review?(nthomas) → review+
I take it back about strip(), that's not gonna work. Full steam ahead with the patch you have.
Michael, any ideas why this may still be an issue?
Flags: needinfo?(mshal)
Looks like the fix wasn't merged to production, fixed with https://hg.mozilla.org/build/buildbotcustom/rev/d4e96f6e1349, it'll deploy in 40 minutes. Rerunning the windows builds on c-c 35d8f81ac152 to test.
Oops, should have waited for the actual deployment before rebuilding. There third pair of windows builds on 35d8f81ac152 will have it.
And they were green.
Status: NEW → RESOLVED
Closed: 10 years ago
Flags: needinfo?(mshal)
Resolution: --- → FIXED
Component: General Automation → General
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: