Closed
Bug 627308
Opened 14 years ago
Closed 13 years ago
Develop a release config manipulation tool
Categories
(Release Engineering :: General, defect, P2)
Release Engineering
General
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: rail, Assigned: rail)
References
Details
(Whiteboard: [releases][preproduction])
Attachments
(2 files, 3 obsolete files)
14.41 KB,
patch
|
bhearsum
:
review+
rail
:
checked-in+
|
Details | Diff | Splinter Review |
3.67 KB,
patch
|
bhearsum
:
review+
rail
:
checked-in+
|
Details | Diff | Splinter Review |
As a part of automatic pre-production releases we need a tool which:
* Generates pre-production release config using already existing production config. It should be able to change some variables, such as FTP server, ssh username, repositories, etc.
* Bumps already existing configs. It should be able (at least) to bump version, build number.
It would be great, if the output of the bumper would be human readable (like the current configs).
Assignee | ||
Updated•14 years ago
|
Updated•14 years ago
|
Assignee: nobody → rail
Priority: -- → P3
Assignee | ||
Updated•14 years ago
|
Priority: P3 → P2
Assignee | ||
Comment 1•14 years ago
|
||
This version works fine for release configs.
By default it bumps buildNumber and the corresponding variables.
Run with -v to bump version.
At the moment support for pre-production is minimal. It assumes that we don't land any changes on default branch in pre-production repository clone and uses tip as revision and branch for builds>1.
TODO: full support for pre-production by merging already existing pre-production release configs (to be added manually) and production release configs.
Attachment #506680 -
Flags: feedback?(catlee)
Comment 2•14 years ago
|
||
Comment on attachment 506680 [details] [diff] [review]
release_config_bumper.py
Looks good!
Attachment #506680 -
Flags: feedback?(catlee) → feedback+
Assignee | ||
Comment 3•14 years ago
|
||
This tool is supposed to be used in pre-production to clone production repos to preproduction account, bump the version (atm version+1 build1) + override some configs, tag tools and configs repos.
* cleanOutgoingRevs moved to util.hg and reused in some places
* release_config_bumper.py processes only dynamically changing variables, static variables are in the override files (the next patch).
* mozilla-central is not used in clone_config.py because the config is not supposed to be used w/o manual modifications.
Worked fine on local computer using user repo.
Attachment #506680 -
Attachment is obsolete: true
Attachment #521984 -
Flags: review?(bhearsum)
Assignee | ||
Comment 4•14 years ago
|
||
Attachment #521985 -
Flags: review?(bhearsum)
Comment 5•14 years ago
|
||
Comment on attachment 521984 [details] [diff] [review]
tools
Overall this looks pretty good, there's a few things I'd like to see addressed:
- The naming of some things made it hard to understand some of this. Specifically:
-- Using the word "clone" when more than just cloning is happening. I'd suggest re-using "repo_setup" or coming up with something new that encompasses what's happening
-- "bumpBranchConfigs" would be better named as "overrides"
- In bumpReleaseConfig(), can we get rid the conflation of build1BumpVars and build1ProcessVars? Specifically, not adding the former to the latter. That way you can iterate over build1ProcessVars instead of explicitly referring to old* again later.
- I'm not sure I see the need for the "preproduction" option to the release config bumper. It seems like you could drop it completely and have preproduction always passing "tip" for both revision and relbranch.
Can you drop the "preproduction" option and replace it with --preserve-{revision,branch} or similar?
- Please use "relbranch" instead of "branch" as an option name to the release config bumper. Branch is already overloaded enough around here ;).
Apologies for the big delay on getting this reviewed, you're doing good work here!
Attachment #521984 -
Flags: review?(bhearsum) → review-
Comment 6•14 years ago
|
||
Comment on attachment 521985 [details] [diff] [review]
pre-production release overrides
Mostly fine, a few thoughts:
- I don't think staging-stage.b.m.o is the correct ausServerUrl for preproduction
- You've got got enable_repo_setup listed twice
- Until we've got more slaves in preproduction, I think it'd be good to lower the number of l10n chunks. Maybe to 2, to make sure we're still testing the chunking code properly?
I really like the idea of these overrides, hopefully we can do something similar for staging!
Attachment #521985 -
Flags: review?(bhearsum) → review-
Assignee | ||
Comment 7•14 years ago
|
||
(In reply to comment #5)
> - I'm not sure I see the need for the "preproduction" option to the release
> config bumper. It seems like you could drop it completely and have
> preproduction always passing "tip" for both revision and relbranch.
> Can you drop the "preproduction" option and replace it with
Yeah. This is simpler.
> --preserve-{revision,branch} or similar?
--preserve-relbranch won't touch relbranch (useful for chemspills).
Attachment #521984 -
Attachment is obsolete: true
Attachment #523434 -
Flags: review?(bhearsum)
Assignee | ||
Comment 8•14 years ago
|
||
(In reply to comment #6)
> Mostly fine, a few thoughts:
> - I don't think staging-stage.b.m.o is the correct ausServerUrl for
> preproduction
> - You've got got enable_repo_setup listed twice
Ooops.
> - Until we've got more slaves in preproduction, I think it'd be good to lower
> the number of l10n chunks. Maybe to 2, to make sure we're still testing the
> chunking code properly?
OK
> I really like the idea of these overrides, hopefully we can do something
> similar for staging!
Yeah, I hate the fact that we need to adjust configs every time in staging. Maybe it will be a different approach, because we still need release configs as monolithic files to execfile them on slaves.
Attachment #521985 -
Attachment is obsolete: true
Attachment #523437 -
Flags: review?(bhearsum)
Updated•14 years ago
|
Attachment #523437 -
Flags: review?(bhearsum) → review+
Updated•14 years ago
|
Attachment #523434 -
Flags: review?(bhearsum) → review+
Assignee | ||
Comment 9•14 years ago
|
||
Comment on attachment 523434 [details] [diff] [review]
tools
http://hg.mozilla.org/build/tools/rev/5a3b9828c905
Attachment #523434 -
Flags: checked-in+
Assignee | ||
Comment 10•14 years ago
|
||
Comment on attachment 523437 [details] [diff] [review]
pre-production release overrides
http://hg.mozilla.org/build/buildbot-configs/rev/6ae7ca9494ab
Attachment #523437 -
Flags: checked-in+
Assignee | ||
Comment 11•13 years ago
|
||
All done here.
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Updated•11 years ago
|
Product: mozilla.org → Release Engineering
You need to log in
before you can comment on or make changes to this bug.
Description
•