woodpecker-ci / woodpecker

Woodpecker is a simple, yet powerful CI/CD engine with great extensibility.
https://woodpecker-ci.org
Apache License 2.0
4.17k stars 360 forks source link

Test agent running pipelines while server is offline #1776

Closed anbraten closed 1 year ago

anbraten commented 1 year ago

What happens if the server goes offline, but the agent is still running pipelines. Will the agent buffer logs and status changes and send them again, after the server comes back online?

This should be tested and if necessary a roadmap with improvements should be created.

zc-devs commented 1 year ago

I've tested it on next-556607b525 and Kubernetes backend. Step before connection lost is finished and pipeline is paused until server is up. Then pipeline continues and successfully finishes.

woodpecker-agent.log woodpecker-server-1.log woodpecker-server-2.log

Screenshot 2023-06-07 130231 Screenshot 2023-06-07 130244 Screenshot 2023-06-07 130334 Screenshot 2023-06-07 130526 Screenshot 2023-06-07 130713 Screenshot 2023-06-07 130753

anbraten commented 1 year ago

thanks for testing