Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(52)

Issue 6025012: Change logic to auto-rev for latest_release and sticky branch. (Closed)

Created:
9 years, 12 months ago by sosa
Modified:
9 years, 6 months ago
Reviewers:
anush
CC:
chromium-os-reviews_chromium.org, Mandeep Singh Baines, anush, sosa
Visibility:
Public.

Description

Change logic to auto-rev for latest_release and sticky branch. Also some cleanup and fixing so we don't create unnecessary ebuilds. I noticed that both the latest release and stable release code were trying to rev the same branch whenever we moved to a new stable version. It was harmless before but now that we're pushing this as stable we want exactly to have the minimum number of revs that are correct Change-Id: I9f834d35be8e85c27ab0505ec81637f9a3c27b88 BUG= TEST=Unittests and mocked in my own directory by creating new stable branch. Committed: http://chrome-svn/viewvc/chromeos?view=rev&revision=70311cd

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+13 lines, -1 line) Patch
M bin/cros_mark_chrome_as_stable.py View 2 chunks +13 lines, -1 line 0 comments Download

Messages

Total messages: 2 (0 generated)
sosa
I think based on our convo, this is what we want. We want to have ...
9 years, 12 months ago (2010-12-29 22:58:50 UTC) #1
anush
9 years, 12 months ago (2010-12-29 23:10:39 UTC) #2
Lgtm.
On Dec 29, 2010 2:58 PM, <sosa@chromium.org> wrote:
> Reviewers: anush,
>
> Message:
> I think based on our convo, this is what we want. We want to have as
> stable the
> latest release. This sort partially gets around the prebuilts issue
because
> this only gets revved once a day by Chrome. That way there is a high
chance
> this is done in the middle of the night so we'll have prebuilts for the
> mario
> board from our internal builds.
>
> The prebuilts issue and keeping chrome ahead are going to be an issue till

> we
> solve the prebuilts problem. This won't be solved until we all get back
> next
> week but this might get us pretty close to what we want without killing
> developers productivity every time they sync on the mario board.
>
> Description:
> Change logic to auto-rev for latest_release and sticky branch.
>
> Also some cleanup and fixing so we don't create unnecessary ebuilds.
> I noticed that both the latest release and stable release code
> were trying to rev the same branch whenever we moved to a new stable
> version. It was harmless before but now that we're pushing this as
> stable we want exactly to have the minimum number of revs that are
> correct
>
> Change-Id: I9f834d35be8e85c27ab0505ec81637f9a3c27b88
>
> BUG=
> TEST=Unittests and mocked in my own directory by creating new stable
> branch.
>
> Please review this at http://codereview.chromium.org/6025012/
>
> SVN Base: http://git.chromium.org/git/crosutils.git@master
>
> Affected files:
> M bin/cros_mark_chrome_as_stable.py
>
>
> Index: bin/cros_mark_chrome_as_stable.py
> diff --git a/bin/cros_mark_chrome_as_stable.py
> b/bin/cros_mark_chrome_as_stable.py
> index
>
d7a75605e60c04a8182dc94c0b50a07d5981a148..dc006a7b92f0e2aa4a1d42d76087997e33f4a783

> 100755
> --- a/bin/cros_mark_chrome_as_stable.py
> +++ b/bin/cros_mark_chrome_as_stable.py
> @@ -264,9 +264,12 @@ def MarkChromeEBuildAsStable(stable_candidate,
> unstable_ebuild, chrome_rev,
>
> new_ebuild_path = base_path + ('%s-r1.ebuild' % portage_suffix)
>
> + # Mark latest release and sticky branches as stable.
> + mark_stable = chrome_rev != TIP_OF_TRUNK
> +
> cros_mark_as_stable.EBuildStableMarker.MarkAsStable(
> unstable_ebuild.ebuild_path, new_ebuild_path, 'CROS_SVN_COMMIT',
> commit,
> - make_stable=False)
> + make_stable=mark_stable)
> new_ebuild = ChromeEBuild(new_ebuild_path)
> if stable_candidate and (
> stable_candidate.chrome_version == new_ebuild.chrome_version):
> @@ -321,12 +324,21 @@ def main():
> commit_to_use = _GetTipOfTrunkSvnRevision()
> elif chrome_rev == LATEST_RELEASE:
> version_to_uprev = _GetLatestRelease()
> + # Don't rev on stable branch for latest_release.
> + if re.match('%s\.\d+' % sticky_branch, version_to_uprev):
> + Info('Latest release is sticky branch. Nothing to do.')
> + return
> else:
> version_to_uprev = _GetLatestRelease(sticky_branch)
>
> stable_candidate = FindChromeUprevCandidate(stable_ebuilds, chrome_rev,
> sticky_branch)
>
> + if stable_candidate:
> + Info('Stable candidate found %s' % stable_candidate)
> + else:
> + Info('No stable candidate found.')
> +
> os.chdir(overlay_dir)
> work_branch = cros_mark_as_stable.GitBranch(
> cros_mark_as_stable.STABLE_BRANCH_NAME, options.tracking_branch)
>
>

Powered by Google App Engine
This is Rietveld 408576698