Problem / Motivation
When I try to apply Drupal 11.x version patch 5876 to Drupal 11.x–dev, I get a build error. There are two problems:
- The highlighted error at the top is inconsistent, with two different errors highlighted over four tries, but if I scroll to the bottom, the actual error appears to be the same across all four tries.
- In the middle of each log, it appears that the patch was in fact applied, but at the end, it said that the available patchers were not able to apply the patch.
Steps to reproduce
1. Go to simplytest.me
2. In Evaluate Drupal projects, type core
3. In the drop-down, select 11.x-dev
4. Click advanced options
5. In Add patches on the chosen project, enter "https://git.drupalcode.org/project/drupal/-/merge_requests/5876.patch" (without the quotes)
6. Click launch sandbox
Expected result: Sandbox builds and displays
Actual results: I randomly get one of the following errors:
Error 1 (happened twice):
I get conflicting messages as to whether the patch applied. Complete log
Here are the references to the patch in the log:
At the very top highlighted in red:
This may be the error:
In Patches.php line 288:
No available patcher was able to apply patch https://git.drupalcode.org/pro
ject/drupal/-/merge_requests/5876.patch to drupal/coreupdate [--with WITH] [--prefer-source] [--prefer-dist] [--prefer-install PREFER-INSTALL] [--dry-run] [--dev] [--no-dev] [--lock] [--no-install] [--no-audit] [--audit-format AUDIT-FORMAT] [--no-security-blocking] [--no-autoloader] [--no-suggest] [--no-progress] [-w|--with-dependencies] [-W|--with-all-dependencies] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--apcu-autoloader-prefix APCU-AUTOLOADER-PREFIX] [--ignore-platform-req IGNORE-PLATFORM-REQ] [--ignore-platform-reqs] [--prefer-stable] [--prefer-lowest] [-m|--minimal-changes] [--patch-only] [-i|--interactive] [--root-reqs] [--bump-after-update [BUMP-AFTER-UPDATE]] [--] [
...]
Further down the log it appears that the patch was in fact applied:
The composer patches functionality was enabled successfully.
69fb8421703fa3bab1e6c474# /bin/sh -c cd stm && composer patch-add drupal/core "STM patch 5876.patch" "https://git.drupalcode.org/project/drupal/-/merge_requests/5876.patch" --no-update
Gathering patches from patch file.
The patch was successfully added.
69fb8421703fa3bab1e6c474# /bin/sh -c cd stm && composer update --no-ansi
And yet at the very bottom, I get the following messages:
- Patching drupal/core
- Found cached patch at /root/.cac edithe/composer/patches/727f57e866cff1a0d10b7892b8e3ede8d55bafb3b3b40ec5d139a753452a4176.patch
In Patches.php line 288:No available patcher was able to apply patch https://git.drupalcode.org/pro
ject/drupal/-/merge_requests/5876.patch to drupal/core
update [--with WITH] [--prefer-source] [--prefer-dist] [--prefer-install PREFER-INSTALL] [--dry-run] [--dev] [--no-dev] [--lock] [--no-install] [--no-audit] [--audit-format AUDIT-FORMAT] [--no-security-blocking] [--no-autoloader] [--no-suggest] [--no-progress] [-w|--with-dependencies] [-W|--with-all-dependencies] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--apcu-autoloader-prefix APCU-AUTOLOADER-PREFIX] [--ignore-platform-req IGNORE-PLATFORM-REQ] [--ignore-platform-reqs] [--prefer-stable] [--prefer-lowest] [-m|--minimal-changes] [--patch-only] [-i|--interactive] [--root-reqs] [--bump-after-update [BUMP-AFTER-UPDATE]] [--] [
...]
Command Failed (Tugboat Error 1064): Exit code: 1; Command: cd stm && composer update --no-ansi
Error 2 (happened twice):
At the very top highlighted in red:
This may be the error:
update [--with WITH] [--prefer-source] [--prefer-dist] [--prefer-install PREFER-INSTALL] [--dry-run] [--dev] [--no-dev] [--lock] [--no-install] [--no-audit] [--audit-format AUDIT-FORMAT] [--no-security-blocking] [--no-autoloader] [--no-suggest] [--no-progress] [-w|--with-dependencies] [-W|--with-all-dependencies] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--apcu-autoloader-prefix APCU-AUTOLOADER-PREFIX] [--ignore-platform-req IGNORE-PLATFORM-REQ] [--ignore-platform-reqs] [--prefer-stable] [--prefer-lowest] [-m|--minimal-changes] [--patch-only] [-i|--interactive] [--root-reqs] [--bump-after-update [BUMP-AFTER-UPDATE]] [--] [
...]Command Failed (Tugboat Error 1064): Exit code: 1; Command: cd stm && composer update --no-ansi
Further down the log it appears that the patch was applied:
The composer patches functionality was enabled successfully.
69fb8efe703fa3bab1e7aa86# /bin/sh -c cd stm && composer patch-add drupal/core "STM patch 5876.patch" "https://git.drupalcode.org/project/drupal/-/merge_requests/5876.patch" --no-update
Gathering patches from patch file.
The patch was successfully added.
69fb8efe703fa3bab1e7aa86# /bin/sh -c cd stm && composer update --no-ansi
And at the very bottom, I get the following messages:
- Patching drupal/core
- Found cached patch at /root/.cache/composer/patches/727f57e866cff1a0d10b7892b8e3ede8d55bafb3b3b40ec5d139a753452a4176.patch
In Patches.php line 288:No available patcher was able to apply patch https://git.drupalcode.org/pro
ject/drupal/-/merge_requests/5876.patch to drupal/core
update [--with WITH] [--prefer-source] [--prefer-dist] [--prefer-install PREFER-INSTALL] [--dry-run] [--dev] [--no-dev] [--lock] [--no-install] [--no-audit] [--audit-format AUDIT-FORMAT] [--no-security-blocking] [--no-autoloader] [--no-suggest] [--no-progress] [-w|--with-dependencies] [-W|--with-all-dependencies] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--apcu-autoloader-prefix APCU-AUTOLOADER-PREFIX] [--ignore-platform-req IGNORE-PLATFORM-REQ] [--ignore-platform-reqs] [--prefer-stable] [--prefer-lowest] [-m|--minimal-changes] [--patch-only] [-i|--interactive] [--root-reqs] [--bump-after-update [BUMP-AFTER-UPDATE]] [--] [
...]
Command Failed (Tugboat Error 1064): Exit code: 1; Command: cd stm && composer update --no-ansi
69fb8efe157c6efe7d5057f3 (simplytest) is suspended
| Comment | File | Size | Author |
|---|---|---|---|
| Applied but still failed.txt | 91.27 KB | charles belov | |
| Failure to apply patch.txt | 91.29 KB | charles belov |
Comments
Comment #2
charles belovComment #3
charles belov