Skip to content

Commit

Permalink
chore(ci): Print services logs upon e2e test suite error
Browse files Browse the repository at this point in the history
It's hard to determine the cause of test flakiness without all the auxiliary
logs from other services.

Print the logs of maker, coordinator and docker containers in case e2e tests fail.
  • Loading branch information
klochowicz committed Sep 19, 2023
1 parent 2dfbf80 commit 5a216b8
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,28 @@ jobs:
curl -d '{"address":"bcrt1qylgu6ffkp3p0m8tw8kp4tt2dmdh755f4r5dq7s", "amount":"0.1"}' -H "Content-Type: application/json" -X POST http://localhost:3000/faucet
- name: Run e2e tests
run: just e2e --nocapture
continue-on-error: true # Continue running other steps even if this one fails
- name: Print maker logs on e2e tests error
if: failure()
run: cat data/maker/regtest.log
- name: Print coordinator logs on e2e tests error
if: failure()
run: cat data/coordinator/regtest.log
- name: LND logs on e2e tests error
if: failure()
run: docker logs lnd
- name: bitcoin logs on e2e tests error
if: failure()
run: docker logs bitcoin
- name: faucet logs on e2e tests error
if: failure()
run: docker logs faucet
- name: electrs logs on e2e tests error
if: failure()
run: docker logs electrs
- name: esplora logs on e2e tests error
if: failure()
run: docker logs esplora
- name: show disk space after tests
if: always()
run: df -h

0 comments on commit 5a216b8

Please sign in to comment.