- Issue created by @andypost
- Open on Drupal.org →Environment: PHP 8.2 & MySQL 8last update
about 1 year ago Not currently mergeable. - @andypost opened merge request.
- Status changed to Needs review
about 1 year ago 6:31pm 14 September 2023 - last update
about 1 year ago 30,154 pass - 🇬🇧United Kingdom catch
We might be able to reduce the depth further once we've done 📌 [PP-1] Add caching to cspell job in GitLabCI Postponed assuming that can take advantage of cloud caching.
This looks good to me and think we should try it.
- 🇫🇷France andypost
Here's example when fetch failed https://git.drupalcode.org/issue/drupal-3387400/-/jobs/88976
- 🇫🇷France andypost
Cloud caching has downsides
- more data transfered from/to runner
- zipping cache before sending takes time and brings high load to caching serverMeantime I see 📌 Add support for 'test only' changes to gitlab CI Needs review which also gonna diff changed files so this functionality can be extracted to before script for such jobs
Moreover the job should fail when it unable to find a lit of changed files
- Issue was unassigned.
- 🇫🇷France andypost
Added to IS about
${CI_COMMIT_BRANCH}
which probably should not be used in scripts - 🇫🇷France andypost
it was added in 📌 Run jobs on GitLab CI branch tests Fixed
- last update
about 1 year ago 30,154 pass - last update
about 1 year ago 30,154 pass - 🇫🇷France andypost
Changed to fetch less to compare and fixed IS as
TARGET_BRANCH=${CI_MERGE_REQUEST_TARGET_BRANCH_NAME}${CI_COMMIT_BRANCH}
which works both for MR and commits - last update
about 1 year ago 30,154 pass - last update
about 1 year ago 30,154 pass - last update
about 1 year ago Fetch Error - last update
about 1 year ago 30,154 pass - last update
about 1 year ago 30,154 pass - Status changed to RTBC
about 1 year ago 9:19am 15 September 2023 - 🇬🇧United Kingdom catch
I think we should see how this affects job performance, RTBCing and will fish for a +1 in slack.
- Status changed to Needs review
about 1 year ago 9:33am 15 September 2023 - Status changed to Needs work
about 1 year ago 10:14am 15 September 2023 - 🇬🇧United Kingdom catch
Discussed with @longwave in slack - let's move the cspell change to its own issue since it's harder, and we might just try full runs at least on branch tests anyway. We'll get the benefit from the rest of the changes here without that, especially in terms of load on the git hosting.
- Status changed to Needs review
about 1 year ago 10:43am 15 September 2023 - 🇫🇷France andypost
The job fixes can't be moved to separate issue because it will fail
I did test it in https://git.drupalcode.org/issue/drupal-3252386/-/jobs/88908
- 🇫🇷France andypost
Sorry the valid link is https://git.drupalcode.org/issue/drupal-3252386/-/jobs/88870
Job does not fail but doing nothing, it smells a new issue
- Status changed to Needs work
about 1 year ago 10:48am 15 September 2023 - 🇫🇷France andypost
it needs work for
CI_MERGE_REQUEST_PROJECT_URL
which is missing for commit/tag runs - Status changed to Needs review
about 1 year ago 10:55am 15 September 2023 - last update
about 1 year ago 30,158 pass - 🇫🇷France andypost
Looks failure was random, on restart it passed
Testing Drupal\Tests\Component\Utility\RandomTest ......E..... 12 / 12 (100%) Time: 00:00.032, Memory: 4.00 MB There was 1 error: 1) Drupal\Tests\Component\Utility\RandomTest::testRandomMachineNamesUniqueness RuntimeException: Unable to generate a unique random machine name /builds/issue/drupal-3387400/core/lib/Drupal/Component/Utility/Random.php:169 /builds/issue/drupal-3387400/core/tests/Drupal/Tests/Component/Utility/RandomTest.php:127 /builds/issue/drupal-3387400/vendor/phpunit/phpunit/src/Framework/TestResult.php:728 /builds/issue/drupal-3387400/vendor/phpunit/phpunit/src/Framework/TestSuite.php:684 /builds/issue/drupal-3387400/vendor/phpunit/phpunit/src/TextUI/TestRunner.php:651 /builds/issue/drupal-3387400/vendor/phpunit/phpunit/src/TextUI/Command.php:144 /builds/issue/drupal-3387400/vendor/phpunit/phpunit/src/TextUI/Command.php:97 ERRORS! Tests: 12, Assertions: 97, Errors: 1. [31mFail run-tests. Unknown 0 Unknown [0m FATAL Drupal\Tests\Component\Utility\RandomTest: test runner returned a non-zero error code (2).
- Status changed to RTBC
about 1 year ago 1:19pm 15 September 2023 - 🇬🇧United Kingdom longwave UK
Spellcheck job passed, code looks OK, the only way to branch test is to merge it and see.
- last update
about 1 year ago 30,158 pass - 🇫🇷France andypost
+1 RTBC and using the variable in job, suggested the same to backport to D7 📌 [D7] GitLab CI integration for core Needs review
Some tests still running but what we fixing here is https://git.drupalcode.org/project/drupal/-/jobs/91306
$ export TARGET_BRANCH=${CI_MERGE_REQUEST_TARGET_BRANCH_NAME}${CI_COMMIT_BRANCH} $ git fetch -vn --depth=$GIT_DEPTH "${CI_MERGE_REQUEST_PROJECT_URL:-origin}" "+refs/heads/$TARGET_BRANCH:refs/heads/$TARGET_BRANCH" warning: redirecting to https://git.drupalcode.org/-/push_from_secondary/9/project/drupal.git/ POST git-upload-pack (334 bytes) POST git-upload-pack (524 bytes) From https://git.drupalcode.org/project/drupal * [new branch] 11.x -> 11.x $ export MODIFIED=`git diff --name-only refs/heads/$TARGET_BRANCH|while read r;do echo "$CI_PROJECT_DIR/$r";done|tr "\n" " "` $ echo $MODIFIED | tr ' ' '\n' | yarn --cwd=./core run -s spellcheck:core --no-must-find-files --file-list stdin 1/1 /builds/project/drupal/.gitlab-ci.yml 437.27ms 2/2 /builds/project/drupal/.gitlab-ci/pipeline.yml 88.84ms CSpell: Files checked: 2, Issues found: 0 in 0 files
- Status changed to Fixed
about 1 year ago 4:08pm 15 September 2023 - 🇬🇧United Kingdom catch
Committed/pushed to 11.x and cherry-picked to 10.1.x, thanks!
Automatically closed - issue fixed for 2 weeks with no activity.