Problem/Motivation
See #3462763: Use artifacts to share the phpstan result and cspell caches from core to MRs for background. We should be able to do exactly the same for eslint and stylelint.
Steps to reproduce
Proposed resolution
Remaining tasks
User interface changes
Introduced terminology
API changes
Data model changes
Release notes snippet
Issue fork drupal-3463108
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
- 3463108-use-artifacts-to
changes, plain diff MR !8964
Comments
Comment #2
catchComment #4
catcheslint doesn't appear to have a verbose option, so it's hard to show this definitely working, but
https://git.drupalcode.org/project/drupal/-/jobs/2258295 is a job from a sandbox MR, where the cspell and phpstan jobs both had cache hits, and eslint running with the same logic. eslint job completed in 51 seconds.
https://git.drupalcode.org/project/drupal/-/jobs/2257804 is a job with the current logic and the eslint job took 1m45s.
You can also see that the cache warming job generates the .eslintcache and .stylelintcache files correctly: https://git.drupalcode.org/project/drupal/-/jobs/2259079
I also tested the same command locally and the caching worked there.
Comment #5
catchWe should do eslint and stylelint in a single PR since their cache strategies are the same.
https://git.drupalcode.org/project/drupal/-/jobs/2259023 this shows stylelint caching working in my sandbox branch/MR with the cache target pointing to itself.
Comment #6
catchComment #7
catchComment #8
catch#3462763: Use artifacts to share the phpstan result and cspell caches from core to MRs is in, so rebased here and unpostponing.
Comment #9
smustgrave commentedper the slack conversation @catch shared this https://git.drupalcode.org/project/drupal/-/merge_requests/8952/diffs which believe shows this working. Going to mark.
Comment #10
nod_question in MR
Comment #11
catchGood spot on the MR, since it's a trivial change, moving back to RTBC.
Comment #15
nod_Committed 5374786 and pushed to 11.x. Thanks!
Committed 1161b8d and pushed to 11.0.x. Thanks!
Comment #16
nod_