Skip to content

Commit 79d0bb5

Browse files
terchrisclaude
andcommitted
debug: add CI debug step to capture cmd/service --help failure output
The unit tests for cmd and service scripts --help fail on CI (amd64) but pass locally (arm64). Adding a debug step to capture the actual error output when the test fails. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 8515fb6 commit 79d0bb5

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

.github/workflows/ci-tests.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,22 @@ jobs:
191191
devcontainer-test:latest \
192192
bash /workspace/.devcontainer/additions/tests/run-all-tests.sh unit
193193
194+
- name: Debug failing scripts (if unit tests failed)
195+
if: failure()
196+
run: |
197+
echo "=== Debug: cmd-ai.sh --help ==="
198+
docker run --rm \
199+
-v "${{ github.workspace }}:/workspace" \
200+
-w /workspace \
201+
devcontainer-test:latest \
202+
bash -c 'bash /workspace/.devcontainer/additions/cmd-ai.sh --help 2>&1; echo "EXIT=$?"'
203+
echo "=== Debug: service-nginx.sh --help ==="
204+
docker run --rm \
205+
-v "${{ github.workspace }}:/workspace" \
206+
-w /workspace \
207+
devcontainer-test:latest \
208+
bash -c 'bash /workspace/.devcontainer/additions/service-nginx.sh --help 2>&1; echo "EXIT=$?"'
209+
194210
# ===========================================================================
195211
# Summary Job
196212
# ===========================================================================

0 commit comments

Comments
 (0)