Closed
Bug 1003361
Opened 12 years ago
Closed 12 years ago
b2g tagging script
Categories
(Release Engineering :: General, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: mozilla, Assigned: mozilla)
References
()
Details
(Whiteboard: [mozharness][b2g])
Attachments
(3 files, 1 obsolete file)
|
13.97 KB,
patch
|
rail
:
review+
mozilla
:
checked-in+
|
Details | Diff | Splinter Review |
|
8.35 KB,
patch
|
rail
:
review+
mozilla
:
checked-in+
|
Details | Diff | Splinter Review |
|
3.01 KB,
patch
|
rail
:
review+
mozilla
:
checked-in+
|
Details | Diff | Splinter Review |
| Assignee | ||
Updated•12 years ago
|
Whiteboard: [mozharness][b2g]
| Assignee | ||
Comment 1•12 years ago
|
||
| Assignee | ||
Comment 2•12 years ago
|
||
Attachment #8420481 -
Attachment is obsolete: true
Attachment #8421240 -
Flags: review?(rail)
Comment 3•12 years ago
|
||
Comment on attachment 8421240 [details] [diff] [review]
b2g_tag
Review of attachment 8421240 [details] [diff] [review]:
-----------------------------------------------------------------
::: scripts/merge_day/b2g_tag.py
@@ +98,5 @@
> + By default everything in self.config['b2g_branches'],
> + but we can override that list with --gecko-repos.
> + """
> + if self.gecko_repos:
> + return self.gecko_repos
Just a random idea, not related to the current review.
I see this pattern (if self.prop: return prop) almost everywhere in mozharness. We could use @property and use (or implement) LRU cache (like in https://docs.python.org/3/library/functools.html#functools.lru_cache) to get rid of the boilerplate and make the code more readable.
Something like this:
@property
@lru_cache()
def gecko_repos(self):
gecko_repos = self.config.get("gecko_repos", self.config['b2g_branches'].keys())
gecko_repos.sort()
return gecko_repos
And later in the code reference as self.gecko_repos.
@@ +191,5 @@
> + if self.run_command(cmd, cwd=hg_dir, error_list=HgErrorList):
> + raise VCSException("Can't tag %s with %s" % (repo_name, tag_name))
> + # Debugging! Echo only for now.
> + # cmd = hg + ["push", push_url]
> + cmd = ["echo"] + hg + ["push", push_url]
Do you still need to "echo"?
@@ +229,5 @@
> + ):
> + raise VCSException("Can't tag gaia for %s!" % hg_repo_name)
> + if self.run_command(
> + # Debugging! Echo only for now.
> + ["echo"] + git + ["push", "--tags"],
the same here
@@ +269,5 @@
> + git + ["pull"],
> + cwd=dirs['abs_gaia_dir'],
> + error_list=GitErrorList,
> + halt_on_failure=True,
> + )
Feature request: add something like "hg strip --no-backup 'outgoing()'" here. Not critical.
Attachment #8421240 -
Flags: review?(rail) → review+
| Assignee | ||
Comment 4•12 years ago
|
||
Comment on attachment 8421240 [details] [diff] [review]
b2g_tag
https://hg.mozilla.org/build/mozharness/rev/7b6bc80e7c15
Landed, with the echos for now... I'm going to be a bit cautious until this works properly next merge day.
Attachment #8421240 -
Flags: checked-in+
| Assignee | ||
Updated•12 years ago
|
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
| Assignee | ||
Comment 5•12 years ago
|
||
| Assignee | ||
Comment 6•12 years ago
|
||
I'm going to keep this open til I see it working properly on merge day.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
| Assignee | ||
Comment 7•12 years ago
|
||
This:
* adds some load_json_from_url output
* fixes query_gecko_repos() (can't sort a tuple)
* adds a clean-repos action that strips the gecko repos and |git tag -d|s the gaia repo.
Attachment #8421443 -
Flags: review?(rail)
Comment 8•12 years ago
|
||
Comment on attachment 8421443 [details] [diff] [review]
fix_b2g_tag
Review of attachment 8421443 [details] [diff] [review]:
-----------------------------------------------------------------
lgtm
Attachment #8421443 -
Flags: review?(rail) → review+
| Assignee | ||
Comment 9•12 years ago
|
||
Comment on attachment 8421443 [details] [diff] [review]
fix_b2g_tag
https://hg.mozilla.org/build/mozharness/rev/3afedb2df2cf
Attachment #8421443 -
Flags: checked-in+
| Assignee | ||
Comment 10•12 years ago
|
||
Updated•12 years ago
|
Attachment #8437361 -
Flags: review?(rail) → review+
| Assignee | ||
Comment 12•12 years ago
|
||
Comment on attachment 8437361 [details] [diff] [review]
b2g_tag.diff
https://hg.mozilla.org/build/mozharness/rev/c5738f6ef014
Attachment #8437361 -
Flags: checked-in+
| Assignee | ||
Updated•12 years ago
|
Status: REOPENED → RESOLVED
Closed: 12 years ago → 12 years ago
Resolution: --- → FIXED
Comment 13•12 years ago
|
||
Live with reconfig on 2014-06-11 08:47 PT
Updated•9 years ago
|
Component: Tools → General
You need to log in
before you can comment on or make changes to this bug.
Description
•