mirror of
https://github.com/logos-blockchain/logos-execution-zone.git
synced 2026-05-09 17:49:42 +00:00
print logs
This commit is contained in:
parent
c2690236e9
commit
5ba939d156
31
.github/workflows/ci.yml
vendored
31
.github/workflows/ci.yml
vendored
@ -182,18 +182,41 @@ jobs:
|
|||||||
- name: Install nextest
|
- name: Install nextest
|
||||||
run: cargo install --locked cargo-nextest
|
run: cargo install --locked cargo-nextest
|
||||||
|
|
||||||
|
- name: Start container log capture
|
||||||
|
run: |
|
||||||
|
mkdir -p /tmp/container-logs
|
||||||
|
(
|
||||||
|
seen=""
|
||||||
|
while true; do
|
||||||
|
for c in $(docker ps -q 2>/dev/null); do
|
||||||
|
case " $seen " in
|
||||||
|
*" $c "*) ;;
|
||||||
|
*)
|
||||||
|
name=$(docker inspect -f '{{.Name}}' "$c" 2>/dev/null | sed 's|^/||')
|
||||||
|
docker logs -f "$c" >"/tmp/container-logs/${name}.log" 2>&1 &
|
||||||
|
seen="$seen $c"
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
done
|
||||||
|
sleep 1
|
||||||
|
done
|
||||||
|
) &
|
||||||
|
echo $! > /tmp/log-watcher.pid
|
||||||
|
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
env:
|
env:
|
||||||
RISC0_DEV_MODE: "1"
|
RISC0_DEV_MODE: "1"
|
||||||
RUST_LOG: "info"
|
RUST_LOG: "info"
|
||||||
run: cargo nextest run -p integration_tests indexer -- --skip tps_test
|
run: cargo nextest run -p integration_tests indexer -- --skip tps_test
|
||||||
|
|
||||||
- name: Dump bedrock container logs on failure
|
- name: Dump captured container logs on failure
|
||||||
if: failure()
|
if: failure()
|
||||||
run: |
|
run: |
|
||||||
for c in $(docker ps -aq); do
|
kill "$(cat /tmp/log-watcher.pid)" 2>/dev/null || true
|
||||||
echo "=== $(docker inspect -f '{{.Name}}' $c) ==="
|
for f in /tmp/container-logs/*.log; do
|
||||||
docker logs $c 2>&1 | tail -300
|
[ -e "$f" ] || continue
|
||||||
|
echo "=== $f ==="
|
||||||
|
tail -300 "$f"
|
||||||
done
|
done
|
||||||
|
|
||||||
valid-proof-test:
|
valid-proof-test:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user