[wp-trac] [WordPress Trac] #49783: PHPCS config: Persistent caching during CI
WordPress Trac
noreply at wordpress.org
Tue Nov 16 14:17:40 UTC 2021
#49783: PHPCS config: Persistent caching during CI
------------------------------+-------------------------------
Reporter: johnbillion | Owner: desrosj
Type: enhancement | Status: closed
Priority: normal | Milestone: 5.9
Component: Build/Test Tools | Version:
Severity: normal | Resolution: fixed
Keywords: has-patch | Focuses: coding-standards
------------------------------+-------------------------------
Changes (by desrosj):
* owner: (none) => desrosj
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"52179" 52179]:
{{{
#!CommitTicketReference repository="" revision="52179"
Build/Test Tools: Cache the results of `PHP_CodeSniffer` across workflow
runs.
When the `PHP_CodeSniffer` runs, it produces a cache file. When a cache
file is present, only changed files are rescanned, making subsequent scans
significantly faster.
This adds the needed steps to the corresponding GitHub Actions workflows
to cache these files across runs. The cache keys include the date of the
previous Monday to ensure that the cache is flushed at least weekly.
Since GitHub Action caches cannot be updated once created, the scans will
take slightly longer as the week progresses and more PHP files are
updated. The date within the cache key can be updated to purge twice
weekly if the scan time starts to approach the current scan times.
This change also introduces a `.cache` directory for all caching files
related to build/test tools.
Props johnbillion, jrf.
Fixes #49783.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/49783#comment:23>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list