Repository navigation
Rollout: Alchemy beta.84 with production and PR preview deploys - #65
Merged
Merged
Conversation
Cloudflare Preview DeployedPlayground: https://schematics-playground-pr-65-an47ryl3budxxayw.bjacobso.workers.dev Built from commit 2026-11-02T01:08:21.708Z This comment updates automatically with each push. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Upgrade the existing Alchemy stack to beta.84 and deploy production only from the exact
maincommit whose CI push run succeeded. Same-repository PRs retain their isolated preview and existing sticky comment; closing a PR now destroys itspr-<number>stage.Template items
alchemy-latest: pin Alchemy and the Cloudflare/GitHub providers to2.0.0-beta.84, migrate split provider imports and explicit Cloudflare state-backend commands, and regenerate the lockfile. Replace the beta.81 patch with onepatches/alchemy@2.0.0-beta.84.patchfor Effect 4.1 Crypto compatibility. Remove the obsolete distilled AWS patch and its regression fixture because Cloudflare state no longer loads the AWS backend. Verify with the frozen strict-peer install, OAuth/PKCE tests, Cloudflare auth/state-store loading, deploy-entrypoint import, and real local state CLI tests inpnpm check.deploy-alchemy: trigger production through a successfulCIworkflow run for a push onmain, check out itshead_sha, and deployprod. Add PR-close destruction, serialize each PR's deploy/destroy operations, keep fork exclusion and missing-secret notices, and preserve the state-managedpreview-commentresource. Production domains and API routes remain unchanged; custom domains bind only inprod. Verify with actionlint, the entrypoint TypeScript check, and the workflow event guards; after merge, production requires successful CI, and a same-repository PR exercises the preview/comment/close lifecycle.Validation
25.9.0, pnpm11.1.3.pnpm install --frozen-lockfile --strict-peer-dependenciespassed.pnpm checkpassed: formatting, llms validation, all package tests, TypeScript checks, builds, the Astro playground build, and the HTTP serve smoke (including exact/llms.txtcontent and text content type).1.7.7.pnpm exec tsc --noEmit --target ESNext --module ESNext --moduleResolution bundler --skipLibCheck --strict --allowImportingTsExtensions --types node alchemy.run.tspassed.pnpm alchemy plan --stage prod --no-inputimported the entrypoint and resolved stack services, then stopped while loading state: Cloudflare is not configured in the local default profile. A cloud-backed plan and hosted smoke could not be completed here. No deployment or destruction was run from this workspace.Ben: secrets and repository settings
The workflows reuse
CLOUDFLARE_ACCOUNT_IDandCLOUDFLARE_API_TOKEN; ensure both repository secrets are available to same-repository PR runs and production. Scope the token to the deployment account with account-read, Workers/Durable Object state-store provisioning, and Artifacts access. Production also needs access to the existingschematics.runzone and its custom domains/routes; enable Workers subdomains for previews. Missing preview secrets produce a skip notice.The existing automatic
GITHUB_TOKENneeds the workflow's PR/issue write permissions to update the sticky comment. No separate GitHub token secret is required.OPENROUTER_API_KEYremains optional for hosted chat. Beta.84's manual state-store setup command ispnpm alchemy state bootstrap --backend cloudflare; the workflows pass--yesfor any required provisioning/upgrade. No new deployment secrets or environments are introduced.Final status: both selected template items are implemented and local checks pass; ready for review. Cloud-backed planning and the hosted preview lifecycle require configured Cloudflare credentials.
Open workspace in Conductor