Skip to content

fix(ci): speed up Railway preview image builds with shared cache#3906

Merged
mmabrouk merged 9 commits intorelease/v0.90.2from
fix/railway-preview-build-cache
Mar 4, 2026
Merged

fix(ci): speed up Railway preview image builds with shared cache#3906
mmabrouk merged 9 commits intorelease/v0.90.2from
fix/railway-preview-build-cache

Conversation

@mmabrouk
Copy link
Member

@mmabrouk mmabrouk commented Mar 4, 2026

Summary

  • switch Railway preview image builds from GitHub Actions cache backend to shared GHCR BuildKit registry caches so new PRs can reuse layers from previous PRs
  • keep PR-scoped cache refs for stable repeated builds while also reading/writing a shared cache ref across PRs
  • harden manual workflow dispatch behavior (manual-<sha> tags) and document the new cache behavior in Railway OSS docs

Why

PR-local caching made second builds fast but left first builds in other PRs cold. Shared registry cache refs improve cache hit rates across branches and reduce repeated dependency/build work.


Open with Devin

@vercel
Copy link

vercel bot commented Mar 4, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
agenta-documentation Ready Ready Preview, Comment Mar 4, 2026 3:39pm

Request Review

@dosubot dosubot bot added the size:M This PR changes 30-99 lines, ignoring generated files. label Mar 4, 2026
@dosubot dosubot bot added ci/cd documentation Improvements or additions to documentation labels Mar 4, 2026
Copy link
Contributor

@devin-ai-integration devin-ai-integration bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no potential bugs to report.

View in Devin Review to see 4 additional findings.

Open in Devin Review

@github-actions
Copy link
Contributor

github-actions bot commented Mar 4, 2026

Railway Preview Environment

Status Destroyed (PR closed)

Updated at 2026-03-04T18:43:40.036Z

@dosubot dosubot bot added size:L This PR changes 100-499 lines, ignoring generated files. and removed size:M This PR changes 30-99 lines, ignoring generated files. labels Mar 4, 2026
@mmabrouk mmabrouk changed the base branch from main to release/v0.90.1 March 4, 2026 15:22
# Conflicts:
#	hosting/railway/oss/scripts/deploy-from-images.sh
devin-ai-integration[bot]

This comment was marked as resolved.

@mmabrouk mmabrouk changed the base branch from release/v0.90.1 to release/v0.90.2 March 4, 2026 18:42
@mmabrouk mmabrouk merged commit 965f096 into release/v0.90.2 Mar 4, 2026
15 of 18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci/cd documentation Improvements or additions to documentation size:L This PR changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant