From f26ba72b52aad6240271a04b8d0b022314fc0f21 Mon Sep 17 00:00:00 2001 From: Ryan Savino Date: Tue, 22 Apr 2025 16:15:25 +0000 Subject: [PATCH] ci: Use shell option to enable tty in gha A tty is required for testing the debug console Signed-off-by: Ryan Savino --- .github/workflows/run-kata-coco-tests.yaml | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/.github/workflows/run-kata-coco-tests.yaml b/.github/workflows/run-kata-coco-tests.yaml index 70eb05030f..2ba97ee66c 100644 --- a/.github/workflows/run-kata-coco-tests.yaml +++ b/.github/workflows/run-kata-coco-tests.yaml @@ -92,7 +92,12 @@ jobs: - name: Run tests timeout-minutes: 100 - run: bash tests/integration/kubernetes/gha-run.sh run-tests + # GHA container doesn't support TTY by default + # script shell workaround required to start a session with TTY support + # See: https://github.com/actions/runner/issues/241 + shell: 'script -q -e -c "bash --noprofile --norc -eo pipefail {0}"' + run: | + ./tests/integration/kubernetes/gha-run.sh run-tests - name: Delete kata-deploy if: always() @@ -177,7 +182,12 @@ jobs: - name: Run tests timeout-minutes: 50 - run: bash tests/integration/kubernetes/gha-run.sh run-tests + # GHA container doesn't support TTY by default + # script shell workaround required to start a session with TTY support + # See: https://github.com/actions/runner/issues/241 + shell: 'script -q -e -c "bash --noprofile --norc -eo pipefail {0}"' + run: | + ./tests/integration/kubernetes/gha-run.sh run-tests - name: Delete kata-deploy if: always()