Skip to content

ci(cd): fix both CD breaks — Fly app name + GHCR cache ref must be lowercase - #74

Closed
supmo668 wants to merge 1 commit into
mainfrom
devex-cd-fly-app-and-ghcr-cache
Closed

supmo668 wants to merge 1 commit into
mainfrom
devex-cd-fly-app-and-ghcr-cache

Conversation

@supmo668

Copy link
Copy Markdown

Both CD workflows have been red on every push to main. Two independent config bugs, neither in application code.

1. Deploy to Fly.io — Error: app not found (fails in ~18s)

fly.toml declared app = "shrine-openclaw", but no Fly app by that name exists. The real target is shrine-openclaw-chat-staging (the only live app; shrine-openclaw-chat-pg is dormant).

Because CD has never succeeded, staging has been kept alive by manual flyctl deploy — this restores automated deploys.

2. Docker Release — repository name must be lowercase

Both build-amd64 and build-arm64 fail with:

invalid reference format: repository name (Syntropy-Health/openclaw-cache) must be lowercase

IMAGE_NAME is ${{ github.repository }} = Syntropy-Health/openclaw. That's fine for the image tags (docker/metadata-action lowercases those for us), but it's passed raw into the buildx cache refs, and GHCR rejects uppercase in a repository name. Only the cache ref was ever broken.

Fixed by computing a lowercase copy (IMAGE_NAME_LC) and using it in the four cache-from/cache-to refs. Repeated per job because each job has its own environment. Uses tr rather than bash ${VAR,,} so it doesn't depend on the runner's default shell being bash.

Verification

  • Workflow parses; job graph unchanged (build-amd64, build-arm64, create-manifest)
  • No raw IMAGE_NAME remains in any cache ref (all four repointed)
  • Lowercase step present in both build jobs
  • tr expression resolves Syntropy-Health/openclaw → syntropy-health/openclaw

Scope note — deliberately NOT fixed here

The separate CI workflow is also red (checks node/bun/windows + release-check). Those are application test failures, not CD configuration, and are outside this lane — reporting them to you separately so they don't get silently bundled into a CD fix.

Path-B: authored by devex, landed by CTO (workflow scope).

🤖 Generated with Claude Code

…wercase

Both CD workflows have been red on every push to main. Two independent
config bugs, neither in application code:

1. Deploy to Fly.io — "Error: app not found" (fails in ~18s).
   fly.toml declared app = "shrine-openclaw", but no Fly app by that name
   exists. The real deploy target is shrine-openclaw-chat-staging (the only
   live app; shrine-openclaw-chat-pg is dormant). Because CD has never
   succeeded, staging has been kept alive by manual `flyctl deploy` — this
   restores automated deploys.

2. Docker Release — both build-amd64 and build-arm64 fail with
   "invalid reference format: repository name (Syntropy-Health/openclaw-cache)
   must be lowercase".
   IMAGE_NAME is ${{ github.repository }} = "Syntropy-Health/openclaw". That
   is fine for the image TAGS (docker/metadata-action lowercases those), but it
   is passed RAW into the buildx cache refs, and GHCR rejects uppercase in a
   repository name. Only the cache ref was ever broken.
   Fixed by computing a lowercase copy (IMAGE_NAME_LC) and using it in the four
   cache-from/cache-to refs. The step is repeated per job because each job has
   its own environment. Uses `tr` rather than bash ${VAR,,} so it does not
   depend on the runner's default shell being bash.

Verified: workflow parses and the job graph is unchanged; no raw IMAGE_NAME
remains in any cache ref; the lowercase step is present in both build jobs; the
tr expression resolves "Syntropy-Health/openclaw" -> "syntropy-health/openclaw".

Scope note: the separate `CI` workflow is also red (checks node/bun/windows +
release-check). Those are application test failures, not CD configuration, and
are deliberately NOT touched here — reported to openclaw separately.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
@coderabbitai

coderabbitai Bot commented Jul 21, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@supmo668, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 57 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: a1b128ca-378c-4856-9f4a-c5708c6437ee

📥 Commits

Reviewing files that changed from the base of the PR and between e04ed23 and 69fe073.

📒 Files selected for processing (2)
  • .github/workflows/docker-release.yml
  • fly.toml
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch devex-cd-fly-app-and-ghcr-cache

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@github-actions

Copy link
Copy Markdown

⚠️ Formal models conformance drift detected

The formal models extracted constants (generated/*) do not match this openclaw PR.

This check is informational (not blocking merges yet).
See the formal-models-conformance-drift artifact for the diff.

If this change is intentional, follow up by updating the formal models repo or regenerating the extracted artifacts there.

@supmo668

Copy link
Copy Markdown
Author

Superseded by the fresh fly.toml-only PR (cut off current main). #74's cache-ref half already landed via #81, leaving only the fly.toml app-name repoint, which now ships collision-free in the new PR.

@supmo668 supmo668 closed this Jul 23, 2026
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