Skip to content

Github PHP changes workflow: remove it - #62609

Merged
ramonjd merged 1 commit into
trunkfrom
remove/php-detection-workflow
Jun 17, 2024
Merged

ramonjd merged 1 commit into
trunkfrom
remove/php-detection-workflow

Conversation

@ramonjd

@ramonjd ramonjd commented Jun 17, 2024

Copy link
Copy Markdown
Member

Removing the PHP changes workflow

Why?

The PHP detections action checks for PHP changes and adds a comment to ask whether a backport is necessary.

Example:

Screenshot 2024-06-17 at 11 28 08 AM

I think it's just noise now that the check backport changelog workflow is in place.

Also to reduce clutter.

@ramonjd ramonjd added the [Type] Build Tooling Issues or PRs related to build tooling label Jun 17, 2024
@ramonjd
ramonjd requested review from ellatrix and noisysocks June 17, 2024 01:28
@ramonjd ramonjd self-assigned this Jun 17, 2024
@ramonjd
ramonjd requested a review from desrosj as a code owner June 17, 2024 01:28
@noisysocks

Copy link
Copy Markdown
Member

Looks good to me unless anyone in @WordPress/gutenberg-core has any objections 👍

@github-actions

github-actions Bot commented Jun 17, 2024 •

Copy link
Copy Markdown

The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the props-bot label.

If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.

Co-authored-by: ramonjd <ramonopoly@git.wordpress.org>
Co-authored-by: tellthemachines <isabel_brison@git.wordpress.org>
Co-authored-by: noisysocks <noisysocks@git.wordpress.org>
Co-authored-by: ellatrix <ellatrix@git.wordpress.org>

To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.

@tellthemachines tellthemachines left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This makes sense, thanks for the cleanup!

@ellatrix

Copy link
Copy Markdown
Member

No objections, if you think the failing test is enough. I was wondering if the backport log test should leave an actual Github comment instead, though there should be a clear error message if you open the test results.

@ramonjd
ramonjd force-pushed the remove/php-detection-workflow branch from a84af57 to c5bd1de Compare June 17, 2024 07:52
@ramonjd
ramonjd enabled auto-merge (squash) June 17, 2024 07:52
@github-actions

Copy link
Copy Markdown

Flaky tests detected in c5bd1de.
Some tests passed with failed attempts. The failures may not be related to this commit but are still reported for visibility. See the documentation for more information.

🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/9543945900
📝 Reported issues:

@ramonjd
ramonjd merged commit 0590511 into trunk Jun 17, 2024
@ramonjd
ramonjd deleted the remove/php-detection-workflow branch June 17, 2024 08:27
@github-actions github-actions Bot added this to the Gutenberg 18.7 milestone Jun 17, 2024
huubl pushed a commit to huubl/gutenberg that referenced this pull request Jun 17, 2024
Co-authored-by: ramonjd <ramonopoly@git.wordpress.org>
Co-authored-by: tellthemachines <isabel_brison@git.wordpress.org>
Co-authored-by: noisysocks <noisysocks@git.wordpress.org>
Co-authored-by: ellatrix <ellatrix@git.wordpress.org>
desrosj added a commit that referenced this pull request Sep 21, 2026
`php-changes-detection.yml` runs on every pull request opened against
this branch (`pull_request: types: [opened, synchronize]`, with no
branch filter) and, whenever the PR touches `lib/`, `phpunit/` or any
`packages/**/*.php` file, posts and then keeps updating a bot comment
asking the author to confirm whether the change needs to be synced to
WordPress Core "and therefore featured in the next release of
WordPress", recommending a new Trac ticket and a matching pull request
against `WordPress/wordpress-develop`.

That prompt only makes sense for work landing on `trunk`. `wp/6.6`
mirrors the Gutenberg code already shipped in WordPress 6.6; PHP changes
made here are maintenance for an already-released version, coordinated
through the backport process for that specific release rather than
discovered by a bot comment. The workflow's only effect on this branch
is a comment giving the wrong instructions.

Upstream reached the same conclusion for `trunk` and deleted the
workflow outright in #62609 (2024-06-17). `wp/6.6` branched from `trunk`
on 2024-05-31, a couple of weeks before that removal landed, which is
the only reason the file is still here.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DtSAAJkQ9P6vPtDumqStg8
desrosj added a commit that referenced this pull request Sep 21, 2026
`php-changes-detection.yml` has no branch or path filter, so it runs on every
single pull request opened against this branch. When a pull request touches
PHP, it posts (and keeps updating) a bot comment asking the author to confirm
whether the change needs syncing to WordPress Core, to open a Trac ticket, and
to send a matching `wordpress-develop` pull request so the change is "featured
in the next release of WordPress".

