Closed Bug 627308 Opened 14 years ago Closed 13 years ago

Develop a release config manipulation tool

Categories

(Release Engineering :: General, defect, P2)

defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: rail, Assigned: rail)

References

Details

(Whiteboard: [releases][preproduction])

Attachments

(2 files, 3 obsolete files)

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).
Blocks: 627307
No longer depends on: 627307
Assignee: nobody → rail
Priority: -- → P3
Priority: P3 → P2
Attached patch release_config_bumper.py (obsolete) — Splinter Review
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 on attachment 506680 [details] [diff] [review] release_config_bumper.py Looks good!
Attachment #506680 - Flags: feedback?(catlee) → feedback+
Attached patch tools (obsolete) — Splinter Review
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)
Attached patch pre-production release overrides (obsolete) — Splinter Review
Attachment #521985 - Flags: review?(bhearsum)
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 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-
Attached patch toolsSplinter Review
(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)
(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)
Attachment #523437 - Flags: review?(bhearsum) → review+
Attachment #523434 - Flags: review?(bhearsum) → review+
All done here.
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Product: mozilla.org → Release Engineering
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: