Skip to content

fix: provision homepage metrics KV explicitly - #73

Merged
loverustfs merged 1 commit into
mainfrom
codex/fix-kv-provisioning
Aug 2, 2026
Merged

fix: provision homepage metrics KV explicitly#73
loverustfs merged 1 commit into
mainfrom
codex/fix-kv-provisioning

Conversation

@loverustfs

Copy link
Copy Markdown
Contributor

fix: provision homepage metrics KV explicitly

Copilot AI review requested due to automatic review settings August 2, 2026 03:23
@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
rustfs-com 8466821 Commit Preview URL

Branch Preview URL
Aug 02 2026, 03:17 AM

@vercel

vercel Bot commented Aug 2, 2026

Copy link
Copy Markdown
Contributor

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

Project Deployment Actions Updated (UTC)
rustfs-com Ready Ready Preview Aug 2, 2026 3:23am

@loverustfs
loverustfs merged commit 718dc27 into main Aug 2, 2026
4 checks passed
@loverustfs
loverustfs deleted the codex/fix-kv-provisioning branch August 2, 2026 03:23

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR updates the deploy-homepage-metrics GitHub Actions workflow to ensure the Cloudflare Workers KV namespace used by the homepage metrics worker is explicitly provisioned (and injected into a generated Wrangler config) before deployment.

Changes:

  • Adds a step to validate required Cloudflare repository secrets and verify Wrangler authentication.
  • Adds a provisioning step that creates (if needed) and resolves the KV namespace ID, then generates wrangler.deploy.jsonc with the resolved KV namespace ID.
  • Switches deployment to use the generated wrangler.deploy.jsonc config.
Suppressed comments (1)

.github/workflows/deploy-homepage-metrics.yml:84

  • Same issue as above: this second wrangler kv namespace list call is also parsed by jq and needs --json to avoid non-JSON table output.
            namespaces_json="$(pnpm exec wrangler kv namespace list)"

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

run: |
set -euo pipefail

namespaces_json="$(pnpm exec wrangler kv namespace list)"
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.

2 participants