That prompt is wrong on `wp/6.5`. This branch exists to hold the Gutenberg
code that shipped with WordPress 6.5, released in April 2024; work landing
here is not a candidate for the next WordPress release, and the Core sync it
points contributors toward happens from `trunk`. The comment is inaccurate
guidance, and on the remaining pull requests it is a job that runs on every
push to produce nothing.

`trunk` removed this workflow outright in #62609 for the same reason — noise,
superseded by the backport-changelog workflow, which postdates this branch and
does not exist here.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DtSAAJkQ9P6vPtDumqStg8
desrosj added a commit that referenced this pull request Sep 22, 2026
`php-changes-detection.yml` runs on every pull request opened against
this branch (`pull_request: types: [opened, synchronize]`, with no
branch filter) and, whenever the PR touches `lib/`, `phpunit/` or any
`packages/**/*.php` file, posts and then keeps updating a bot comment
asking the author to confirm whether the change needs to be synced to
WordPress Core "and therefore featured in the next release of
WordPress", recommending a new Trac ticket and a matching pull request
against `WordPress/wordpress-develop`.

That prompt only makes sense for work landing on `trunk`. `wp/6.6`
mirrors the Gutenberg code already shipped in WordPress 6.6; PHP changes
made here are maintenance for an already-released version, coordinated
through the backport process for that specific release rather than
discovered by a bot comment. The workflow's only effect on this branch
is a comment giving the wrong instructions.

Upstream reached the same conclusion for `trunk` and deleted the
workflow outright in #62609 (2024-06-17). `wp/6.6` branched from `trunk`
on 2024-05-31, a couple of weeks before that removal landed, which is
the only reason the file is still here.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DtSAAJkQ9P6vPtDumqStg8
desrosj added a commit that referenced this pull request Sep 22, 2026
`php-changes-detection.yml` has no branch or path filter, so it runs on every
single pull request opened against this branch. When a pull request touches
PHP, it posts (and keeps updating) a bot comment asking the author to confirm
whether the change needs syncing to WordPress Core, to open a Trac ticket, and
to send a matching `wordpress-develop` pull request so the change is "featured
in the next release of WordPress".

That prompt is wrong on `wp/6.5`. This branch exists to hold the Gutenberg
code that shipped with WordPress 6.5, released in April 2024; work landing
here is not a candidate for the next WordPress release, and the Core sync it
points contributors toward happens from `trunk`. The comment is inaccurate
guidance, and on the remaining pull requests it is a job that runs on every
push to produce nothing.

`trunk` removed this workflow outright in #62609 for the same reason — noise,
superseded by the backport-changelog workflow, which postdates this branch and
does not exist here.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DtSAAJkQ9P6vPtDumqStg8
desrosj added a commit that referenced this pull request Sep 22, 2026
`php-changes-detection.yml` runs on every pull request opened against
this branch (`pull_request: types: [opened, synchronize]`, with no
branch filter) and, whenever the PR touches `lib/`, `phpunit/` or any
`packages/**/*.php` file, posts and then keeps updating a bot comment
asking the author to confirm whether the change needs to be synced to
WordPress Core "and therefore featured in the next release of
WordPress", recommending a new Trac ticket and a matching pull request
against `WordPress/wordpress-develop`.

That prompt only makes sense for work landing on `trunk`. `wp/6.6`
mirrors the Gutenberg code already shipped in WordPress 6.6; PHP changes
made here are maintenance for an already-released version, coordinated
through the backport process for that specific release rather than
discovered by a bot comment. The workflow's only effect on this branch
is a comment giving the wrong instructions.

Upstream reached the same conclusion for `trunk` and deleted the
workflow outright in #62609 (2024-06-17). `wp/6.6` branched from `trunk`
on 2024-05-31, a couple of weeks before that removal landed, which is
the only reason the file is still here.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DtSAAJkQ9P6vPtDumqStg8
desrosj added a commit that referenced this pull request Sep 22, 2026
`php-changes-detection.yml` has no branch or path filter, so it runs on every
single pull request opened against this branch. When a pull request touches
PHP, it posts (and keeps updating) a bot comment asking the author to confirm
whether the change needs syncing to WordPress Core, to open a Trac ticket, and
to send a matching `wordpress-develop` pull request so the change is "featured
in the next release of WordPress".

That prompt is wrong on `wp/6.5`. This branch exists to hold the Gutenberg
code that shipped with WordPress 6.5, released in April 2024; work landing
here is not a candidate for the next WordPress release, and the Core sync it
points contributors toward happens from `trunk`. The comment is inaccurate
guidance, and on the remaining pull requests it is a job that runs on every
push to produce nothing.

`trunk` removed this workflow outright in #62609 for the same reason — noise,
superseded by the backport-changelog workflow, which postdates this branch and
does not exist here.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DtSAAJkQ9P6vPtDumqStg8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

[Type] Build Tooling Issues or PRs related to build tooling

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants