feat: Add test step to check etherpad works offline#7936
Conversation
Qodo reviews are paused for this user.Troubleshooting steps vary by plan Learn more → On a Teams plan? Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center? |
PR Summary by QodoCI: Add regression step to verify Etherpad boots with no network access WalkthroughsDescription• Add CI regression step to start Etherpad with --network none. • Poll container healthcheck until healthy or timeout, then fail CI on regression. • Ensure offline container logs are captured and resources cleaned up. Diagramgraph TD
A["GitHub Actions: docker.yml"] --> B["Step: run Etherpad offline"] --> C["docker run --network none"] --> D["Container: test-offline"] --> E{"Health status?"}
E -->|"healthy"| F["Mark ok=1"] --> G["docker rm -f"] --> H["Pass step"]
E -->|"starting"| I["sleep 2s & retry"] --> E
E -->|"unexpected / exited"| J["print logs"] --> G
G --> K{"ok==1?"}
K -->|"no"| L["Fail job"]
K -->|"yes"| H
High-Level AssessmentThe following are alternative approaches to this PR: 1. Disconnect network after start (docker network disconnect)
2. Host-level egress blocking in CI (iptables/firewalld)
Recommendation: Keep the current File ChangesTests (1)
|
This PR adds a test case for this issue: #7911
to make sure etherpad is able to start up without network access