Skip to content

Add protected GitHub Actions delivery for Atlas Search Worker - #12568

Draft
dezren39 wants to merge 1 commit into
mainfrom
codex/atlas-search-worker-actions
Draft

dezren39 wants to merge 1 commit into
mainfrom
codex/atlas-search-worker-actions

Conversation

@dezren39

@dezren39 dezren39 commented Nov 22, 2026 •

Copy link
Copy Markdown
Member

Summary

  • Add separate, manually dispatched upload and promotion workflows for the already-deployed Atlas Search Worker.
  • Upload uses cf workers versions create and prints the new version ID without changing traffic.
  • Promotion requires a specific version ID, checks Cloudflare's deployable-version set, creates the deployment at 100%, reads back the active split, and verifies the existing /health response.
  • Add cloudflare.config.ts for the current Worker name, workers.dev route, SERVICE_BASE, SQLite QueryCache, and existing secret bindings. Keep wrangler.toml for local dev and Vitest.
  • Disable the old npm run deploy Wrangler path so production changes go through the explicit GitHub Actions flow.

The workflows only run by workflow_dispatch on main, use atlas-search-production, and never read laptop SOPS or Bitwarden stores. Upload supplies the existing Worker secrets from GitHub environment secrets using cf --secrets-file; secrets are not placed in repository files.

Environment prerequisite

The repository currently has no atlas-search-production environment. The workflow references it but this PR does not create or change GitHub settings. Before use, configure required reviewers for that environment and add CLOUDFLARE_API_TOKEN, CLOUDFLARE_ACCOUNT_ID, ATLAS_SEARCH_GATE_TOKEN, ATLAS_SEARCH_SERVICE_TOKEN, ATLAS_SEARCH_ACCESS_CLIENT_ID, and ATLAS_SEARCH_ACCESS_CLIENT_SECRET there.

Verification

  • Official compatibility pair: cf@1.0.0-beta.20 with Node 24.22.0; exact Worker build delegate pins are Wrangler 4.152.0 and Workers Types 5.20261019.1.
  • npm ci with Node 24.22.0.
  • npm test: 22 passed.
  • npm run typecheck: passed.
  • cf workers versions create --dry-run with Cloudflare credentials unset and dummy secret values: bundle/config validation passed; no Cloudflare API request or upload.
  • actionlint 1.7.12: passed for both new workflows.

No live deployment or GitHub settings were changed. Related delivery source: #6788 (closed, unassigned); repository CODEOWNERS lists @developing-today/codeowners and @dezren39.


Run Proof
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

@coderabbitai

coderabbitai Bot commented Nov 22, 2026

Copy link
Copy Markdown

Important

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

reviews:
  auto_review:
    drafts: true
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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

This branch has not been deployed

No deployments
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