-
Notifications
You must be signed in to change notification settings - Fork 800
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
Adding a skeleton of wpcomsh to experiment with running tests. #35792
Conversation
47b8c55
to
f735c3d
Compare
Thank you for your PR! When contributing to Jetpack, we have a few suggestions that can help us test and review your patch:
This comment will be updated as you work on your PR and make changes. If you think that some of those checks are not needed for your PR, please explain why you think so. Thanks for cooperation 🤖 The e2e test report can be found here. Please note that it can take a few minutes after the e2e tests checks are complete for the report to be available. Once your PR is ready for review, check one last time that all required checks appearing at the bottom of this PR are passing or skipped. Jetpack plugin: The Jetpack plugin has different release cadences depending on the platform:
If you have any questions about the release process, please ask in the #jetpack-releases channel on Slack. Wpcomsh plugin:
If you have any questions about the release process, please ask in the #jetpack-releases channel on Slack. |
Are you an Automattician? Please test your changes on all WordPress.com environments to help mitigate accidental explosions.
Interested in more tips and information?
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Didn't look too closely at the skeleton, just at the rest of the setup.
// Add WooCommerce tests. | ||
$matrix[] = array( | ||
'name' => 'PHP tests: PHP 7.4 WP latest with WPCOMSH', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
// Add WooCommerce tests. | |
$matrix[] = array( | |
'name' => 'PHP tests: PHP 7.4 WP latest with WPCOMSH', | |
// Add wpcomsh tests. | |
$matrix[] = array( | |
'name' => 'PHP tests: PHP 8.1 WP latest with WPCOMSH', |
$matrix[] = array( | ||
'name' => 'PHP tests: PHP 7.4 WP latest with WPCOMSH', | ||
'script' => 'test-php', | ||
'php' => '8.1', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wonder if we can avoid hard-coding 8.1 here, to avoid having to remember to update this in the future when Atomic's minimum PHP version changes.
Might it make sense to read wpcomsh's composer.json for .require.php
, which I think will probably be ">=8.1", and strip out the ">=" to determine the version to use?
@@ -160,6 +160,16 @@ if [[ "$WITH_WOOCOMMERCE" == true ]]; then | |||
echo "::endgroup::" | |||
fi | |||
|
|||
# Install WooCommerce plugin used for some Jetpack integration tests. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
# Install WooCommerce plugin used for some Jetpack integration tests. | |
# Install wpcomsh plugin used for some Jetpack integration tests. |
echo "::group::Installing wpcomsh into WordPress" | ||
|
||
mkdir "/tmp/wordpress-$WP_BRANCH/src/wp-content/mu-plugins" | ||
cp -r "/tmp/wordpress-$WP_BRANCH/src/wp-content/plugins/wpcomsh/src" "/tmp/wordpress-$WP_BRANCH/src/wp-content/mu-plugins/wpcomsh" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems wrong. If we need to move it into mu-plugins at all, it should probably be like this
cp -r "/tmp/wordpress-$WP_BRANCH/src/wp-content/plugins/wpcomsh/src" "/tmp/wordpress-$WP_BRANCH/src/wp-content/mu-plugins/wpcomsh" | |
cp -r "/tmp/wordpress-$WP_BRANCH/src/wp-content/plugins/wpcomsh" "/tmp/wordpress-$WP_BRANCH/src/wp-content/mu-plugins/wpcomsh" |
@@ -46,6 +46,7 @@ jobs: | |||
NODE_VERSION: ${{ matrix.node }} | |||
MONOREPO_BASE: ${{ github.workspace }} | |||
WITH_WOOCOMMERCE: ${{ matrix.with-woocommerce }} | |||
WITH_WPCOMSH: ${{ matrix.with-wpcomsh }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will you need something below around line 86 as well?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This file being here instead of in projects/plugins/wpcomsh/wpcomsh.php
seems wrong too.
Superceded by #37737 |
This is a draft PR, DO NOT MERGE.
Proposed changes:
Other information:
Jetpack product discussion
Does this pull request change what data or activity we track or use?
Testing instructions: