Skip to content

feat: claim published sandbox ports in Redis - #368

Merged
AydinHassan merged 2 commits into
onlinefrom
lock-port-picker
Nov 1, 2026
Merged

AydinHassan merged 2 commits into
onlinefrom
lock-port-picker

Conversation

@AydinHassan

Copy link
Copy Markdown
Member

Uses php-workshop's LockPortPicker (php-school/php-workshop#343): CloudWorkshopRepository passes it to each workshop's DockerSandbox, with a LockFactory on our Redis, so verifies sharing the docker host never publish on the same port. The picker is required, so it can't be forgotten.

Also updates php-workshop, which brings in symfony/lock.

Checked against a throwaway Redis: picked ports are locked for 60s and a second claim of the same port is refused.

Verifies share the docker host, so DockerSandbox gets php-workshop's LockPortPicker on a Redis LockFactory and two never publish on the same port.
# Conflicts:
#	composer.lock
@AydinHassan AydinHassan changed the title Claim published sandbox ports in Redis feat: claim published sandbox ports in Redis Nov 1, 2026
@AydinHassan
AydinHassan merged commit 1127241 into online Nov 1, 2026
3 checks passed
@AydinHassan
AydinHassan deleted the lock-port-picker branch November 1, 2026 10:52
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