Repository navigation
CI: RustFS on a free host port per job, not a fixed 59000 (sc-9611) - #301
Merged
Merged
Conversation
VisualCIdocspring/visualci · build #1446 · 578 unchanged · no changes This PR vs base: 6 changed since #1418, across 2 builds docspring/visualci · journeys · build #1442 · 53 unchanged · no changes This PR vs base: 3 removed since #1406, across 2 builds Updated as builds change. Agents can review with VisualCI's MCP tools. |
…d 59000 that an earlier job's container can hold (sc-9611) Main's run 47533443138 failed in journeys: the s3 container couldn't bind 59000 (address already in use), so a container from an earlier job was still on the runner. s3.sh names the container per run, attempt and job, publishes 127.0.0.1::9000, looks the port up, and puts it in VISUALCI_S3_ENDPOINT and VISUALCI_APP_TEST_S3_ENDPOINT for the job's later steps, which already read them.
ndbroadbent
force-pushed
the
ci-s3-port
branch
from
December 5, 2026 15:41
804bbea to
687441b
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Main's CI at 734f7c7 failed in journeys (run 47533443138). The RustFS
s3container couldn't bind host port 59000 ("address already in use"), because a container from an earlier job was still on the runner. The "No VisualCI token" error after it was a knock-on.The test, visual-capture and journeys jobs now start RustFS with
scripts/ci/s3.shinstead of each repeating adocker run -p 59000:9000. The script:127.0.0.1::9000and looks up the port Docker gave it;VISUALCI_S3_ENDPOINTandVISUALCI_APP_TEST_S3_ENDPOINTin$GITHUB_ENV. visual.sh, journeys/run.sh and app's tests already read those, so no fixed port is assumed anywhere in CI. The 59000 defaults stay for local runs.I tested the script locally with the Docker Hub copy of the same image (the GHCR mirror needs a login): it started on 127.0.0.1:32770 and wrote both variables. shellcheck and actionlint pass. Postgres still uses the service container's fixed 55433, which the runner itself starts and removes with each job. That isn't what broke here, so it's left for another time.
Part of sc-9611.
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.