harness: run the pinned wrangler through a deploy, against a stub of the Cloudflare API
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 48/100
調査の方向性
Start by reading the existing preview-cli-install and preview-cloudflare-url harness jobs and the deploy step in preview-cloudflare; the issue also points to wrangler-dist/cli.js for the API base URL and deploy behavior. Check which Pages endpoints the pinned wrangler calls, then assess the effort to stub them and keep the stub aligned with releases. Done means a harness job deploys with the pinned CLI, verifies the output record and both URLs using a stub subdomain different from the project name, and posts no comment.
索引モデルが issue の本文から書いたものです。
説明
Found while building #281 (#216), which reads the deploy URL from wrangler's pages-deploy-detailed record.
preview-cli-install shows that the pinned wrangler installs and starts, and preview-cloudflare-url (#216) runs preview-cloudflare's deploy step against a stub of wrangler. But no harness job runs the real wrangler through a deploy. So a Dependabot bump that changes what wrangler pages deploy calls, prints or writes to WRANGLER_OUTPUT_FILE_PATH merges with no signal until the next release's canary. Until then, a change to the record would leave every caller on the fallback warning.
wrangler takes its API base URL from CLOUDFLARE_API_BASE_URL (wrangler-dist/cli.js:25345 in 4.156.1), and the action does not override it. A harness job could serve a stub of the Pages endpoints a direct-upload deploy calls on localhost: the project, the upload token, the asset check and upload, creating the deployment, and its status. It could then run uses: ./preview-cloudflare with that variable in the job's env and a dispatch alias, so that no comment is posted. It would assert that the deploy succeeds with the pinned CLI, that the record is written, and that deploy-url and deployment-url are built from the stub's subdomain, including one that differs from the project's name.
The cost is a stub of about six endpoints, including an upload JWT whose expiry wrangler checks, kept in step with what each wrangler release calls. Whether that is worth it depends on how long preview-cloudflare stays the Cloudflare preview: wrangler 4.156.1 calls a direct Pages deploy "the previous version of Cloudflare Pages" (wrangler-dist/cli.js:308808), and #145 adds preview-workers.
Low priority: the release canary already runs the real wrangler against the live API before v0 moves, so this would move the signal earlier, to the Dependabot pull request, rather than add one that is missing.
Claude Code (on behalf of mmcky), drafted by the mini:actions-cloudflare session and filed by the organiser
- 主要言語
- Shell
- スター
- 0
- フォーク
- 1
- 平均マージ
- 20時間 3分
- マージ済み PR(30日)
- 48
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
QuantEcon/actions のほかの issue
-
low-priority
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
documentation
難易度 1/5 1〜3時間 初心者へのやさしさ 85/100
メンテナーはふだん 1 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
メンテナーはふだん 1 日以内に返信
-
enhancement
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
メンテナーはふだん 1 日以内に返信
-
bug infrastructure
難易度 3/5 1〜2日 初心者へのやさしさ 48/100
メンテナーはふだん 1 日以内に返信
QuantEcon/actions の issue をすべて見る
似ている issue
-
area: helpers bug good first issue priority: low size: S
難易度 2/5 1〜3時間 初心者へのやさしさ 90/100
-
ci: Simplify e2e base image build対応中かも @nealrichardson が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 83/100
メンテナーはふだん 1 日以内に返信
-
help wanted new command
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
tldr-pages/tldr#25111 ·
メンテナーはふだん 1 日以内に返信
-
chore
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
alunduil/alunduil-chezmoi#1170 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
eliasstravik/herdr-projects#985 ·