fix(ci): the CI images are named by the forge's public address, so the runners' Docker can pull them #2584

Merged
HumanBean merged 1 commit from HumanBean/Longshot:fix/ci-image-public-host into main 2026-11-26 01:32:11 +00:00
Owner

Summary

Since the CI images went into the registry (after #2557), every pull request's jobs that run in an image fail within a second. #2581's run 54707 shows it:

docker pull image=magicbean-git:3000/magicbeandev/longshot-ci-checks:dadd4c6bd7790988
... dial tcp: lookup magicbean-git on 127.0.0.53:53: server misbehaving

ci.yml asked ci_image.sh image about the registry at github.server_url, and the script names each image by that same host. Inside the server, github.server_url is http://magicbean-git:3000, a name the Docker daemon that starts a job's container cannot resolve. ci.yml now asks the public address, https://git.magicbean.dev. The image is then git.magicbean.dev/magicbeandev/longshot-ci-*:<tag>, which is the name ci.md already gives.

ci_image.sh is unchanged, so the images' tags stay the same, and this PR's own run pulls the images that are already in the registry.

Read .forgejo/workflows/ci.yml, the "The CI images" step.

Testing

Tested: scripts/linux/ci_image.sh image https://git.magicbean.dev, run here, finds both images (checks_ready=true, lite_ready=true). This PR's own CI is the real test: its jobs should start in git.magicbean.dev/magicbeandev/longshot-ci-checks:dadd4c6bd7790988 and ...-lite:4db55277817032db.

Still to test: None beyond this PR's CI.

Measurements

Nothing to measure: the name of an image.

Risks

The pull now goes through the public address, so it passes through Cloudflare, but only for layers the runner hasn't cached yet. Revert to undo; every job would then fall back to installing its tools only if the images are missing, which they aren't, so a revert brings the failure back.

Checklist

Ready for review

  • One topic, on current main; the title is a Conventional Commit.
  • Tested on my own PC, in the game for a change the game runs, as Testing says.
  • mise run test passes (any failure that also fails on main is named). (this PR's CI runs it)
  • Measured against main, or Measurements says why there is nothing to measure.
  • No game files, build output or hand-edited generated files; third_party/ untouched; nothing GPL-incompatible.

When it applies

  • AI assistance recorded with Assisted-by: / Co-Authored-By: trailers.

Ready to merge

  • Everything in Still to test has run, its results in Tested.
  • Approved in review, every comment answered.
  • CI passes on the head; on current main, measured again or a comment says why the numbers still hold.

🤖 Generated with Claude Code

https://claude.ai/code/session_017vw8e1RP1VgcWpgA7Kq6ec

## Summary Since the CI images went into the registry (after [#2557](https://git.magicbean.dev/MagicBeanDev/Longshot/pulls/2557)), every pull request's jobs that run in an image fail within a second. [#2581](https://git.magicbean.dev/MagicBeanDev/Longshot/pulls/2581)'s run 54707 shows it: ``` docker pull image=magicbean-git:3000/magicbeandev/longshot-ci-checks:dadd4c6bd7790988 ... dial tcp: lookup magicbean-git on 127.0.0.53:53: server misbehaving ``` `ci.yml` asked `ci_image.sh image` about the registry at `github.server_url`, and the script names each image by that same host. Inside the server, `github.server_url` is `http://magicbean-git:3000`, a name the Docker daemon that starts a job's container cannot resolve. `ci.yml` now asks the public address, `https://git.magicbean.dev`. The image is then `git.magicbean.dev/magicbeandev/longshot-ci-*:<tag>`, which is the name `ci.md` already gives. `ci_image.sh` is unchanged, so the images' tags stay the same, and this PR's own run pulls the images that are already in the registry. Read `.forgejo/workflows/ci.yml`, the "The CI images" step. ## Testing **Tested:** `scripts/linux/ci_image.sh image https://git.magicbean.dev`, run here, finds both images (`checks_ready=true`, `lite_ready=true`). This PR's own CI is the real test: its jobs should start in `git.magicbean.dev/magicbeandev/longshot-ci-checks:dadd4c6bd7790988` and `...-lite:4db55277817032db`. **Still to test:** None beyond this PR's CI. ## Measurements Nothing to measure: the name of an image. ## Risks The pull now goes through the public address, so it passes through Cloudflare, but only for layers the runner hasn't cached yet. Revert to undo; every job would then fall back to installing its tools only if the images are missing, which they aren't, so a revert brings the failure back. ## Checklist ### Ready for review - [x] One topic, on current `main`; the title is a Conventional Commit. - [x] Tested on my own PC, in the game for a change the game runs, as Testing says. - [ ] `mise run test` passes (any failure that also fails on `main` is named). (this PR's CI runs it) - [x] Measured against `main`, or Measurements says why there is nothing to measure. - [x] No game files, build output or hand-edited generated files; `third_party/` untouched; nothing GPL-incompatible. ### When it applies - [x] AI assistance recorded with `Assisted-by:` / `Co-Authored-By:` trailers. ### Ready to merge - [ ] Everything in Still to test has run, its results in Tested. - [ ] Approved in review, every comment answered. - [ ] CI passes on the head; on current `main`, measured again or a comment says why the numbers still hold. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_017vw8e1RP1VgcWpgA7Kq6ec
fix(ci): the CI images are named by the forge's public address, so the runners' Docker can pull them
Some checks failed
PR description / Title and description (pull_request_target) Successful in 6s
CI / What the change needs (pull_request) Successful in 8s
CI / Third-party parts and guide screenshots (pull_request) Successful in 11s
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Successful in 56s
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Successful in 2m1s
CI / Website build and checks (pull_request) Successful in 2m11s
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Successful in 3m32s
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Failing after 18m27s
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Failing after 18m27s
ddbefdf80b
Since the CI images went into the registry, every pull request's jobs in an image fail in a second (#2581's run
54707): ci.yml asked ci_image.sh with github.server_url, which inside the server is http://magicbean-git:3000, and
named each image by that host. The Docker daemon that starts a job's container does not resolve magicbean-git
('lookup magicbean-git on 127.0.0.53:53: server misbehaving'). ci.yml now asks the public address, so the image is
git.magicbean.dev/magicbeandev/longshot-ci-*:<tag>, as ci.md says. ci_image.sh is unchanged, so the images' tags
are too.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_017vw8e1RP1VgcWpgA7Kq6ec
HumanBean force-pushed fix/ci-image-public-host from ddbefdf80b
Some checks failed
PR description / Title and description (pull_request_target) Successful in 6s
CI / What the change needs (pull_request) Successful in 8s
CI / Third-party parts and guide screenshots (pull_request) Successful in 11s
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Successful in 56s
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Successful in 2m1s
CI / Website build and checks (pull_request) Successful in 2m11s
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Successful in 3m32s
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Failing after 18m27s
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Failing after 18m27s
to 7fd0a5760a
Some checks failed
CI / What the change needs (pull_request) Successful in 10s
CI / Third-party parts and guide screenshots (pull_request) Successful in 13s
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Successful in 20s
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Successful in 1m37s
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Successful in 4m21s
PR description / Title and description (pull_request_target) Failing after 6s
CI / Website build and checks (pull_request) Successful in 2m1s
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Successful in 5m35s
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Failing after 29m48s
2026-11-26 01:26:09 +00:00
Compare
HumanBean changed title from WIP: fix(ci): the CI images are named by the forge's public address, so the runners' Docker can pull them to fix(ci): the CI images are named by the forge's public address, so the runners' Docker can pull them 2026-11-26 01:32:04 +00:00
HumanBean deleted branch fix/ci-image-public-host 2026-11-26 01:32:12 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
MagicBeanDev/Longshot!2584
No description provided.