Skip to content

fix: preview cleanup queue deletion + update actions to node24 - #649

Merged
palmithor merged 1 commit into
mainfrom
fix/preview-cleanup-and-node24-actions
Aug 11, 2026
Merged

fix: preview cleanup queue deletion + update actions to node24#649
palmithor merged 1 commit into
mainfrom
fix/preview-cleanup-and-node24-actions

Conversation

@palmithor

@palmithor palmithor commented Aug 11, 2026

Copy link
Copy Markdown
Member

Summary

  • Fix preview cleanup failing on queue deletion: wrangler queues delete does not support --force, causing Unknown argument: force in the cleanup job. Removed the invalid flag in scripts/lib/cleanup.ts.
  • Fix Node 20 deprecation warnings: Updated actions targeting deprecated Node 20 to node24 versions (SHA-pinned):
    • oven-sh/setup-bun v2.0.2 → v2.2.0
    • cloudflare/wrangler-action v3 → v4.0.0
    • actions/github-script v7 → v8.0.0
    • rharkor/caching-for-turbo → v2.5.1

Applied across preview.yml, ci.yml, e2e.yml.

Verification

  • bun oxc and bun typecheck both pass.

View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need. Autofix is disabled.

wrangler queues delete does not support --force, causing preview
cleanup to fail on queue deletion. Remove the invalid flag.

Update GitHub Actions that target deprecated Node 20 (setup-bun,
wrangler-action, github-script, caching-for-turbo) to node24
versions to eliminate deprecation warnings.

@agent-coding-cowboy agent-coding-cowboy Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

The diff removes the --force flag from a wrangler queues delete command, which could cause the script to hang in automated environments since wrangler prompts for confirmation without it.


To re-request review after addressing feedback, push a new commit.

Comment thread scripts/lib/cleanup.ts
if (queueExists) {
debug(`Deleting queue ${queueName}...`);
const cmd = $`bun wrangler queues delete ${queueName} --force`;
const cmd = $`bun wrangler queues delete ${queueName}`;

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Removing --force may cause wrangler to prompt for confirmation, hanging automated scripts. Should this flag be kept for CI environments?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Verified: wrangler queues delete has no confirmation prompt and no --force flag in v4.67.0.

  • wrangler queues delete --help lists only the positional name + global flags — no --force, no --yes, no confirm option.
  • The command source (src/queues/cli/commands/delete.ts) handler calls deleteQueue()deleteQueueById() directly, which issues a plain DELETE API request. There is no confirmOrPrompt() anywhere in the path, so nothing can hang on a prompt in CI.
  • The original CI failure (Unknown argument: force) proves --force is rejected outright by wrangler — it was never accepted. Keeping it would keep the delete broken; removing it is the fix.

So removing --force is correct and there is no confirmation risk in this wrangler version.

@github-actions

Copy link
Copy Markdown

🎭 E2E Test Results

22 passed | ❌ 0 failed | ⏱️ 71.5s

Metric Value
Passed 22
Failed 0
Skipped 0
Duration 71.5s

📊 View HTML Report
🎥 View Traces

Last updated: 2026-08-11T13:52:31.717Z

@github-actions

Copy link
Copy Markdown

🚀 Preview Environment Deployed

Preview URL: https://scorebrawl-pr-649.coding-cowboys.workers.dev
Database: scorebrawl-db-pr-649
R2 Buckets: scorebrawl-user-assets-pr-649
Queues: scorebrawl-achievement-calculations-pr-649, scorebrawl-seed-queue-pr-649

Test Account:

  • Email: seed@scorebrawl.com
  • Password: Test.1234

This preview environment will be automatically cleaned up when the PR is closed.

@palmithor
palmithor dismissed agent-coding-cowboy[bot]’s stale review August 11, 2026 14:52

The concern is technically incorrect. Verified in wrangler v4.67.0 source that 'wrangler queues delete' has no confirmation prompt (handler directly issues a DELETE API call) and no --force flag (that's what caused the original CI error). The --force removal is correct; no code change needed. See thread reply for evidence.

@palmithor
palmithor merged commit febedbb into main Aug 11, 2026
7 checks passed
@palmithor
palmithor deleted the fix/preview-cleanup-and-node24-actions branch August 11, 2026 14:54
@github-actions

Copy link
Copy Markdown

🧹 Preview Environment Cleaned Up

The preview environment, database, R2 bucket, and queue have been deleted.

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