Skip to content

[flutter_conductor] fix auto-tagging branch point#98618

Merged
fluttergithubbot merged 6 commits intoflutter:masterfrom
chris-forks:conductor-fix-branch-point-better
Feb 19, 2022
Merged

[flutter_conductor] fix auto-tagging branch point#98618
fluttergithubbot merged 6 commits intoflutter:masterfrom
chris-forks:conductor-fix-branch-point-better

Conversation

@christopherfujino
Copy link
Contributor

@christopherfujino christopherfujino commented Feb 16, 2022

Fixes #92809

When I initially implemented the ensureBranchPointTagged() method, I had it early exit unless the increment was m.

This PR removes that check, and instead explicitly checks the branch point for a release tag. If it already has one, it exits early. In addition, there is an assert that verifies the n value of the next version is 0 (if it's not 0, then we are in a bad state and likely cannot recover).

In addition, this PR overrides the branch point check if --force was provided.

@flutter-dashboard flutter-dashboard bot added the c: contributor-productivity Team-specific productivity, code health, technical debt. label Feb 16, 2022
@christopherfujino christopherfujino force-pushed the conductor-fix-branch-point-better branch from c887a32 to 0ca30cc Compare February 17, 2022 20:21
@christopherfujino
Copy link
Contributor Author

friendly ping @itsjustkevin & @godofredoc

return requestedVersion;
}
assert(
requestedVersion.n == 0,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will this only apply to betas?

Copy link
Contributor Author

@christopherfujino christopherfujino Feb 18, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we hit this point during a stable release, it's too late to auto-tag the branch point, because we've already done beta releases, in which case it makes sense for the assert to fail and to proceed we'll have to just override this check.

As another point, right now this check is overridden by the --force flag. However, per Kevin, we're already having to use that flag each time because the branch names do not match the release versions. I'm guessing I should make separate override flags for each check?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, hopefully we don't get behind on creating the new beta branches anymore to not have to use force anymore.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In thinking more about this, I think rather than an assert and fail, I will just print a warning to STDERR that we're skipping this and exit the function.

@fluttergithubbot fluttergithubbot merged commit 74881c1 into flutter:master Feb 19, 2022
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Feb 19, 2022
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Feb 19, 2022
engine-flutter-autoroll added a commit to engine-flutter-autoroll/plugins that referenced this pull request Feb 19, 2022
clocksmith pushed a commit to clocksmith/flutter that referenced this pull request Mar 8, 2022
@christopherfujino christopherfujino deleted the conductor-fix-branch-point-better branch March 24, 2022 01:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

c: contributor-productivity Team-specific productivity, code health, technical debt.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

beta releases should always ensure the branch point between the release and master is tagged

3 participants