- Issue created by @cmlara
- 🇺🇸United States cmlara
Another sample:
https://git.drupalcode.org/issue/drupal-2293803/-/jobs/855982
(Visual count is ~63 commits above latest 11.x)If we do go with the 2nd option I would suggest choosing whatever has been the largest issue ever seen x3 for the safety factor (at the moment that would be ~220)
$ if [ -n "$CI_MERGE_REQUEST_TARGET_BRANCH_SHA" ]; then echo "HEAD is $(git rev-parse HEAD). \$CI_MERGE_REQUEST_TARGET_BRANCH_SHA is ${CI_MERGE_REQUEST_TARGET_BRANCH_SHA}"; else echo "HEAD is $(git rev-parse HEAD). \$CI_MERGE_REQUEST_DIFF_BASE_SHA is ${CI_MERGE_REQUEST_DIFF_BASE_SHA}"; fi; HEAD is d59b4737d20111a48d875bf1deb6b4b813a3556a. $CI_MERGE_REQUEST_DIFF_BASE_SHA is 71c9b9f7cdaf3ac42d05450627dff82c2e847e1c $ git diff ${CI_MERGE_REQUEST_TARGET_BRANCH_SHA:-$CI_MERGE_REQUEST_DIFF_BASE_SHA} --name-only | sed "s_^_../_" | yarn --cwd=./core run -s spellcheck:core --no-must-find-files --file-list stdin fatal: bad object 71c9b9f7cdaf3ac42d05450627dff82c2e847e1c CSpell: Files checked: 0, Issues found: 0 in 0 files
- 🇳🇱Netherlands bbrala Netherlands
Another one.
https://git.drupalcode.org/issue/drupal-3100732/-/pipelines/151703
Ran into this, puzzlinig me. Ended up doing an interactive rebase to minimize the amount of commits, but that really feels like a waste of time.
On failure trying to do a pull/fetch for these circumstances sounds like a good idea tbh. Keep the performance, and go deeper where needed.
- 🇬🇧United Kingdom joachim
This is blocking CI here: https://git.drupalcode.org/issue/drupal-1792310/-/jobs/1725958
What is this limit supposed to achieve?
- 🇳🇱Netherlands bbrala Netherlands
This pipe is the broken one: https://git.drupalcode.org/issue/drupal-3422537/-/pipelines/187980
Will now try and fix with git command.
- 🇳🇱Netherlands bbrala Netherlands
This job fixed here: https://git.drupalcode.org/issue/drupal-3422537/-/jobs/1746948
using the following command:
git diff ${CI_MERGE_REQUEST_TARGET_BRANCH_SHA:-$CI_MERGE_REQUEST_DIFF_BASE_SHA} --name-only 2>1 > /dev/null || echo "Warning, cannot find changed files converting to full clone." & (git fetch --unshallow --quiet && echo "Fetch successful.")
- If
git diff ${CI_MERGE_REQUEST_TARGET_BRANCH_SHA:-$CI_MERGE_REQUEST_DIFF_BASE_SHA} --name-only 2>1 > /dev/null
fails - echo
echo "Warning, cannot find changed files converting to full clone."
and run: (git fetch --unshallow --quiet && echo "Fetch successful.")
to unshallow the fir repository without to much noise.
:)
- If
- Status changed to Needs review
10 months ago 9:01am 1 June 2024 - 🇳🇱Netherlands bbrala Netherlands
MR 8259: testing MR to proove the issue.
MR 8258: The change for core :) - Status changed to Needs work
10 months ago 9:04am 1 June 2024 - Status changed to Needs review
10 months ago 9:13am 1 June 2024 - 🇦🇺Australia acbramley
Even if it's a stop gap until an even better solution comes up, this would be great to get in. Nice work @bbrala
- Status changed to RTBC
10 months ago 10:37am 1 June 2024 - 🇺🇸United States dww
Oh, the irony! 🤣
https://git.drupalcode.org/issue/drupal-3422537/-/jobs/1747113
Issues found: ./.gitlab-ci.yml:404:202 - Unknown word (unshallow) CSpell: Files checked: 1, Issues found: 1 in 1 file.
Anyway https://git.drupalcode.org/project/drupal/-/merge_requests/8258/diffs looks excellent. That's more or less exactly what I had in mind.
I'm not totally following the results in https://git.drupalcode.org/project/drupal/-/merge_requests/8259/pipelines to see that this definitely fixes the problem. But on first principles, the merge-able MR (!8258) looks right, and based on the history of these failures and what we understand about their cause, it should solve it.
Super minor cost to run
git diff
twice, and that avoids always doing a full clone (which would be much more costly).Ship it! 😉
Thanks,
-Derek - 🇳🇱Netherlands bbrala Netherlands
To be clear @dww the secondary mr fails on spellcheck first, same issue as in is. Then later it fails on a true spelling error. Which mean spellcheck works. :)
- 🇺🇸United States dww
Ahhh, gotcha. Thanks for explaining.
ed1e913d2bb2fb6c3a469a09a26d1ae575746e99 looks fine -- not even a "typo" really, only adding a
,
to the warning message to improve legibility.Definitely still RTBC. Let's get this in.
Thanks again!
-Derek - First commit to issue fork.
-
alexpott →
committed 96cf406d on 10.3.x
Issue #3422537 by bbrala, cmlara, dww, longwave, joachim: Autoresolve...
-
alexpott →
committed 96cf406d on 10.3.x
-
alexpott →
committed 7821e759 on 10.4.x
Issue #3422537 by bbrala, cmlara, dww, longwave, joachim: Autoresolve...
-
alexpott →
committed 7821e759 on 10.4.x
-
alexpott →
committed 6b1054d0 on 11.0.x
Issue #3422537 by bbrala, cmlara, dww, longwave, joachim: Autoresolve...
-
alexpott →
committed 6b1054d0 on 11.0.x
-
alexpott →
committed e51adec7 on 11.x
Issue #3422537 by bbrala, cmlara, dww, longwave, joachim: Autoresolve...
-
alexpott →
committed e51adec7 on 11.x
- Status changed to Fixed
10 months ago 3:12pm 2 June 2024 - 🇬🇧United Kingdom alexpott 🇪🇺🌍
Committed e51adec and pushed to 11.x. Thanks!
Committed 6b1054d and pushed to 11.0.x. Thanks!
Committed and pushed 7821e759a1 to 10.4.x and 96cf406d48 to 10.3.x. Thanks! Automatically closed - issue fixed for 2 weeks with no activity.