-
Notifications
You must be signed in to change notification settings - Fork 10.7k
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
[testing workflows] Add workflow_call trigger in CI workflow - support daily and other types of runs #47612
Conversation
Test using WordPress PlaygroundThe changes in this pull request can be previewed and tested using a WordPress Playground instance. 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. |
…d-workflow-call-event # Conflicts: # plugins/woocommerce/package.json # tools/monorepo-utils/dist/index.js
…d-workflow-call-event
Hi , @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: |
use: { ...devices[ 'Desktop Chrome' ] }, | ||
testIgnore: | ||
/.*smoke-tests\/*|.*js-file-monitor\/*|.*admin-tasks\/*|.*activate-and-setup\/*|.*admin-analytics\/*|.*admin-marketing\/*/, | ||
}, |
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.
Nice use of projects here. Think this'll be a great way to segment the different types of tests we need to run.
Submission Review Guidelines:
Changes proposed in this Pull Request:
Prep work for #47532
Adds the
workflow_call
trigger forci.yml
. This makes it possible to trigger the jobs defined inci.yml
by other events.Instead of defining all the possible triggers in ci.yml directly, I think it would be cleaner to have other workflows that are triggered by those events (e.g. cron) and have those workflows call
ci.yml
with specific inputs (e.g.daily-e2e
,release-checks
, etc.).This PR adds the
tests-daily-run.yml
workflow which will run on a schedule and callci.yml
with thedaily-e2e
input. Theci-jobs
utility will return a jobs matrix with only those jobs configured to run ondaily-e2e
event - currently onlyCore e2e tests - Gutenberg
.I only configured the Gutenberg job as an example and to test it. All other daily or release test projects will be configured in follow-up PRs and
smoke-test-daily.yml
andsmoke-test-release.yml
will be deprecated.I had to update the events for all test jobs in all projects files so that they will not run on daily runs. I did not update the lint jobs because they are restricted at workflow level since #47652.
How to test the changes in this Pull Request:
Using the WooCommerce Testing Instructions Guide, include your detailed testing instructions:
workflow_call
event bytests-daily-run.yml
withinputs.trigger=daily-e2e
. Only the e2e tests with Gutenberg ran (ignore the lint jobs, they will not run once [ci] Only run lint jobs on pull_request event #47652 is merged). The tests are expected to fail, you can ignore the results.