René's URL Explorer Experiment


Title: improvement(ci): decouple image builds from the test gate by waleedlatif1 · Pull Request #5701 · simstudioai/sim · GitHub

Open Graph Title: improvement(ci): decouple image builds from the test gate by waleedlatif1 · Pull Request #5701 · simstudioai/sim

X Title: improvement(ci): decouple image builds from the test gate by waleedlatif1 · Pull Request #5701 · simstudioai/sim

Description: Problem Push-to-production-deploy takes ~13.5 minutes because the pipeline is fully serial: tests (5m22) → migrate (0m46) → AMD64 image builds (4m48–7m01) → ECR tag push → CodePipeline. The builds only start after the gate clears, though nothing about building requires it. (Timings from run 29459378914.) Design Standard "build once, promote by retag" artifact promotion: images build in parallel with tests under immutable sha tags; passing the gate promotes the exact tested artifact by moving a tag (docker buildx imagetools create, a seconds-long manifest copy) — never by rebuilding. Invariant: no mutable/documented tag moves, and nothing deploys, until tests + migrations pass. Only immutable sha tags exist before the gate. ci.yml build-amd64 and build-ghcr-arm64 start immediately and push only sha tags (ECR :, GHCR :-amd64 / :-arm64). This also closes a pre-existing hole: latest-arm64 used to be pushed before test results existed. New promote-images job (after test-build + migrate) retags sha → latest/staging in ECR — the tag CodePipeline's EventBridge rules trigger on. Single job, not a matrix: it verifies all four sha manifests exist before moving any tag, so a partial mixed-version deploy can't happen. create-ghcr-manifests (after promote + arm64 build) now owns every mutable GHCR tag: latest-{amd64,arm64}, latest, version tags, and the multi-arch sha manifest — all built from the immutable sha-arch tags. Stale-run guards on both promoting jobs: re-running an old run used to be able to retag latest back to old code and trigger an immediate prod deploy of it. Now a superseded commit skips mutable-tag moves with a warning (immutable sha/version tags still publish, so releases can't be blocked by a racing push). test-build.yml Tests (2m05) and next build (2m26) were serial in one job; now parallel jobs. They share the warm bun-cache/node_modules sticky disks (identical content; Blacksmith disks are clone-on-mount + last-writer-wins commit, so concurrent mounts are safe) — but the build job gets its own Turbo cache key, since with a shared key the two jobs' new entries would evict each other every run. Verification CodePipeline triggers confirmed tag-filtered in AWS (image-tag: ["latest"|"staging"|"dev"]) for all 9 pipelines — sha pushes trigger nothing ECR lifecycle policy expires images after 7 days → sha tags self-clean (the promote verify step also fails loudly if a sha image has expired rather than half-promoting) actionlint clean (except pre-existing runner-label/SC2086-style notes shared with the old file) Independent adversarial review of the full diff; all real findings fixed in the second commit No branch protection/rulesets pin the old job names PR CI run validates the test/build split (first run: green, jobs in parallel) Expected impact Path Before After PR feedback ~5m20 ~3m30 Push → prod deploy trigger ~13m30 ~7m (bounded by slowest image build) Full main run ~15m ~8m Accepted trade-off Untested immutable sha-arch tags now exist on public GHCR for commits whose tests later fail (already true for arm64 today). They're plumbing tags nothing documents or deploys, but GHCR has no lifecycle expiry — if we care about accumulation, a scheduled ghcr untagged/sha cleanup job is a small follow-up. Watch on merge The push path (sha push + promote) first executes on the merge to staging — watch that run's promote-images before this reaches main.

Open Graph Description: Problem Push-to-production-deploy takes ~13.5 minutes because the pipeline is fully serial: tests (5m22) → migrate (0m46) → AMD64 image builds (4m48–7m01) → ECR tag push → CodePipeline. The builds ...

X Description: Problem Push-to-production-deploy takes ~13.5 minutes because the pipeline is fully serial: tests (5m22) → migrate (0m46) → AMD64 image builds (4m48–7m01) → ECR tag push → CodePipeline. The builds ...

Opengraph URL: https://github.com/simstudioai/sim/pull/5701

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:f7482ce1-cc49-3a8b-1b5e-08de9891b280
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id8172:2553AC:4D811:724F3:6A635C0A
html-safe-nonce94f2bb7e427e6d1ccf9c813159893596dc3fcaf3742a26bf2f335c83213cc3f7
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MTcyOjI1NTNBQzo0RDgxMTo3MjRGMzo2QTYzNUMwQSIsInZpc2l0b3JfaWQiOiIyNzUwMjkwODA5NTE4Nzc1MzA2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac91cb94bfd84226b304b4584aac7d902b00285e3c544f7ce0582c2e333e391d99
hovercard-subject-tagpull_request:4065193992
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/simstudioai/sim/pull/5701/files
twitter:imagehttps://avatars.githubusercontent.com/u/40672544?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/40672544?s=400&v=4
og:image:altProblem Push-to-production-deploy takes ~13.5 minutes because the pipeline is fully serial: tests (5m22) → migrate (0m46) → AMD64 image builds (4m48–7m01) → ECR tag push → CodePipeline. The builds ...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None59e55daad7174ca59d63c6974d58276ccb5477442e550bebb3c035e1bef11c94
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/simstudioai/sim git https://github.com/simstudioai/sim.git
octolytics-dimension-user_id199344406
octolytics-dimension-user_loginsimstudioai
octolytics-dimension-repository_id912559512
octolytics-dimension-repository_nwosimstudioai/sim
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id912559512
octolytics-dimension-repository_network_root_nwosimstudioai/sim
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release71b1218de2f2ab29c4d5ce72568e68e2c56044c6
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/simstudioai/sim/pull/5701/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsimstudioai%2Fsim%2Fpull%2F5701%2Ffiles
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
Code QualityEnforce quality at mergehttps://github.com/features/code-quality
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsimstudioai%2Fsim%2Fpull%2F5701%2Ffiles
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=simstudioai%2Fsim
Reloadhttps://github.com/simstudioai/sim/pull/5701/files
Reloadhttps://github.com/simstudioai/sim/pull/5701/files
Reloadhttps://github.com/simstudioai/sim/pull/5701/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/5701/files
simstudioai https://github.com/simstudioai
simhttps://github.com/simstudioai/sim
Notifications https://github.com/login?return_to=%2Fsimstudioai%2Fsim
Fork 3.7k https://github.com/login?return_to=%2Fsimstudioai%2Fsim
Star 29.2k https://github.com/login?return_to=%2Fsimstudioai%2Fsim
Code https://github.com/simstudioai/sim
Issues 111 https://github.com/simstudioai/sim/issues
Pull requests 121 https://github.com/simstudioai/sim/pulls
Actions https://github.com/simstudioai/sim/actions
Projects https://github.com/simstudioai/sim/projects
Security and quality 0 https://github.com/simstudioai/sim/security
Insights https://github.com/simstudioai/sim/pulse
Code https://github.com/simstudioai/sim
Issues https://github.com/simstudioai/sim/issues
Pull requests https://github.com/simstudioai/sim/pulls
Actions https://github.com/simstudioai/sim/actions
Projects https://github.com/simstudioai/sim/projects
Security and quality https://github.com/simstudioai/sim/security
Insights https://github.com/simstudioai/sim/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Fsimstudioai%2Fsim%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fsimstudioai%2Fsim%2Fissues%2Fnew%2Fchoose
waleedlatif1https://github.com/waleedlatif1
staginghttps://github.com/simstudioai/sim/tree/staging
improvement/ci-decouple-image-buildshttps://github.com/simstudioai/sim/tree/improvement/ci-decouple-image-builds
Conversation 7 https://github.com/simstudioai/sim/pull/5701
Commits 2 https://github.com/simstudioai/sim/pull/5701/commits
Checks 20 https://github.com/simstudioai/sim/pull/5701/checks
Files changed https://github.com/simstudioai/sim/pull/5701/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/5701/files
improvement(ci): decouple image builds from the test gate https://github.com/simstudioai/sim/pull/5701/files#top
Show all changes 2 commits https://github.com/simstudioai/sim/pull/5701/files
50fb651 improvement(ci): decouple image builds from the test gate waleedlatif1 Jul 16, 2026 https://github.com/simstudioai/sim/pull/5701/commits/50fb65146333b379eb24d09c708f5c4320889e6f
f457ba0 improvement(ci): harden promotion — atomic retag, stale-run guards, g… waleedlatif1 Jul 16, 2026 https://github.com/simstudioai/sim/pull/5701/commits/f457ba055c7eefb66a1942cb3834831a30118b32
Clear filters https://github.com/simstudioai/sim/pull/5701/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/5701/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/5701/files
ci.yml https://github.com/simstudioai/sim/pull/5701/files#diff-b803fcb7f17ed9235f1e5cb1fcd2f5d3b2838429d4368ae4c57ce4436577f03f
test-build.yml https://github.com/simstudioai/sim/pull/5701/files#diff-a583f7935a5f3192471a2999cbf059eadc857228b5be2c7247f481b799949f8d
.github/workflows/ci.ymlhttps://github.com/simstudioai/sim/pull/5701/files#diff-b803fcb7f17ed9235f1e5cb1fcd2f5d3b2838429d4368ae4c57ce4436577f03f
View file https://github.com/simstudioai/sim/blob/f457ba055c7eefb66a1942cb3834831a30118b32/.github/workflows/ci.yml
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/5701/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/5701/files#diff-b803fcb7f17ed9235f1e5cb1fcd2f5d3b2838429d4368ae4c57ce4436577f03f
https://github.com/simstudioai/sim/pull/5701/files#diff-b803fcb7f17ed9235f1e5cb1fcd2f5d3b2838429d4368ae4c57ce4436577f03f
https://github.com/simstudioai/sim/pull/5701/files#diff-b803fcb7f17ed9235f1e5cb1fcd2f5d3b2838429d4368ae4c57ce4436577f03f
https://github.com/simstudioai/sim/pull/5701/files#diff-b803fcb7f17ed9235f1e5cb1fcd2f5d3b2838429d4368ae4c57ce4436577f03f
https://github.com/simstudioai/sim/pull/5701/files#diff-b803fcb7f17ed9235f1e5cb1fcd2f5d3b2838429d4368ae4c57ce4436577f03f
https://github.com/simstudioai/sim/pull/5701/files#diff-b803fcb7f17ed9235f1e5cb1fcd2f5d3b2838429d4368ae4c57ce4436577f03f
https://github.com/simstudioai/sim/pull/5701/files#diff-b803fcb7f17ed9235f1e5cb1fcd2f5d3b2838429d4368ae4c57ce4436577f03f
https://github.com/simstudioai/sim/pull/5701/files#diff-b803fcb7f17ed9235f1e5cb1fcd2f5d3b2838429d4368ae4c57ce4436577f03f
https://github.com/simstudioai/sim/pull/5701/files#diff-b803fcb7f17ed9235f1e5cb1fcd2f5d3b2838429d4368ae4c57ce4436577f03f
https://github.com/simstudioai/sim/pull/5701/files#diff-b803fcb7f17ed9235f1e5cb1fcd2f5d3b2838429d4368ae4c57ce4436577f03f
https://github.com/simstudioai/sim/pull/5701/files#diff-b803fcb7f17ed9235f1e5cb1fcd2f5d3b2838429d4368ae4c57ce4436577f03f
.github/workflows/test-build.ymlhttps://github.com/simstudioai/sim/pull/5701/files#diff-a583f7935a5f3192471a2999cbf059eadc857228b5be2c7247f481b799949f8d
View file https://github.com/simstudioai/sim/blob/f457ba055c7eefb66a1942cb3834831a30118b32/.github/workflows/test-build.yml
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/5701/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/5701/files#diff-a583f7935a5f3192471a2999cbf059eadc857228b5be2c7247f481b799949f8d
Please reload this pagehttps://github.com/simstudioai/sim/pull/5701/files
https://github.com/simstudioai/sim/pull/5701/files#diff-a583f7935a5f3192471a2999cbf059eadc857228b5be2c7247f481b799949f8d
https://github.com/simstudioai/sim/pull/5701/files#diff-a583f7935a5f3192471a2999cbf059eadc857228b5be2c7247f481b799949f8d
https://github.com/simstudioai/sim/pull/5701/files#diff-a583f7935a5f3192471a2999cbf059eadc857228b5be2c7247f481b799949f8d
https://github.com/simstudioai/sim/pull/5701/files#diff-a583f7935a5f3192471a2999cbf059eadc857228b5be2c7247f481b799949f8d
https://github.com/simstudioai/sim/pull/5701/files#diff-a583f7935a5f3192471a2999cbf059eadc857228b5be2c7247f481b799949f8d
Please reload this pagehttps://github.com/simstudioai/sim/pull/5701/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.