Closed Bug 1279016 Opened 8 years ago Closed 8 years ago

dont query_post_upload_cmd env var if not in buildbot infra

Categories

(Release Engineering :: Applications: MozharnessCore, defect)

defect
Not set
normal

Tracking

(firefox50 fixed)

RESOLVED FIXED
Tracking Status
firefox50 --- fixed

People

(Reporter: pmoore, Assigned: pmoore)

References

Details

Attachments

(1 file, 1 obsolete file)

When taskcluster builds run in mozharness, the BuildbotMixin is inherited, even though the build is running in taskcluster. For windows try pushes, query_who gets called but cannot handle self.buildbot_config not being set.

I guess this problem must be solved for linux 64 builds, I'm not sure how though. I propose to handle with

if not self.buildbot_config:
   ....

However, maybe there is a more elegant way?
Looks like the linux builds use a fake buildprops.json:

https://hg.mozilla.org/mozilla-central/file/cb493102af8a/testing/docker/desktop-build/Dockerfile#l24

I don't want to do that in the windows builds, so I'll apply a fix to the code instead.
Attached patch bug1279016_gecko_v1.patch (obsolete) — Splinter Review
That should do it.
Assignee: nobody → pmoore
Status: NEW → ASSIGNED
Attachment #8761554 - Flags: review?(jlund)
Summary: testing/mozharness/mozharness/mozilla/buildbot.py should handle self.buildbot_config not being set in query_who method → dont query_post_upload_cmd env var if not in buildbot infra
Comment on attachment 8761554 [details] [diff] [review]
bug1279016_gecko_v1.patch

pmoore and I decided to condition of the call that invokes query_who instead
Attachment #8761554 - Attachment is obsolete: true
Attachment #8761554 - Flags: review?(jlund)
Comment on attachment 8762679 [details]
Bug 1279016 - dont query_post_upload_cmd env var if not in buildbot infra,

https://reviewboard.mozilla.org/r/59218/#review56252

Awesome!!!! Thanks Jordan. =)
Attachment #8762679 - Flags: review?(pmoore) → review+
https://hg.mozilla.org/integration/mozilla-inbound/rev/b1e2e1c0e5912f7ad331950b63871a72ac2807a5
Bug 1279016 - dont query_post_upload_cmd env var if not in buildbot infra, r=pmoore
https://hg.mozilla.org/mozilla-central/rev/b1e2e1c0e591
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: