Repository navigation
ci: shorten PR check time - #538
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
The workflow can finish successfully without a baseline schema because the release lookup failure is masked and subsequent download and inspector failures do not stop execution.
1 open issue
What changed in this PR
This PR aims to reduce PR check times by overlapping database startup with image builds and removing unnecessary setup work from schema validation.
Changes:
- Start MySQL in the background in both plugin test workflows, then wait for it before starting WordPress.
- Install GraphQL Inspector globally alongside the schema linter to avoid installing repository development dependencies.
- Replace the Docker-based latest-tag action with
gh release view.
| File | Description |
|---|---|
.github/workflows/test-plugin.yml |
Overlaps database startup with the test image build. |
.github/workflows/test-plugin-gutenberg.yml |
Applies the same startup optimization to Gutenberg tests. |
.github/workflows/schema-linter.yml |
Streamlines GraphQL tooling installation and release lookup. |
Review effort: Balanced
…ng up the baseline release tag' Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Shortens the two jobs that decide how long a PR waits for checks. On recent human PRs, Schema Linter (median 101s) and Test Plugin (median 98s) were the last to finish on almost every commit.
graphql-inspectorglobally alongside the linter. The old localnpm installin the repo root also installed@wordpress/scriptsfrom the lockfile (~23s). The Docker-basedaction-get-latest-tag, rebuilt every run, is replaced withgh release view.Use of AI Tools
AI assistance: Yes
Tool(s): Claude Code
Model(s): Claude Opus 5.5
Used for: Assisting with analyzing CI run history and writing the workflow changes.