Skip to content

chore: download WPGraphQL from WordPress.org in wp-env configs - #836

Open
josephfusco wants to merge 1 commit into
mainfrom
chore/fix-wpgraphql-download-url
Open

josephfusco wants to merge 1 commit into
mainfrom
chore/fix-wpgraphql-download-url

Conversation

@josephfusco

Copy link
Copy Markdown
Member

wp-env start fails for every environment that installs WPGraphQL from its GitHub "latest release" URL:

✖ Response code 404 (Not Found)

wp-graphql/wp-graphql is now a monorepo, and its latest GitHub release is wp-graphql-ide/v5.7.0. That release has no wp-graphql.zip, so releases/latest/download/wp-graphql.zip returns 404. That's why the wpgraphql-logging e2e suite failed on #830, and every example's local setup is broken the same way.

What changes

All 27 references now point to https://downloads.wordpress.org/plugin/wp-graphql.zip, which always serves the latest stable WPGraphQL. That covers:

  • the e2e and tests environments in plugins/wpgraphql-logging/.wp-env.json
  • 24 example .wp-env.json files (Next, Nuxt, Astro, SvelteKit, Angular, and the plugin and toolbar examples)
  • the snippet in examples/README.md

The other "latest release" URLs (smart cache, ACF, IDE) still resolve, so they're unchanged.

The title uses chore: so release-please doesn't cut a wpgraphql-logging release for a dev-only file.

Testing

  • The old URL returns 404 and the new one returns 200 (checked with curl).
  • All 26 changed JSON files still parse.
  • I didn't run wp-env start locally. CI only runs e2e for the first changed plugin, which is hwp-previews here, and its config doesn't use this URL. Rerunning ci: run Plugin Check on the built plugin archive #830's checks after this merges will show the logging suite passing.
Use of AI Tools

AI assistance: Yes
Tool(s): Claude Code
Model(s): Claude Opus 5.5
Used for: Assisting with tracing the wp-env 404 to the WPGraphQL release change and updating the download URLs.

WPGraphQL's GitHub repo is now a monorepo whose latest release is wpgraphql-ide, so
releases/latest/download/wp-graphql.zip returns 404 and wp-env fails to start.
@josephfusco josephfusco added the [Type] Bug An existing feature is broken label Oct 23, 2026
@josephfusco josephfusco added [Area] Examples Issues for the example projects [Area] Logging Issues for the WPGraphQL Logging plugin labels Oct 23, 2026
@josephfusco
josephfusco requested a review from a team as a code owner October 23, 2026 15:05
@josephfusco josephfusco added the [Area] Infrastructure Issues for the repository infrastructure label Oct 23, 2026
@changeset-bot

changeset-bot Bot commented Oct 23, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: bcae3e1

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@github-actions

Copy link
Copy Markdown
Contributor

📦 Plugin Artifacts Ready!

Download from GitHub Actions run

Available plugins:

  • ✅ hwp-previews.zip
  • ✅ wpgraphql-logging.zip
  • ✅ wpgraphql-webhooks.zip

See the "Artifacts" section at the bottom of the Actions run page

@github-actions

github-actions Bot commented Oct 23, 2026 •

Copy link
Copy Markdown
Contributor

🔍 WordPress Plugin Check Report

❌ Status: Failed

📊 Report

🎯 Total Issues ❌ Errors ⚠️ Warnings
35 35 0

❌ Errors (35)

