Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Tooling] Fix hotfix lanes #1373

Merged
merged 2 commits into from
Aug 4, 2021
Merged

[Tooling] Fix hotfix lanes #1373

merged 2 commits into from
Aug 4, 2021

Conversation

AliSoftware
Copy link
Contributor

@AliSoftware AliSoftware commented Jul 30, 2021

Part of the paaHJt-1WQ-p2 project.

Note: In the case of SNiOS, not much has been changed on the hotfix lanes as part of this PR (except the lane's description to make them more descriptive), but as part of this project, it's still worth going through the test scenario below to ensure that hotfix were already working as expected (and didn't break in the past but got unnoticed)

To test

  • Checkout this branch, run bundle install
  • Run bundle exec fastlane new_hotfix_release version:4.40.1
  • Verify that it cut a release/4.40.1 branch from the 4.40 tag
  • Verify that it bumped the version in Version.public.xcconfig and fastlane/Deliverfile (*)
  • cherry-pick all the commits from this PR on top of the release/4.40.1 branch. This is because we are gonna test the updated finalize lanes, and need to be on the hotfix release branch to test them. (You might get conflicts during the cherry-pick)
  • Open the CircleCI page for SNiOS in advance, to be ready to cancel the release build
  • Run bundle exec fastlane finalize_release. You should get an error telling you that you should use finalize_hotfix_release for hotfix branches instead
  • Run bundle exec fastlane finalize_hotfix_release and verify that it triggered a release build, and that is is building it from the release/4.40.1 hotfix branch. Cancel the CI build immediately.
  • Delete the release/4.40.1 branch (from both local and remote)

A note on Deliverfile bump

@mokagio is working on removing the Deliverfile – see wordpress-mobile/release-toolkit#287 – in our repos, to run deliver as part of a lane to which we'll explicitly pass the right parameters, including the version, hence the bump not needing to change the app version in Deliverfile anymore in the future.

This means that once @mokagio's work lands, the hotfix lanes will need to be amended again, to specify that the Deliverfile should not be updated as part of any version bump… including hotfix ones. This work will be done separately to the hotfix alignment work from this PR, to avoid postponing things too much and blocking the project.

@AliSoftware AliSoftware added the tooling Related to anything that supports the building & maintaining of the project. label Jul 30, 2021
@AliSoftware AliSoftware added this to the 4.42 milestone Jul 30, 2021
@AliSoftware AliSoftware requested a review from a team July 30, 2021 15:31
@AliSoftware AliSoftware self-assigned this Jul 30, 2021
@peril-automattic
Copy link

You can trigger optional UI/connected tests for these changes by visiting CircleCI here.

@peril-automattic
Copy link

You can trigger an installable build for these changes by visiting CircleCI here.

@AliSoftware AliSoftware changed the title Align hotfix lanes with other repos' [Tooling] Fix hotfix lanes Jul 30, 2021
Copy link
Contributor

@mokagio mokagio left a comment

Choose a reason for hiding this comment

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

  • Verify that it cut a release/4.40.1 branch from the 4.40 tag
  • Verify that it bumped the version in Version.public.xcconfig and fastlane/Deliverfile (*)
  • Run bundle exec fastlane finalize_release. You should get an error telling you that you should use finalize_hotfix_release for hotfix branches instead
  • Run bundle exec fastlane finalize_hotfix_release and verify that it triggered a release build, and that is is building it from the release/4.40.1 hotfix branch. Cancel the CI build immediately.

All checks! 👍

@@ -193,7 +193,7 @@ end
# bundle exec fastlane new_hotfix_release version:10.6.1
# bundle exec fastlane new_hotfix_release skip_confirm:true version:10.6.1
#####################################################################################
desc "Creates a new hotfix branch from the given tag"
desc 'Creates a new hotfix branch for the given version:x.y.z. The branch will be cut from the tag x.y of the previous release'
Copy link
Contributor

Choose a reason for hiding this comment

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

See my comment here: woocommerce/woocommerce-ios#4703 (comment)

I'm mentioning it not because I feel strongly that it should be addressed, but just in case you look at one PR before the other.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Noted. Sadly, some of the other PRs that are aligning the hotfix lanes in other repos have already been merged with that same description. With that and the fact that I'm not sure what could be a nice wording that explains this but also doesn't make the description too complex to understand trying to cover all cases, I'm not sure if it's worth re-opening yet another PR on the other repos just to fix that wording on the repos that have already had their hotfix-lane-PRs merged? wdyt?

Copy link
Contributor

Choose a reason for hiding this comment

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

I agree with you. This can stay the way it is. 👍

ship it

@AliSoftware AliSoftware merged commit 258298a into develop Aug 4, 2021
@AliSoftware AliSoftware deleted the tooling/hotfix-lanes branch August 4, 2021 21:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tooling Related to anything that supports the building & maintaining of the project.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants