Closed (fixed)
Project:
Drupal core
Version:
11.x-dev
Component:
phpunit
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
27 Sep 2025 at 16:50 UTC
Updated:
2 Dec 2025 at 19:34 UTC
Jump to comment: Most recent
Comments
Comment #2
mondrakeComment #3
bbralaComment #4
fjgarlin commentedI mentioned this in this slack thread https://drupal.slack.com/archives/C51GNJG91/p1763133914571249?thread_ts=...
Just thinking out loud:
- When reading “cached”, read them from a “cached” folder.
- Make the last job in core pipeline (https://docs.gitlab.com/ci/yaml/#stage-post) update the “cached” folder with the newly generated artifacts
That way job will be getting the “cached” version even if a new one is being regenerated
eg (totally untested):
Comment #6
fjgarlin commentedThis was postponed but was brought in a slack thread. I created an MR with my thoughts from #4 but I'm not sure it can be tested unless merged because of the way it is architected.
Comment #7
catchThis looks both clever and minimalist, although I'm not sure whether the gitlab bug is that the artifacts aren't available while the job is running, or whether they aren't available while the entire pipeline is running.
Comment #9
alexpottSo as expected the Write lint caches job is super quick - see https://git.drupalcode.org/issue/drupal-3549110/-/jobs/7318879 - especially compared to the Lint cache warming job https://git.drupalcode.org/issue/drupal-3549110/-/jobs/7318861
Comment #10
catchLet's do it. Pipeline changes are readable and it should help a lot hopefully.
Comment #11
catchReviewed and discussed the latest MR changes with @alexpott in slack, just re-confirming the RTBC this should hopefully make future changes more testable.
Comment #12
longwaveTwo questions on the MR.
Comment #13
alexpottNice review @longwave - addressed both of your comments. As these were small tweaks - setting back to RTBC. Now we get the full URL for all cache downloads by using the -v option on curl.
Comment #14
alexpottHmmm... we've not solved the issue in the issue summary... need to have a think.
Comment #15
alexpottOkay I think this is ready. It no addresses the issue in the issue summary, is easier to test.
@longwave it still uses the .post job - I know you asked for a specific stage for that but I'm not sure that we want to do that. Can we do that in a follow-up if necessary?
Comment #16
catchGiven
.postis a built-in gitlab feature I think it's OK to expose it (even though I agree it doesn't look great) and then open a follow-up to explore changing to an explicit stage. Would be good to tweak things further from a known working state.@alexpott also mentioned in slack that we should maybe look at ditching using the artifacts system for this and add an s3 bucket instead, which would require an infra change but could be worth exploring and would allow us to have only a single job again.
Comment #17
alexpottActually now that #3387117: Enable distributed caching in GitLab Runner is fixed we should change the approach...
Comment #18
bbrala@catch that would be preferable tbh, but when we started this we couldn't hang on that since they were overbooked. Perhaps things are a little less stressfull right now (but i doubt it)
Comment #19
alexpottCan't do that because caches are not shared across projects... back to the commit @catch rtbc'd
Comment #20
longwaveCommitted and pushed 2280c4a3f79 to 11.x and 3157cc68c87 to 11.3.x. Thanks!
Comment #25
longwaveComment #27
mondrakeThe commit pipeline failed, maybe unrelated.
I rebased #3521541: [CI] Components tests coverage metrics differ by PHP version, and the MR failed to get the cache - maybe because ^^?
Comment #28
alexpottYeah un related... fixing...
Comment #29
alexpottFollow-up to make things even better #3558592: Improve lint cache warming even more