Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 27 additions & 4 deletions .github/workflows/black-box.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,10 @@ jobs:
run: |
sudo apt-get update
sudo apt-get install -y podman
pip install podman-compose
pip install podman-compose==1.6.0
sudo loginctl enable-linger "$(id -un)"
timeout 30 bash -c 'until [ -d /run/user/$(id -u) ]; do sleep 0.5; done'
echo "XDG_RUNTIME_DIR=/run/user/$(id -u)" >> "$GITHUB_ENV"

- name: Pre-pull container images
if: inputs.images != ''
Expand All @@ -58,10 +61,30 @@ jobs:
- name: Run tests
run: make ${{ inputs.test-target }}

- name: Collect logs on failure
if: failure()
- name: Collect diagnostics
if: failure() || cancelled()
continue-on-error: true
run: |
Comment thread
qodo-code-review[bot] marked this conversation as resolved.
podman-compose logs
set +e
echo "::group::podman ps -a"
podman ps -a
echo "::endgroup::"
Comment thread
qodo-code-review[bot] marked this conversation as resolved.

echo "::group::container health"
for c in $(podman ps -aq 2>/dev/null); do
name=$(podman inspect --format '{{.Name}}' "$c" 2>/dev/null || echo "$c")
echo "--- $name ---"
podman inspect --format '{{json .State.Health}}' "$c"
done
echo "::endgroup::"

echo "::group::container logs"
for c in $(podman ps -aq 2>/dev/null); do
name=$(podman inspect --format '{{.Name}}' "$c" 2>/dev/null || echo "$c")
echo "--- $name ---"
podman logs --tail 200 "$c"
done
echo "::endgroup::"

- name: Stop services
if: always()
Expand Down