Skip to content

Commit 071f66c

Browse files
authored
ci: print server logs after server tests (#1973)
I noticed some flakiness in the tests, in fetching bindings. Let's add some basic observability to enable troubleshooting.
1 parent c062b7e commit 071f66c

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

.github/workflows/bindings-server.main.kts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,12 @@ workflow(
148148
name = "Fetch maven-metadata.xml for nested action",
149149
command = "curl --fail http://localhost:8080/actions/cache__save/maven-metadata.xml | grep '<version>v4</version>'",
150150
)
151+
152+
run(
153+
name = "Print server logs",
154+
command = "cat jit-binding-server/logs/server.log",
155+
condition = expr { always() }
156+
)
151157
}
152158

153159
job(

.github/workflows/bindings-server.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,10 @@ jobs:
118118
- id: 'step-16'
119119
name: 'Fetch maven-metadata.xml for nested action'
120120
run: 'curl --fail http://localhost:8080/actions/cache__save/maven-metadata.xml | grep ''<version>v4</version>'''
121+
- id: 'step-17'
122+
name: 'Print server logs'
123+
run: 'cat jit-binding-server/logs/server.log'
124+
if: '${{ always() }}'
121125
deploy:
122126
name: 'Deploy to DockerHub'
123127
runs-on: 'ubuntu-latest'

0 commit comments

Comments
 (0)