Problem/Motivation
Daily jobs and spell checking has got in a bit of mess since #3612933: Only run cspell on main and MRs that target main and #3620707: Skip the download caches job on weekly/daily pipelines. There is no way daily 11.x and 11.5.x can be green.
Currently 12.0.x daily "Write lint caches" job is passing because #3620707 partially reverted #3612933.
Daily 11.x and 11.5.x "Write lint caches" jobs are broken because the cspell cache is not created.
See:
- Daily 12.0.x https://git.drupalcode.org/project/drupal/-/pipelines/1008699
- Daily 11.x https://git.drupalcode.org/project/drupal/-/pipelines/1008678
- Daily 11.5.x https://git.drupalcode.org/project/drupal/-/pipelines/1007950
Proposed resolution
Ensure the cspell job only runs on main and fix the write lint caches job to only upload the cspell cache when on the main branch.
Remaining tasks
None
- Main successfully writes the cache: https://git.drupalcode.org/project/drupal/-/jobs/12982505
- 12.0.x does not run cspell and does not fail 'write lint caches': https://git.drupalcode.org/project/drupal/-/jobs/12982823
- 11.x does not run cspell and does not fail 'write lint caches': https://git.drupalcode.org/project/drupal/-/jobs/12982657
User interface changes
None
Introduced terminology
None
API changes
None
Data model changes
None
Release notes snippet
N/a
Issue fork drupal-3631912
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:
Comments
Comment #4
alexpottComment #5
alexpottComment #7
alexpottWith this change we can see that the write lint caches job is green on 11.x - https://git.drupalcode.org/project/drupal/-/jobs/12982657 - yes we get a warning about cspell cache not existing but that's correct - it does not.
Comment #8
alexpottComment #9
alexpottThis is a different fix for #3625788: Fix failing "Write lint caches" jobs on 11.x that I feel is more correct.
Comment #10
alexpottComment #11
godotislateI see the .cspellcache being uploaded correctly to the artifacts on the main MR: https://git.drupalcode.org/project/drupal/-/jobs/12982505
On 11.x/12.0.x, the .cspellcache is not uploaded, because it doesn't exist. There is a warning, but it does not cause the job to fail
12.0.x
11.x
Also looks like this may need a backport to 11.5.x: https://git.drupalcode.org/project/drupal/-/pipelines/1009196
lgtm.
Comment #15
catchThis looks fine to me, let's get the pipelines back to green. If we want to tweak exactly which branches cspell runs against we can do that in another issue another time etc.
Committed/pushed to main and cherry-picked back through to 11.5.x.
Comment #18
catchThis doesn't appear to have fixed things, can't yet tell if it's the same issue unfixed or a new issue, e.g. https://git.drupalcode.org/project/drupal/-/pipelines/1019860
Comment #19
alexpottOh of course... we're not running spell-checking jobs on main when it is scheduled... and we need to. Creating an MR...
Comment #21
alexpottPushed a new MR to fix this... https://git.drupalcode.org/project/drupal/-/merge_requests/17602
Comment #22
alexpottI'd merged the latest MR to main and 12.0.x to keep .gitlab-ci.yml in sync to make things easier.
Comment #25
catchCommitting this from needs review to get scheduled pipelines back up and running again since it's trivial, thanks!
edit: and we're green (at least on the write lint caches job)