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

Remove unneeded and deprecated methods/actions #586

Merged

Conversation

spencertransier
Copy link
Contributor

@spencertransier spencertransier commented Aug 31, 2024

What does it do?

This PR builds on Gio's #580 to remove some additional unneeded or deprecated methods and actions for the 12.0 release. The versioning methods and actions have been replaced by the methods in the Versioning module.

Checklist before requesting a review

  • Run bundle exec rubocop to test for code style violations and recommendations
  • Add Unit Tests (aka specs/*_spec.rb) if applicable
  • Run bundle exec rspec to run the whole test suite and ensure all your tests pass
  • Make sure you added an entry in the CHANGELOG.md file to describe your changes under the appropriate existing ### subsection of the existing ## Trunk section.
  • If applicable, add an entry in the MIGRATION.md file to describe how the changes will affect the migration from the previous major version and what the clients will need to change and consider.

Comment on lines -4 to -5
require_relative '../../helper/ios/ios_version_helper'
require_relative '../../helper/android/android_version_helper'
Copy link
Contributor Author

Choose a reason for hiding this comment

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

These version helpers are not being used in this action.

Comment on lines -4 to -5
require_relative '../../helper/ios/ios_version_helper'
require_relative '../../helper/android/android_version_helper'
Copy link
Contributor Author

Choose a reason for hiding this comment

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

These version helpers are not being used in this action.

Comment on lines 4 to -5
require_relative '../../helper/ios/ios_version_helper'
require_relative '../../helper/android/android_version_helper'
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This version helper is not being used in this action.

Copy link
Contributor

Choose a reason for hiding this comment

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

A bit strange that this action is in common/ yet use ios_version_helper (to call Fastlane::Helper::Ios::VersionHelper.calc_next_release_version(last_stone[:title]))…
I mean, in practice I guess it doesn't matter because the computation for the next_release_version is the same for iOS and Android, which is why we ended up using an arbitrary one I guess, but still the unbalance feels a bit strange.

Not really a problem for this PR, and I'm guessing we'll plan to deprecate this action in a few months once everything have migrated to ReleaseV2 and that ReleaseV2 will be the one creating the new milestones instead of Fastlane… so not worth fixing anyway 🙃

Comment on lines -10 to -11
require_relative '../../helper/ios/ios_version_helper'

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This version helper is not being used in this action.

@dangermattic
Copy link
Collaborator

dangermattic commented Aug 31, 2024

1 Warning
⚠️ This PR is larger than 500 lines of changes. Please consider splitting it into smaller PRs for easier and faster reviews.

Generated by 🚫 Danger

Copy link
Contributor Author

Choose a reason for hiding this comment

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

You can see this method in the WooCommerce iOS Fastfile for an example of how to use the Versioning module methods to check for a hotfix: https://github.com/woocommerce/woocommerce-ios/blob/dcfbf67c24fec624bd1935a465aeff373a0aaf01/fastlane/Fastfile#L1391

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Similar to Android in https://github.com/wordpress-mobile/release-toolkit/pull/580/files, the ios_tag_build action is not being used by any of the Automattic apps in lieu of using the GitHub release system to tag builds.

Copy link
Contributor Author

@spencertransier spencertransier Aug 31, 2024

Choose a reason for hiding this comment

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

This action is not being used by any of the Automattic apps, so I decided to delete it so that the get_public_version method could be removed.

@spencertransier spencertransier added this to the 12.0.0 milestone Aug 31, 2024
@spencertransier spencertransier marked this pull request as ready for review August 31, 2024 07:28
@spencertransier spencertransier requested review from mokagio and a team August 31, 2024 07:28
Copy link
Contributor

@AliSoftware AliSoftware left a comment

Choose a reason for hiding this comment

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

What a nice cleanup! 👏 👏

@@ -1,46 +0,0 @@
module Fastlane
module Actions
class IosValidateCiBuildAction < Action
Copy link
Contributor

Choose a reason for hiding this comment

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

I wasn't even aware we had such an action to begin with 😅

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.

Thanks @spencertransier !

:shipit:

@mokagio mokagio merged commit 64f8db3 into mokagio/breaking-remove-deprecated-actions Sep 2, 2024
8 of 11 checks passed
@mokagio mokagio deleted the remove/deprecated-methods branch September 2, 2024 22:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants