Skip to content

[tooling] Improve reliability of make start-locally#1565

Merged
BenjaminPelletier merged 2 commits into
interuss:mainfrom
BenjaminPelletier:startlocally
Jul 13, 2026
Merged

[tooling] Improve reliability of make start-locally#1565
BenjaminPelletier merged 2 commits into
interuss:mainfrom
BenjaminPelletier:startlocally

Conversation

@BenjaminPelletier

Copy link
Copy Markdown
Member

While working on benchmarking, I noticed that make start-locally often failed with messages like:

Warning: Container local_infra_1-3-dss-1 is not connected to dss_internal_network. Reconnecting and restarting so the entrypoint reapplies traffic shaping...
Error response from daemon: network sandbox for container 8d2716de57f3ea398f586380c88f3457b09af8d79a5c1b0ccdcb092a33e2cb79 not found

Gemini identified that this was probably happening when a container was restarting at the moment check_and_connect was called and suggested ensuring a known state when attempting docker network connect. This seems to have fixed the issue as I haven't seen this type of failure since making this fix.

@BenjaminPelletier BenjaminPelletier marked this pull request as ready for review July 11, 2026 19:00
Comment thread build/dev/run_locally.sh Outdated
local status
status=$(docker inspect --format '{{.State.Status}}' "${container}" 2>/dev/null || true)
if [ "$status" = "restarting" ] || [ "$status" = "running" ]; then
docker stop -t 2 "${container}" >/dev/null 2>&1 || true

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since there is already a forced stop bellow, is the if block not too much defensive? Or should we want a double stop, can't we just remove the if and stop it in everycase ?

@BenjaminPelletier BenjaminPelletier merged commit 1808541 into interuss:main Jul 13, 2026
23 checks passed
@BenjaminPelletier BenjaminPelletier deleted the startlocally branch July 13, 2026 17:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants