Skip to content

CI: RustFS on a free host port per job, not a fixed 59000 (sc-9611) - #301

Merged
ndbroadbent merged 1 commit into
mainfrom
ci-s3-port
Dec 5, 2026
Merged

ndbroadbent merged 1 commit into
mainfrom
ci-s3-port

Conversation

@ndbroadbent

@ndbroadbent ndbroadbent commented Dec 5, 2026 •

Copy link
Copy Markdown
Member

Main's CI at 734f7c7 failed in journeys (run 47533443138). The RustFS s3 container 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.sh instead of each repeating a docker run -p 59000:9000. The script:

  • names the container per run, attempt and job, and removes a container of that name before starting;
  • publishes 127.0.0.1::9000 and looks up the port Docker gave it;
  • waits until RustFS answers, and fails with its logs if it doesn't;
  • writes the address to VISUALCI_S3_ENDPOINT and VISUALCI_APP_TEST_S3_ENDPOINT in $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-bot with what you need.

@visualci-com

visualci-com Bot commented Dec 5, 2026 •

Copy link
Copy Markdown

VisualCI

docspring/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
ndbroadbent merged commit 9c4d2fe into main Dec 5, 2026
17 checks passed
@ndbroadbent
ndbroadbent deleted the ci-s3-port branch December 5, 2026 15:51
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