harness: run the pinned wrangler through a deploy, against a stub of the Cloudflare API
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 48/100
Research direction
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.
Written by the indexing model from the issue text.
Description
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
- Dominant language
- Shell
- Stars
- 0
- Forks
- 1
- Avg merge
- 20h 3m
- Merged PRs (30d)
- 48
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from QuantEcon/actions
-
low-priority
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
documentation
Difficulty 1/5 1-3 hours Newbie friendliness 85/100
Maintainers usually reply within 1 day
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
Maintainers usually reply within 1 day
-
enhancement
Difficulty 4/5 3-5 days Newbie friendliness 48/100
Maintainers usually reply within 1 day
-
bug infrastructure
Difficulty 3/5 1-2 days Newbie friendliness 48/100
Maintainers usually reply within 1 day
All issues in QuantEcon/actions
Similar issues
-
status: ready
Difficulty 2/5 1-3 hours Newbie friendliness 64/100
melodic-software/claude-code-plugins#15008 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 60/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
nxtg-ai/forge-orchestrator#105 ·
Maintainers usually reply within 1 day
-
bug CLI
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
openai/codex#60494 · 1 comment ·
Maintainers usually reply within 1 day
-
needs-triage
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
LucasSantana-Dev/Lucky#2983 · 1 comment ·
Maintainers usually reply within 1 day