Closed Bug 943860 Opened 11 years ago Closed 11 years ago

Autophone - detect tree/procname by detecting branch in repo rather than checking for exact matches

Categories

(Testing Graveyard :: Autophone, defect)

All
Android
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: bc, Assigned: bc)

References

Details

Attachments

(2 files)

Attached patch build-repo.patchSplinter Review
When testing local fennec builds in Autophone I found that the logic in builds.py:build_metadata would not detect the repo properly due to the fact that my local builds did not have the canonical repo url in application.ini's SourceRepository. I think checking for the branch substrings is sufficient rather than the more restrictive check for equality.
Attachment #8339277 - Flags: review?(mcote)
Blocks: 943873
Assignee: nobody → bclary
Status: NEW → ASSIGNED
Comment on attachment 8339277 [details] [diff] [review]
build-repo.patch

Review of attachment 8339277 [details] [diff] [review]:
-----------------------------------------------------------------

Makes sense, since I imagine most people won't check out source to a weird directory name.

It's fine as it is, but now it looks more clearly redundant...I might loop over a tuple of tuples of the form (tree, proc_name), e.g. (('mozilla-central', 'org.mozilla.fennec'), ('mozilla-inbound', 'org.mozilla.fennec'), ...) instead of all the if clauses.  Avoids repeating the tree name string and thus reduces possibilities for typos.
Attachment #8339277 - Flags: review?(mcote) → review+
updated to iterate over tuples
https://github.com/mozilla/autophone/commit/cfc19311aed6cd995d4d63f9927b2ac9ae3f1701
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Product: Testing → Testing Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: