WordPress / WordPress/performance

Plugin deploy workflow does not work for initial plugin deployment

Open
#2,032 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

[Type] Bug Infrastructure
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=true being 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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.