Skip to content

Commit 9fbd722

Browse files
authored
feat: inspect docker compose failure on self-hosted e2e action (#3817)
It's hard to debug docker compose failure on other repositories since they can't see the `docker compose ps` and `docker compose logs`. One problem occurred here: getsentry/relay#4940 This PR aims to provide both commands if failure happens.
1 parent 0f2748e commit 9fbd722

File tree

2 files changed

+11
-6
lines changed

2 files changed

+11
-6
lines changed

.github/workflows/test.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,3 @@ jobs:
5454
uses: './'
5555
with:
5656
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
57-
58-
- name: Inspect failure
59-
if: failure()
60-
run: |
61-
docker compose ps
62-
docker compose logs

action.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,3 +168,14 @@ runs:
168168
with:
169169
directory: ${{ github.action_path }}
170170
token: ${{ inputs.CODECOV_TOKEN }}
171+
172+
- name: Inspect failure
173+
if: failure()
174+
shell: bash
175+
run: |
176+
echo "::group::Inspect failure - docker compose ps"
177+
docker compose ps
178+
echo "::endgroup::"
179+
echo "::group::Inspect failure - docker compose logs"
180+
docker compose logs
181+
echo "::endgroup::"

0 commit comments

Comments
 (0)