Skip to content

Remove the empty playground-merged.yml workflow - #96

Closed
ilicfilip wants to merge 1 commit into
developfrom
filip/remove-empty-playground-workflow
Closed

ilicfilip wants to merge 1 commit into
developfrom
filip/remove-empty-playground-workflow

Conversation

@ilicfilip

Copy link
Copy Markdown
Collaborator

.github/workflows/playground-merged.yml has been an empty (0-byte) file since 74305f0 ("Playground improvement"). The same commit moved the playground logic into playground.yml, which is the "Playground Comment" check that actually runs.

GitHub can't parse an empty workflow file. So on every push it records a failed run with no jobs and no log, titled with the file path instead of a workflow name. This has put a red ✗ on pushes to every branch, including main and develop. It isn't a PR check, so it never blocked merges, but it hides real failures.

Deleting the file removes those failed runs. Nothing else changes.

🤖 Generated with Claude Code

The file has been empty since 74305f0; its playground logic lives in
playground.yml. GitHub can't parse an empty workflow, so every push recorded
a failed run with no jobs on all branches.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown

Test on Playground
Test this pull request on the Playground
or download the zip

@ilicfilip
ilicfilip requested a review from jdevalk November 17, 2026 13:17
jdevalk added a commit that referenced this pull request Nov 18, 2026
#100)

* Add a PHPUnit integration suite and a test workflow

Sets up PHPUnit the way fewer-tags and comment-experience do: yoast/wp-test-utils,
tests/bin/install-wp-tests.sh and `composer test`. The lock file is resolved for
PHP 7.4 (config.platform.php), the lowest version the plugin supports.

The first suite (52 tests) covers the tracking table, option access tracking,
activation/deactivation, the known-plugins mapping, and the REST routes that
change or delete options, including the capability and nonce checks.

test.yml runs it on PHP 7.4/WP 6.7, PHP 8.2/WP latest and PHP 8.4/WP latest
multisite. PHPStan now also skips node_modules, which holds PHP files after
`npm ci`.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

* Add a JS and CSS lint workflow and make both linters pass

`npm run lint:css` could not run at all: the root @wordpress/stylelint-config
^22 pulled in stylelint 14, while @wordpress/scripts 30 ships a config that needs
stylelint 16. Drop the redundant root config (wp-scripts brings its own) and
depend on stylelint 16 directly.

Apply the auto-fixes (whitespace, `bold` to `700`, one Prettier line join) and
baseline the two no-descending-specificity findings, since reordering those rules
would change the cascade.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

* Add the WordPress.org Plugin Check workflow

Copied from comment-experience/brand-assets, with every action pinned to a commit
SHA. It checks the same file set that is deployed (wp dist-archive + .distignore).

Add the direct file access guard to src/autoload.php, the one error Plugin Check
reports. The remaining findings are warnings and do not fail the check.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

* Add image compression for the WordPress.org assets

calibreapp/image-actions, as in brand-assets, limited to images under
.wordpress-org and to pull requests from this repository.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

* Remove the empty playground-merged.yml workflow

The file has been empty since the playground logic moved into playground.yml,
which comments on every pull request. GitHub can't parse an empty workflow, so
each push recorded a failed run. Same change as #96.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

* Fix deactivation autoload and test user leaks

Deactivation re-saved the unchanged option with update_option(), which
returns before touching autoload, so the option stayed autoloaded. Use
wp_set_option_autoload() and assert it in the test.

The two REST tests created their admin user before batch_insert(), whose
COMMIT made the user (and the multisite super admin grant) permanent.
Create the user after the commit so it is rolled back.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com>
Co-authored-by: Filip Ilic <ilic.filip@gmail.com>
@jdevalk

jdevalk commented Nov 18, 2026

Copy link
Copy Markdown
Member

Closing: #100 (now merged into develop as 6ad2f4a) removed the empty playground-merged.yml, so this change is already in.

@jdevalk jdevalk closed this Nov 18, 2026
jdevalk added a commit that referenced this pull request Nov 18, 2026
* Add a PHPUnit integration suite and a test workflow

Sets up PHPUnit the way fewer-tags and comment-experience do: yoast/wp-test-utils,
tests/bin/install-wp-tests.sh and `composer test`. The lock file is resolved for
PHP 7.4 (config.platform.php), the lowest version the plugin supports.

The first suite (52 tests) covers the tracking table, option access tracking,
activation/deactivation, the known-plugins mapping, and the REST routes that
change or delete options, including the capability and nonce checks.

test.yml runs it on PHP 7.4/WP 6.7, PHP 8.2/WP latest and PHP 8.4/WP latest
multisite. PHPStan now also skips node_modules, which holds PHP files after
`npm ci`.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

* Add a JS and CSS lint workflow and make both linters pass

`npm run lint:css` could not run at all: the root @wordpress/stylelint-config
^22 pulled in stylelint 14, while @wordpress/scripts 30 ships a config that needs
stylelint 16. Drop the redundant root config (wp-scripts brings its own) and
depend on stylelint 16 directly.

Apply the auto-fixes (whitespace, `bold` to `700`, one Prettier line join) and
baseline the two no-descending-specificity findings, since reordering those rules
would change the cascade.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

* Add the WordPress.org Plugin Check workflow

Copied from comment-experience/brand-assets, with every action pinned to a commit
SHA. It checks the same file set that is deployed (wp dist-archive + .distignore).

Add the direct file access guard to src/autoload.php, the one error Plugin Check
reports. The remaining findings are warnings and do not fail the check.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

* Add image compression for the WordPress.org assets

calibreapp/image-actions, as in brand-assets, limited to images under
.wordpress-org and to pull requests from this repository.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

* Remove the empty playground-merged.yml workflow

The file has been empty since the playground logic moved into playground.yml,
which comments on every pull request. GitHub can't parse an empty workflow, so
each push recorded a failed run. Same change as #96.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

* Stop autoloading the plugin option on deactivation

The deactivation routine called update_option() with the value it had just read.
update_option() returns early when the value is unchanged, so the autoload flag
was never touched and option_optimizer stayed autoloaded after deactivation. When
the option was missing, the same call created it with a value of false.

Use wp_set_option_autoload() (WP 6.4+, the plugin requires 6.7), which changes
only the flag and does nothing when the option does not exist.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

* Fix deactivation autoload and test user leaks

Deactivation re-saved the unchanged option with update_option(), which
returns before touching autoload, so the option stayed autoloaded. Use
wp_set_option_autoload() and assert it in the test.

The two REST tests created their admin user before batch_insert(), whose
COMMIT made the user (and the multisite super admin grant) permanent.
Create the user after the commit so it is rolled back.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com>
Co-authored-by: Filip Ilic <ilic.filip@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants