matrix-org / complement

Matrix compliance test suite
Apache License 2.0
61 stars 52 forks source link

Homerunner network creation seems to race deployment #720

Open Half-Shot opened 6 months ago

Half-Shot commented 6 months ago
Encountered an error while processing a homerunner request: 400 {"message":"failed to create deployment: CreateDeployment: Deploy returned error Deploy: Failed to deploy image {Containers:-1 Created:1712588816 ID:sha256:c412da8c2f4203ae5aff3c3dd7097536cbc98ade492e0d91e3be640a73c77951 ....} : Error response from daemon: network complement_homerunner_hookshot_integration_test_1712588803722 not found"}

Seems like something is occasionally racing, subsequent attempts to create a deployment seem to work.

kegsay commented 3 months ago

Complement first makes the network then attaches containers. It waits for the network creation request to succeed before continuing. If this is async and the network isn't set up yet, then yes it could cause this.