📁 examples/wpgraphql-logging-nextjs/wp-env/uploads.zip (1 error)
📍 Line 🔖 Check 💬 Message
0 compressed_files Compressed files are not permitted.
📁 examples/wpgraphql-logging-nextjs/wp-env/setup/.htaccess (1 error)
📍 Line 🔖 Check 💬 Message
0 hidden_files Hidden files are not permitted.
📁 examples/wpgraphql-logging-nextjs/.wp-env.json (1 error)
📍 Line 🔖 Check 💬 Message
0 hidden_files Hidden files are not permitted.
📁 .env.dist (2 errors)
📍 Line 🔖 Check 💬 Message
0 hidden_files Hidden files are not permitted.
0 application_detected Application files are not permitted.
📁 .docker/.env.ci (1 error)
📍 Line 🔖 Check 💬 Message
0 hidden_files Hidden files are not permitted.
📁 assets/.gitkeep (1 error)
📍 Line 🔖 Check 💬 Message
0 hidden_files Hidden files are not permitted.
📁 .editorconfig (1 error)
📍 Line 🔖 Check 💬 Message
0 hidden_files Hidden files are not permitted.
📁 wp-env/setup/.htaccess (1 error)
📍 Line 🔖 Check 💬 Message
0 hidden_files Hidden files are not permitted.
📁 .wp-env.json (1 error)
📍 Line 🔖 Check 💬 Message
0 hidden_files Hidden files are not permitted.
📁 src/Logger/.gitkeep (1 error)
📍 Line 🔖 Check 💬 Message
0 hidden_files Hidden files are not permitted.
📁 phpstan.neon.dist (1 error)
📍 Line 🔖 Check 💬 Message
0 application_detected Application files are not permitted.
📁 bin/build-docker.sh (1 error)
📍 Line 🔖 Check 💬 Message
0 application_detected Application files are not permitted.
📁 bin/_lib.sh (1 error)
📍 Line 🔖 Check 💬 Message
0 application_detected Application files are not permitted.
📁 bin/sync-package-version.sh (1 error)
📍 Line 🔖 Check 💬 Message
0 application_detected Application files are not permitted.
📁 bin/run-codeception.sh (1 error)
📍 Line 🔖 Check 💬 Message
0 application_detected Application files are not permitted.
📁 bin/install-plugins.sh (1 error)
📍 Line 🔖 Check 💬 Message
0 application_detected Application files are not permitted.
📁 bin/install-test-env.sh (1 error)
📍 Line 🔖 Check 💬 Message
0 application_detected Application files are not permitted.
📁 bin/local/run-e2e-tests.sh (1 error)
📍 Line 🔖 Check 💬 Message
0 application_detected Application files are not permitted.
📁 bin/local/setup-docker-env.sh (1 error)
📍 Line 🔖 Check 💬 Message
0 application_detected Application files are not permitted.
📁 bin/local/run-qa.sh (1 error)
📍 Line 🔖 Check 💬 Message
0 application_detected Application files are not permitted.
📁 bin/local/run-unit-tests.sh (1 error)
📍 Line 🔖 Check 💬 Message
0 application_detected Application files are not permitted.
📁 .docker/init-docker.sh (1 error)
📍 Line 🔖 Check 💬 Message
0 application_detected Application files are not permitted.
📁 examples/wpgraphql-logging-nextjs/example-app/src/pages/[slug].js (1 error)
📍 Line 🔖 Check 💬 Message
0 badly_named_files File and folder names must not contain spaces or special characters.
📁 wpgraphql-logging.php (2 errors)
📍 Line 🔖 Check 💬 Message
0 plugin_header_invalid_requires_php The "Requires PHP" header in the plugin file should only contain a PHP version such as "5.2.4" or "7.0".
0 plugin_updater_detected Including An Update Checker / Changing Updates functionality. Plugin Updater detected. Use of the Update URI header is not allowed in plugins hosted on WordPress.org.
📁 src/Admin/View/Download/DownloadLogService.php (1 error)
📍 Line 🔖 Check 💬 Message
65 WordPress.WP.AlternativeFunctions.file_system_operations_fclose File operations should use WP_Filesystem methods instead of direct PHP filesystem calls. Found: fclose().
📁 readme.txt (2 errors)
📍 Line 🔖 Check 💬 Message
0 outdated_tested_upto_header Tested up to: 6.9 < 7.1. The "Tested up to" value in your plugin is not set to the current version of WordPress. This means your plugin will not show up in searches, as we require plugins to be compatible and documented as tested up to the most recent version of WordPress.
0 readme_mismatched_header_requires_php Mismatched Requires PHP: 8.1.2 != 8.1.2+. "Requires PHP" needs to be exactly the same with that in your main plugin file's header.
📁 activation.php (1 error)
📍 Line 🔖 Check 💬 Message
0 missing_direct_file_access_protection PHP file should prevent direct access. Add a check like: if ( ! defined( 'ABSPATH' ) ) exit;
📁 deactivation.php (1 error)
📍 Line 🔖 Check 💬 Message
0 missing_direct_file_access_protection PHP file should prevent direct access. Add a check like: if ( ! defined( 'ABSPATH' ) ) exit;
📁 src/Admin/View/Templates/WPGraphQLLoggerView.php (1 error)
📍 Line 🔖 Check 💬 Message
0 missing_direct_file_access_protection PHP file should prevent direct access. Add a check like: if ( ! defined( 'ABSPATH' ) ) exit;
📁 src/Admin/View/Templates/WPGraphQLLoggerNotice.php (1 error)
📍 Line 🔖 Check 💬 Message
0 missing_direct_file_access_protection PHP file should prevent direct access. Add a check like: if ( ! defined( 'ABSPATH' ) ) exit;
📁 src/Admin/View/List/ListTable.php (1 error)
📍 Line 🔖 Check 💬 Message
0 missing_direct_file_access_protection PHP file should prevent direct access. Add a check like: if ( ! defined( 'ABSPATH' ) ) exit;
📁 src/Admin/Settings/Templates/admin.php (1 error)
📍 Line 🔖 Check 💬 Message
0 missing_direct_file_access_protection PHP file should prevent direct access. Add a check like: if ( ! defined( 'ABSPATH' ) ) exit;

🤖 Generated by WordPress Plugin Check Action • Learn more about Plugin Check

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

[Area] Examples Issues for the example projects [Area] Infrastructure Issues for the repository infrastructure [Area] Logging Issues for the WPGraphQL Logging plugin [Type] Bug An existing feature is broken

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant