Closed
Bug 737809
Opened 13 years ago
Closed 13 years ago
release sanity should check if the current release is runnable on the current master
Categories
(Release Engineering :: General, defect, P2)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: rail, Assigned: nthomas)
Details
(Whiteboard: [release-sanity][release])
Attachments
(1 file)
|
2.35 KB,
patch
|
catlee
:
review+
nthomas
:
checked-in+
|
Details | Diff | Splinter Review |
... by reading master.json and comparing release_branches with the version in configs and command line.
Comment 1•13 years ago
|
||
we hit this on the 12.0b2 release, accidentally kicking off builds on the wrong master.
Severity: normal → major
Priority: -- → P2
Whiteboard: [release-sanity][release]
Updated•13 years ago
|
Assignee: nobody → nrthomas
| Assignee | ||
Comment 2•13 years ago
|
||
Attachment #608584 -
Flags: review?(catlee)
Comment 3•13 years ago
|
||
Comment on attachment 608584 [details] [diff] [review]
[tools] add check in release sanity
Review of attachment 608584 [details] [diff] [review]:
-----------------------------------------------------------------
::: buildbot-helpers/release_sanity.py
@@ +84,5 @@
> run_cmd(cmd)
>
> +def verify_branch(branch, productName):
> + masterConfig = json.load(open('master_config.json'))
> + if (productName != 'fennec' and branch not in masterConfig['release_branches']) or \
safe to say if productName == 'firefox' here?
@@ +87,5 @@
> + masterConfig = json.load(open('master_config.json'))
> + if (productName != 'fennec' and branch not in masterConfig['release_branches']) or \
> + (productName == 'fennec' and branch not in masterConfig['mobile_release_branches']):
> + success = False
> + log.error("branch %s isn't enabled for %s" % (branch, productName))
you can also do
log.error("branch %s isn't enabled for %s", branch, productName)
which for some reason I find easier to write
Attachment #608584 -
Flags: review?(catlee) → review+
| Assignee | ||
Comment 4•13 years ago
|
||
Comment on attachment 608584 [details] [diff] [review]
[tools] add check in release sanity
(In reply to Chris AtLee [:catlee] from comment #3)
> > + if (productName != 'fennec' and branch not in masterConfig['release_branches']) or \
> safe to say if productName == 'firefox' here?
That works, but I wrote it this way to avoid breaking thunderbird/seamonkey.
> you can also do
> log.error("branch %s isn't enabled for %s", branch, productName)
> which for some reason I find easier to write
That's much nicer, so I did that in
http://hg.mozilla.org/build/tools/rev/e4b03abe54fc
Attachment #608584 -
Flags: checked-in+
| Assignee | ||
Updated•13 years ago
|
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Updated•12 years ago
|
Product: mozilla.org → Release Engineering
Updated•7 years ago
|
Component: General Automation → General
You need to log in
before you can comment on or make changes to this bug.
Description
•