Skip to content

fix(controller): reserve unique frontend ports per run - #2

Merged
emmepra merged 1 commit into
devfrom
fix-run-port-allocation
Mar 31, 2026
Merged

fix(controller): reserve unique frontend ports per run#2
emmepra merged 1 commit into
devfrom
fix-run-port-allocation

Conversation

@emmepra

@emmepra emmepra commented Mar 30, 2026

Copy link
Copy Markdown
Contributor

Summary

  • reserve a unique frontend port per run and persist it in the run binding
  • reuse the reserved port for launch, read-models, and restart-stack
  • add focused controller coverage for reserved frontend ports

Checks

  • PYTHONPATH=. pytest tests/test_run_launcher_frontend_ports.py tests/test_run_frontend_ports.py tests/test_public_runs_routes.py -q
  • python3.11 -m compileall app
  • bash scripts/up_stack.sh
  • live verification with 3 overlapping hello-world runs, each receiving a distinct frontend URL and completing successfully

@emmepra
emmepra merged commit 3ddb731 into dev Mar 31, 2026
4 checks passed
@emmepra
emmepra deleted the fix-run-port-allocation branch March 31, 2026 16:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant