Repository navigation
Conversation
Adi-ty
marked this pull request as ready for review
November 6, 2026 02:59
Contributor
There was a problem hiding this comment.
Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.
An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing. Review the Copilot code review billing settings.
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.
What this PR does
Lets callers test against the newest WordPress release or the development version without knowing a version number.
ci-test-php.yml(and through it,wp-versionsinwp-ci.yml) now acceptslatestandtrunkaswp-version, andci-test-build-artifact.ymlacceptstrunkin addition to its existinglatest.Closes
Part of #51
Changes
ci-test-php.yml:latestbootshttps://wordpress.org/latest.zipandtrunkbootsWordPress/WordPress#master. The mirror has notrunkbranch;masteris trunk. Every other value is stillWordPress/WordPress#<value>, and an empty value still falls back to.wp-env.json.latestcan't be passed to wp-env as an empty value, because wp-env would then use.wp-env.json, which may pin an older version.ci-test-build-artifact.yml:trunkwritescore: "WordPress/WordPress#master"to the generated override, andlateststayscore: null. Withtrunk,wp doctor'score-verify-checksumscheck is skipped, because WordPress.org publishes no checksums for development builds.wp-versionandwp-versionsdescriptions list the aliases, and note that x.y.0 releases are taggedx.y: there is no6.8.0tag.How I verified
I ran byte-identical copies of both workflows in a private test repo on
ubuntu-latest(@wordpress/env10.39.0 forci-test-php, the latest version forci-test-build-artifact). Every job passed. Each job read the booted version back withwp core version:wp-versionci-test-phplatesthttps://wordpress.org/latest.zipcliandtests-clici-test-phptrunkWordPress/WordPress#mastercliandtests-clici-test-php6.8WordPress/WordPress#6.8ci-test-php.wp-env.jsonci-test-php,use-wp-env: falselatestci-test-build-artifactlatestnullwp core check-update: at the latest versionci-test-build-artifacttrunkWordPress/WordPress#masterwp doctorpassed withcore-verify-checksumsskippedci-test-build-artifact6.8WordPress/WordPress#6.8Acceptance criteria
Runtime behavior
wp-version: latestboots the newest stable release inci-test-phpwp-version: trunkboots the development version inci-test-phpandci-test-build-artifacttrunkpassesci-test-build-artifact'swp doctorgateCode quality
ci-lint-php.ymlline 23actionlintis cleanbin/check-workflows.shpassesHousekeeping
examples/unchanged: no input changesyamllint,actionlintandbin/check-workflows.shpass locallyReviewer notes
latestreaches wp-env differently in the two workflows.ci-test-phpsets theWP_ENV_COREenvironment variable, which has no way to ask for wp-env's own latest-version lookup, so it passeslatest.zip.ci-test-build-artifactwritescore: nulland wp-env looks the version up itself. Both boot the same release.ci-test-phpalso acceptsLatest. Inci-test-build-artifacta mixed-case value fails atwp-env start, asLatestalready did.latestandtrunkmove over time. wp-env only re-downloads core when its config changes or when you pass--update. That's fine today, because GitHub-hosted runners and ARC pods start each job with an empty~/.wp-env. Revisit this if the wp-env work for [wp-ci] Close the adoption gaps for consuming projects #51 caches~/.wp-env.ci-test-build-artifactalready passes--update.ci-test-build-artifact,wp doctor'score-updatecheck fails any pinned version behind its newest patch release, such as6.8.Conventions: AGENTS.md · PR process: CONTRIBUTING.md