PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* ok: [localhost] TASK [debug] ******************************************************************* ok: [localhost] => { "msg": "Using 'circu' as instance name" } TASK [Check if git dir already exists] ***************************************** ok: [localhost] TASK [Force get new tags and branches] ***************************************** changed: [localhost] TASK [Clone koha source to /usr/local/src/koha] ******************************** skipping: [localhost] TASK [Copy source koha clone for sandbox] ************************************** changed: [localhost] TASK [Install koha git config for sandbox] ************************************* changed: [localhost] TASK [Change owner for koha clone for sandbox] ********************************* changed: [localhost] TASK [Make .git directory writable by all users (allows container root to run git am)] *** changed: [localhost] TASK [Set as safe directory] *************************************************** changed: [localhost] TASK [Check out origin/main by default] **************************************** changed: [localhost] TASK [Create a new database for Koha instance] ********************************* changed: [localhost] TASK [Ensure user doesn't exist or the create below will fail] ***************** ok: [localhost] TASK [mysql_user] ************************************************************** changed: [localhost] TASK [Start new koha-testing-docker container] ********************************* changed: [localhost] TASK [Get host port for sandbox staff port] ************************************ changed: [localhost] TASK [debug] ******************************************************************* ok: [localhost] => { "msg": "Using '33214' as staff port" } TASK [Get host port for sandbox opac port] ************************************* changed: [localhost] TASK [debug] ******************************************************************* ok: [localhost] => { "msg": "Using '33213' as opac port" } TASK [Get host port for sandbox ssh port] ************************************** changed: [localhost] TASK [debug] ******************************************************************* ok: [localhost] => { "msg": "Using '33213' as ssh port" } TASK [Install apache config for sandbox instance] ****************************** changed: [localhost] TASK [Symlink the new apache config from sites-available to sites-enabled] ***** changed: [localhost] TASK [Add docker container koha-circu to ansible hosts] ************************ ok: [localhost] TASK [Test connection to docker container] ************************************* changed: [localhost -> koha-circu] TASK [debug] ******************************************************************* skipping: [localhost] TASK [Pausing for 5 minutes whilst container sets itself up] ******************* Pausing for 300 seconds (ctrl+C then 'C' = continue early, ctrl+C then 'A' = abort) ok: [localhost] TASK [debug] ******************************************************************* ok: [localhost] => { "msg": "GIT_REMOTE is set to " } TASK [Add git remote as circu in docker container] **************************** skipping: [localhost] TASK [git checkout commit_id or tag in docker container] ********************** skipping: [localhost] TASK [git checkout circu/ in docker container] ********************************* skipping: [localhost] TASK [Fix git repo permissions] ************************************************ changed: [localhost -> koha-circu] TASK [Make .git directory writable by all users inside container (allows apply_bug to run git am)] *** changed: [localhost -> koha-circu] TASK [Marking repo as a safe git directory] ************************************ changed: [localhost -> koha-circu] TASK [Checkout origin/main in docker container] ******************************** changed: [localhost -> koha-circu] TASK [Apply bug 19037 via git-bz in docker container] ************************** fatal: [localhost -> koha-circu]: FAILED! => {"changed": true, "cmd": "koha-shell -c 'cd /kohadevbox/koha && yes | git bz apply 19037' circu", "delta": "0:00:03.945437", "end": "2026-04-03 06:40:32.095373", "msg": "non-zero return code", "rc": 1, "start": "2026-04-03 06:40:28.149936", "stderr": "\nPatch application failed for attachment 169037 - Bug 19037: Issuing rules test tool - GUI for test tool\n\nPatches left in /tmp/WIRhXnM7di for manual application if needed\n\nTo resolve:\n 1. Fix conflicts (use 'git mergetool' or edit files manually)\n 2. Stage resolved files with 'git add'\n 3. Continue with 'git bz apply --continue' or 'git am --continue'\n 4. Or skip this patch with 'git bz apply --skip'\n 5. Or abort with 'git bz apply --abort'\n\nError: Apply failed: Git command (git am -3 /tmp/WIRhXnM7di/0001-169037.patch) failed: .git/rebase-apply/patch:172: trailing whitespace.\n \n.git/rebase-apply/patch:178: trailing whitespace.\n \n.git/rebase-apply/patch:250: trailing whitespace.\n \n.git/rebase-apply/patch:271: trailing whitespace.\n \nwarning: 4 lines add whitespace errors.\n.git/rebase-apply/patch:172: trailing whitespace.\n \n.git/rebase-apply/patch:178: trailing whitespace.\n \n.git/rebase-apply/patch:250: trailing whitespace.\n \n.git/rebase-apply/patch:271: trailing whitespace.\n \nwarning: 4 lines applied after fixing whitespace errors.\nerror: Failed to merge in the changes.\nhint: Use 'git am --show-current-patch=diff' to see the failed patch", "stderr_lines": ["", "Patch application failed for attachment 169037 - Bug 19037: Issuing rules test tool - GUI for test tool", "", "Patches left in /tmp/WIRhXnM7di for manual application if needed", "", "To resolve:", " 1. Fix conflicts (use 'git mergetool' or edit files manually)", " 2. Stage resolved files with 'git add'", " 3. Continue with 'git bz apply --continue' or 'git am --continue'", " 4. Or skip this patch with 'git bz apply --skip'", " 5. Or abort with 'git bz apply --abort'", "", "Error: Apply failed: Git command (git am -3 /tmp/WIRhXnM7di/0001-169037.patch) failed: .git/rebase-apply/patch:172: trailing whitespace.", " ", ".git/rebase-apply/patch:178: trailing whitespace.", " ", ".git/rebase-apply/patch:250: trailing whitespace.", " ", ".git/rebase-apply/patch:271: trailing whitespace.", " ", "warning: 4 lines add whitespace errors.", ".git/rebase-apply/patch:172: trailing whitespace.", " ", ".git/rebase-apply/patch:178: trailing whitespace.", " ", ".git/rebase-apply/patch:250: trailing whitespace.", " ", ".git/rebase-apply/patch:271: trailing whitespace.", " ", "warning: 4 lines applied after fixing whitespace errors.", "error: Failed to merge in the changes.", "hint: Use 'git am --show-current-patch=diff' to see the failed patch"], "stdout": "Fetching bug 19037...Checking dependency bug 36641...Fetching bug 19037 attachments...\n📋 Bug 19037 - Circulation and fine rules test tool\n\n • 169037 - Bug 19037: Issuing rules test tool - GUI for test tool\n • 169038 - Bug 19037: Update to use PQA api endpoint and modern styling\n • 169039 - Bug 19037: Move test tool to includes\n • 169040 - Bug 19037: Update for change of API response\n\nApply? [(y)es, (n)o, (i)nteractive] \nPreparing 4 patch(es):\n ✓ [1/4] Preparing Bug 19037: Issuing rules test tool - GUI for test tool\n ✓ [2/4] Preparing Bug 19037: Update to use PQA api endpoint and modern styling\n ✓ [3/4] Preparing Bug 19037: Move test tool to includes\n ✓ [4/4] Preparing Bug 19037: Update for change of API response\n\u001b[32m ✓ \u001b[0mPrepared 4 patch(es)\n\nApplying 4 patch(es):", "stdout_lines": ["Fetching bug 19037...Checking dependency bug 36641...Fetching bug 19037 attachments...", "📋 Bug 19037 - Circulation and fine rules test tool", "", " • 169037 - Bug 19037: Issuing rules test tool - GUI for test tool", " • 169038 - Bug 19037: Update to use PQA api endpoint and modern styling", " • 169039 - Bug 19037: Move test tool to includes", " • 169040 - Bug 19037: Update for change of API response", "", "Apply? [(y)es, (n)o, (i)nteractive] ", "Preparing 4 patch(es):", " ✓ [1/4] Preparing Bug 19037: Issuing rules test tool - GUI for test tool", " ✓ [2/4] Preparing Bug 19037: Update to use PQA api endpoint and modern styling", " ✓ [3/4] Preparing Bug 19037: Move test tool to includes", " ✓ [4/4] Preparing Bug 19037: Update for change of API response", "\u001b[32m ✓ \u001b[0mPrepared 4 patch(es)", "", "Applying 4 patch(es):"]} PLAY RECAP ********************************************************************* localhost : ok=30 changed=20 unreachable=0 failed=1 skipped=5 rescued=0 ignored=0