Closes #1250: Fix publish_mcp_abilities workflow after CI migration - #1252
Conversation
… workflow bin/install-wp-tests.sh was deleted in #1229 when test.yml/test_legacy.yml were migrated to the shared wp-media/workflows composite actions, but publish_mcp_abilities.yml was missed, so every tag push failed at the "Install tests" step. Align it with the migrated workflows: use setup-php-composer + setup-wp-tests composite actions and a mysql service container, dropping the now-redundant SVN/Strauss/manual-install steps. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Up to standards ✅🟢 Issues
|
| Metric | Results |
|---|---|
| Coverage variation | Report missing for cd27ae41 |
| Diff coverage | ✅ ∅ diff coverage (50.00%) |
Coverage variation details
Coverable lines Covered lines Coverage Common ancestor commit (cd27ae4) Report Missing Report Missing Report Missing Head commit (22ba39c) 20475 1613 7.88% Coverage variation is the difference between the coverage for the head and common ancestor commits of the pull request branch:
<coverage of head commit> - <coverage of common ancestor commit>
Diff coverage details
Coverable lines Covered lines Diff coverage Pull request (#1252) 0 0 ∅ (not applicable) Diff coverage is the percentage of lines that are covered by tests out of the coverable lines that the pull request added or modified:
<covered lines added or modified>/<coverable lines added or modified> * 100%
1 Codacy didn't receive coverage data for the commit, or there was an error processing the received data. Check your integration for errors and validate that your coverage setup is correct.
NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.
Description
Fixes #1250
The
Publish MCP Abilities to ARD Serviceworkflow failed on every tag push because itsDump Imagify abilities catalog (WP latest, PHP 8.2)job still calledbin/install-wp-tests.sh, a script deleted in #1229 during the CI migration to thewp-media/workflowscomposite actions.publish_mcp_abilities.ymlwas missed in that migration, so the abilities catalog was never published on release. Users are not directly impacted, but the release pipeline was broken.Type of change
Detailed scenario
What was tested
test.ymlandtest_legacy.ymlto confirm it uses the same composite actions,composer-options: '', mysql service container, and problem matchers.How to test
.github/workflows/publish_mcp_abilities.ymlno longer referencesbin/install-wp-tests.shand that the removed script is not needed elsewhere.Dump Imagify abilities catalogjob againsttest.yml/test_legacy.yml— setup should be thesetup-php-composer@main+setup-wp-tests@maincomposite actions plus the mysql service container.Dump Imagify abilities catalog (WP latest, PHP 8.2)job installs the WP test suite and proceeds to dump and upload the abilities catalog without exit code 127.Affected Features & Quality Assurance Scope
publish_mcp_abilities.ymlrelease workflow.Technical description
Documentation
publish_mcp_abilities.ymlwas aligned with the workflows migrated in #1229. The obsolete manual setup steps —Install SVN,Start mysql service, composer cache directory steps,Install Strauss,Install dependencies,Install tests, and theMysql8 auth plugin workaround— were removed and replaced with the shared composite actions:wp-media/workflows/.github/actions/setup-php-composer@main(withcomposer-options: ''so the Strauss post-install script runs)wp-media/workflows/.github/actions/setup-wp-tests@main(wp-version: latest)A
mysql:8.0service container was added, matchingtest.yml, sincesetup-wp-testsexpects the DB to be available (the old manual mysql start / auth workaround are no longer needed).Mandatory Checklist
Code validation
Code style
Unticked items justification
This is a CI-workflow YAML change with no PHP code: