Repository navigation
Tests: Document intentional live readme version checks - #15786
shail-mehta wants to merge 2 commits into
Conversation
There was a problem hiding this comment.
🟡 Changes recommended
The release fixtures mirror the recommendations and manufacture passing EOL dates, allowing nonexistent versions and unsupported support windows to pass validation.
1 open issue
What changed in this PR
This PR removes live HTTP dependencies from the three Tests_Readme version checks, allowing them to run outside the external-http group.
Changes:
- Adds mocked PHP, MySQL, and MariaDB responses through a shared HTTP-response helper.
- Removes
external-httpannotations and adds ticket references. - Updates test documentation while leaving response-parser skip/fail coverage unchanged.
| File | Description |
|---|---|
tests/phpunit/tests/readme.php |
Replaces live version API responses with fixtures and moves the checks into the offline suite. |
Review effort: Balanced
Keep the PHP, MySQL, and MariaDB freshness checks in external-http. Offline coverage stays on the declaration test; these remain live smoke against vendor support pages, matching the test_ssl() pattern for #63914.
3722a58 to
df4ae31
Compare
Use a short summary plus an explicit "remains in external-http" note so the intentional live freshness checks match established #63914 documentation.
|
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. Core Committers: Use this line as a base for the props when committing in SVN: To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. Props Bot commandsYou can trigger Props Bot actions by commenting on this PR:
|
lancewillett
left a comment
There was a problem hiding this comment.
Thanks. I'd close this one. It changes no test behavior: at eae3cd9, Tests_Readme runs the same 13 tests and 31 assertions offline as trunk, and the same three methods stay in external-http.
The decision to keep those three live is already recorded in r64732 ("Keep external-http on the three methods that check versions against external services"), and @group external-http on each method says the same thing in the code. The new docblocks repeat that in three places.
The @ticket 63914 tags would also mark these as regression tests for #63914, which is a cleanup task rather than a bug they guard against.
AI review · claude-opus-5-5

Trac ticket: #63914
What
Documents that the PHP, MySQL, and MariaDB freshness checks in
Tests_Readmeremain in theexternal-httpgroup on purpose.Why
Per #14686, declaration presence is covered offline by
test_readme_contains_recommended_versions(). The three live methods check vendor support pages and should stay as intentional network smoke, matchingtest_ssl()inWP_HTTP_UnitTestCase.How
@group external-httpon the three freshness checks@ticket 63914Testing instructions
npm run test:php -- --filter Tests_Readme --exclude-group external-httpnpm run test:php -- --filter Tests_Readme --group external-httpUse of AI Tools