Open zc-devs opened 1 week ago
server, agent, web-ui
Running service without defined port on Kubernetes leads to failed pipeline with cancelled all steps. There is no error in UI explaining what happened.
service
failed
cancelled
skip_clone: true services: database: image: alpine commands: - echo 'Running MySQL server' - sleep 300 steps: build: image: alpine commands: - echo 'Building the app'
{"level":"debug","repo":"wp/test","pipeline":"24","workflow_id":"131","error":"Service \"wp-svc-01jcfsknbyamqsmky9re1t47bq-database\" is invalid: spec.ports: Required value","canceled":false,"time":"2024-11-12T08:59:56Z","caller":"/src/agent/runner.go:170","message":"workflow finished"}
Pipeline failed with errors visible in UI, like
Oh no, we got some errors!
Show errors
Errors
[linter]woodpecker: steps.database cannot use service without defined ports
OR
Just on pipeline page instead of Oh no, we got some errors! something like
Service \"wp-svc-01jcfsknbyamqsmky9re1t47bq-database\" is invalid: spec.ports: Required value
Also mentioned error should be at error level instead of debug.
error
debug
Woodpecker `next-f87e80381b`, Gitea `1.22.3`, Postgres `16`, Kubernetes `v1.30.6+k3s1`
agent.log server.log
next
Component
server, agent, web-ui
Describe the bug
Running
service
without defined port on Kubernetes leads tofailed
pipeline withcancelled
all steps. There is no error in UI explaining what happened.Steps to reproduce
cancelled
steps without errorsfailed
pipelineExpected behavior
Pipeline failed with errors visible in UI, like
Oh no, we got some errors!
Show errors
Errors
tab see error likeOR
Just on pipeline page instead of
Oh no, we got some errors!
something likeAlso mentioned error should be at
error
level instead ofdebug
.System Info
Additional context
agent.log server.log
Validations
next
version already [https://woodpecker-ci.org/faq#which-version-of-woodpecker-should-i-use]