WordPress / WordPress/performance
Plugin deploy workflow does not work for initial plugin deployment
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 461
- Forks
- 165
- Avg merge
- 11h 12m
- Merged PRs (30d)
- 28
Description
Bug Description
I just did a dry run test of deploying the view-transitions plugin in a first version (see #1997).
The workflow failed because in the "Check if deployment is needed" step the workflow makes an API request to WordPress.org, which leads to a 404 because the plugin isn't launched yet. So it's not the right conclusion to not deploy because of that.
We should probably change it so that:
- either a 404 error just leads to
deploy=truebeing set, because there is no version deployed yet - or (maybe safer) for new plugins we require an extra flag to still proceed in this case (or bypass the whole check entirely)
Here's the failing workflow: https://github.com/WordPress/performance/actions/runs/15401715502/job/43335668619
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the failing workflow run and inspect the "Check if deployment is needed" step, especially its WordPress.org API request and handling of a 404 response. Confirm the intended behavior for an initial plugin deployment with a maintainer, then verify that the workflow no longer skips a valid first deployment and still handles existing plugins correctly.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- github-actions, wordpress
- Domain
- ci-cd, release
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100