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

Fix broken WooCommerce Beta Tester release action #47593

Merged
merged 1 commit into from
May 21, 2024

Conversation

moon0326
Copy link
Contributor

@moon0326 moon0326 commented May 17, 2024

Submission Review Guidelines:

Changes proposed in this Pull Request:

This PR fixes broken WooCommerce Beta Tester release action.

Changes:

  • Install and build plugin-woocommerce
  • Remove install: @woocommerce/plugin-woocommerce-beta-tester as install and build commands are part of Build WooCommerce Beta Tester Zip workflow

How to test the changes in this Pull Request:

  1. Make sure everything looks good.
  2. Go to https://github.com/woocommerce/woocommerce/actions/workflows/release-wc-beta-tester.yml and click on Run workflow
  3. Change branch to fix/fix-broken-beta-tester-release-action.
  4. Enter 2.3.1 and run the job.

fix/fix-broken-beta-tester-release-action branch has the same changes, without Create release workflow for testing purposes.

Changelog entry

  • Automatically create a changelog entry from the details below.

Significance

  • Patch
  • Minor
  • Major

Type

  • Fix - Fixes an existing bug
  • Add - Adds functionality
  • Update - Update existing functionality
  • Dev - Development related task
  • Tweak - A minor adjustment to the codebase
  • Performance - Address performance issues
  • Enhancement - Improvement to existing functionality

Message

Fix broken WooCommerce Beta Tester release action.

Comment

@github-actions github-actions bot added the focus: monorepo infrastructure Issues and PRs related to monorepo tooling. label May 17, 2024
Copy link
Contributor

github-actions bot commented May 17, 2024

Hi @ilyasfoo, @chihsuan, @ObliviousHarmony, @woocommerce/ghidorah, @woocommerce/vortex

Apart from reviewing the code changes, please make sure to review the testing instructions as well.

You can follow this guide to find out what good testing instructions should look like:
https://github.com/woocommerce/woocommerce/wiki/Writing-high-quality-testing-instructions

Copy link
Contributor

Hi @ilyasfoo, @chihsuan, @ObliviousHarmony, @woocommerce/ghidorah

Apart from reviewing the code changes, please make sure to review the testing instructions as well.

You can follow this guide to find out what good testing instructions should look like:
https://github.com/woocommerce/woocommerce/wiki/Writing-high-quality-testing-instructions

Copy link
Contributor

Test using WordPress Playground

The changes in this pull request can be previewed and tested using a WordPress Playground instance.
WordPress Playground is an experimental project that creates a full WordPress instance entirely within the browser.

Test this pull request with WordPress Playground.

Note that this URL is valid for 30 days from when this comment was last updated. You can update it by closing/reopening the PR or pushing a new commit.

@chihsuan chihsuan requested a review from a team May 20, 2024 02:19
Copy link
Member

@chihsuan chihsuan left a comment

Choose a reason for hiding this comment

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

Tested well! 👍 just a comment to confirm the build command is needed or not.

@@ -20,7 +20,8 @@ jobs:
- name: Setup WooCommerce Monorepo
uses: ./.github/actions/setup-woocommerce-monorepo
with:
install: '@woocommerce/plugin-woocommerce-beta-tester'
install: '@woocommerce/plugin-woocommerce'
build: '@woocommerce/plugin-woocommerce'
Copy link
Member

Choose a reason for hiding this comment

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

Do we need to build the woocommerce plugin for WooCommerce Beta Tester release? If not, I think we can remove the build command. 🤔

Copy link
Contributor Author

@moon0326 moon0326 May 20, 2024

Choose a reason for hiding this comment

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

@chihsuan To be honest, I don't fully understand why we need it...but it was needed to fix the errors. My best guess is that the packages in packages/js are built with plugin-woocommerce and that is needed in wc beta tester

Copy link
Contributor

Choose a reason for hiding this comment

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

Interesting, sounds like improperly declared dependencies pnpm should handle that.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@psealock I don't see anything obvious in https://github.com/woocommerce/woocommerce/blob/trunk/plugins/woocommerce-beta-tester/package.json

What do you think about merging it for now and following up to look into it further?

Copy link
Contributor

Choose a reason for hiding this comment

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

It's because plugins/woocommerce-beta-tester doesn't adhere to the monorepo's command structure. It only builds itself as opposed to all child dependencies. It needs to be updated with the correct build, lint, and watch:build scripts along with their associated tool/language specific scripts.

In the interest of fixing the action I think it would be fine to move forward like this. We should, however, get the scripts updated in the beta tester. cc @woocommerce/vortex

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks @ObliviousHarmony for the explanation. I'll go ahead and merge this for now.

@moon0326 moon0326 merged commit f57de64 into trunk May 21, 2024
33 checks passed
@moon0326 moon0326 deleted the fix/fix-broken-beta-tester-release-action-job branch May 21, 2024 22:28
thealexandrelara pushed a commit that referenced this pull request Jul 18, 2024
Install and build the core -- removed woocomemrce beta install since it is part of build:zip command
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
focus: monorepo infrastructure Issues and PRs related to monorepo tooling.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants