Skip to content

Commit

Permalink
Always output envoy logs during FTW and upload as GHA artifact (#74)
Browse files Browse the repository at this point in the history
  • Loading branch information
anuraaga authored Nov 9, 2022
1 parent 636eee4 commit faa761d
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,11 @@ jobs:
- name: Run regression tests (ftw)
run: go run mage.go ftw

- uses: actions/upload-artifact@v3
with:
name: ftw-envoy-logs
path: build/ftw-envoy.log

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

Expand Down
4 changes: 3 additions & 1 deletion ftw/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,13 @@ services:
entrypoint: bash
command:
- -c
- tail -c +0 -f /home/envoy/logs/envoy.log
- tail -c +0 -f /home/envoy/logs/envoy.log > /build/ftw-envoy.log
volumes:
- logs:/home/envoy/logs:ro
- ../build:/build
ftw:
depends_on:
- envoy-logs
- wasm-logs
build: .
environment:
Expand Down
2 changes: 1 addition & 1 deletion ftw/tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,4 @@ echo -e "\n[Ok] Got status code $status_code, expected 200. Ready to start."

FTW_CLOUDMODE=${FTW_CLOUDMODE:-false}

go-ftw run -d coreruleset/tests/regression/tests --config ftw.yml --read-timeout=10s --cloud=$FTW_CLOUDMODE || (cp /home/envoy/logs/envoy.log /build/ftw-envoy.log; exit 1)
go-ftw run -d coreruleset/tests/regression/tests --config ftw.yml --read-timeout=10s --cloud=$FTW_CLOUDMODE || exit 1

0 comments on commit faa761d

Please sign in to comment.