From 14fa4e9c9d3a88fff26da97c1c40392d3e1f2db1 Mon Sep 17 00:00:00 2001 From: seamymckenna Date: Thu, 16 Oct 2025 09:45:16 +0100 Subject: [PATCH 1/5] ci debug --- .github/workflows/module_acceptance.yml | 30 ++++++++++++++++++++++++- 1 file changed, 29 insertions(+), 1 deletion(-) diff --git a/.github/workflows/module_acceptance.yml b/.github/workflows/module_acceptance.yml index 3ff132c..cbad149 100644 --- a/.github/workflows/module_acceptance.yml +++ b/.github/workflows/module_acceptance.yml @@ -26,6 +26,10 @@ on: description: "Disable and stop apparmor" default: false type: boolean + ssh-debugging: + description: Boolean; whether or not to pause for ssh debugging + required: true + default: false # ENABLE PUPPETCORE. The calling workflow must: @@ -119,7 +123,12 @@ jobs: sudo systemctl disable apparmor sudo systemctl stop apparmor fi - + - name: Start SSH session + if: ${{ github.event.inputs.ssh-debugging == 'true' }} + uses: luchihoratiu/debug-via-ssh@main + with: + NGROK_AUTH_TOKEN: ${{ secrets.NGROK_AUTH_TOKEN }} + SSH_PASS: ${{ secrets.SSH_PASS }} - name: "Setup ruby" uses: "ruby/setup-ruby@v1" with: @@ -157,10 +166,29 @@ jobs: run: | bundle exec rake 'litmus:install_module' + - name: Wait as long as the file ${HOME}/pause file is present + if: ${{ always() && github.event.inputs.ssh-debugging == true }} + run: | + while [ -f "${HOME}/pause" ] ; do + echo "${HOME}/pause present, sleeping for 60 seconds..." + sleep 60 + done + echo "${HOME}/pause absent, continuing workflow." + + - name: "Run acceptance tests" run: | bundle exec rake 'litmus:acceptance:parallel' + - name: Wait as long as the file ${HOME}/pause file is present + if: ${{ always() && github.event.inputs.ssh-debugging == true }} + run: | + while [ -f "${HOME}/pause" ] ; do + echo "${HOME}/pause present, sleeping for 60 seconds..." + sleep 60 + done + echo "${HOME}/pause absent, continuing workflow." + - name: "Remove test environment" if: ${{ always() }} continue-on-error: true From e6b136f9d418c30b3cbb14669e09229bafb8c739 Mon Sep 17 00:00:00 2001 From: seamymckenna Date: Thu, 16 Oct 2025 10:29:46 +0100 Subject: [PATCH 2/5] add type --- .github/workflows/module_acceptance.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/module_acceptance.yml b/.github/workflows/module_acceptance.yml index cbad149..e06d8f8 100644 --- a/.github/workflows/module_acceptance.yml +++ b/.github/workflows/module_acceptance.yml @@ -28,9 +28,8 @@ on: type: boolean ssh-debugging: description: Boolean; whether or not to pause for ssh debugging - required: true default: false - + type: boolean # ENABLE PUPPETCORE. The calling workflow must: # - Set a valid PUPPET_FORGE_TOKEN secret on its repository. From b6afcb4f52e2c81f1f1c08d389782f4c05993d51 Mon Sep 17 00:00:00 2001 From: seamymckenna Date: Thu, 16 Oct 2025 12:21:37 +0100 Subject: [PATCH 3/5] correct_case --- .github/workflows/module_acceptance.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/module_acceptance.yml b/.github/workflows/module_acceptance.yml index e06d8f8..aaceec5 100644 --- a/.github/workflows/module_acceptance.yml +++ b/.github/workflows/module_acceptance.yml @@ -123,7 +123,7 @@ jobs: sudo systemctl stop apparmor fi - name: Start SSH session - if: ${{ github.event.inputs.ssh-debugging == 'true' }} + if: ${{ github.event.inputs.ssh-debugging == true }} uses: luchihoratiu/debug-via-ssh@main with: NGROK_AUTH_TOKEN: ${{ secrets.NGROK_AUTH_TOKEN }} From 5dd1b01fc5f01796cb348d112b4f5657c3adf72c Mon Sep 17 00:00:00 2001 From: seamymckenna Date: Thu, 16 Oct 2025 16:12:58 +0100 Subject: [PATCH 4/5] force_ssh --- .github/workflows/module_acceptance.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/module_acceptance.yml b/.github/workflows/module_acceptance.yml index aaceec5..84f5f8d 100644 --- a/.github/workflows/module_acceptance.yml +++ b/.github/workflows/module_acceptance.yml @@ -28,7 +28,7 @@ on: type: boolean ssh-debugging: description: Boolean; whether or not to pause for ssh debugging - default: false + default: true type: boolean # ENABLE PUPPETCORE. The calling workflow must: From a4d59a426620b604bd95c62a68120bf9b0ea5bc0 Mon Sep 17 00:00:00 2001 From: seamymckenna Date: Thu, 16 Oct 2025 16:25:22 +0100 Subject: [PATCH 5/5] force_ssh --- .github/workflows/module_acceptance.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/module_acceptance.yml b/.github/workflows/module_acceptance.yml index 84f5f8d..4d5c7a9 100644 --- a/.github/workflows/module_acceptance.yml +++ b/.github/workflows/module_acceptance.yml @@ -123,7 +123,6 @@ jobs: sudo systemctl stop apparmor fi - name: Start SSH session - if: ${{ github.event.inputs.ssh-debugging == true }} uses: luchihoratiu/debug-via-ssh@main with: NGROK_AUTH_TOKEN: ${{ secrets.NGROK_AUTH_TOKEN }} @@ -166,7 +165,6 @@ jobs: bundle exec rake 'litmus:install_module' - name: Wait as long as the file ${HOME}/pause file is present - if: ${{ always() && github.event.inputs.ssh-debugging == true }} run: | while [ -f "${HOME}/pause" ] ; do echo "${HOME}/pause present, sleeping for 60 seconds..."