Skip to content

fix: Generalize autoconfig wording#11249

Merged
dario-piotrowicz merged 3 commits intomainfrom
dario/DEVX-2314/autoconfig-deployment-wording
Nov 27, 2025
Merged

fix: Generalize autoconfig wording#11249
dario-piotrowicz merged 3 commits intomainfrom
dario/DEVX-2314/autoconfig-deployment-wording

Conversation

@dario-piotrowicz
Copy link
Member

Fixes https://jira.cfdata.org/browse/DEVX-2314

This PR Generalizes the autoconfig wording so that when it doesn't specifically mention "deployment" (since it can be run via wrangler setup or the autoconfig programmatic API)


  • Tests
    • Tests included
    • Tests not necessary because: These error messages are not actually tested anyways
  • Public documentation
    • Cloudflare docs PR(s):
    • Documentation not necessary because: error message updates
  • Wrangler V3 Backport
    • Wrangler PR:
    • Not necessary because: autoconfig is not a v3 feature

@changeset-bot
Copy link

changeset-bot bot commented Nov 12, 2025

🦋 Changeset detected

Latest commit: cc9e94a

The changes in this PR will be included in the next version bump.

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-project-automation github-project-automation bot moved this to Untriaged in workers-sdk Nov 12, 2025
@dario-piotrowicz dario-piotrowicz marked this pull request as ready for review November 12, 2025 19:13
@dario-piotrowicz dario-piotrowicz requested a review from a team as a code owner November 12, 2025 19:13
@pkg-pr-new
Copy link

pkg-pr-new bot commented Nov 12, 2025

create-cloudflare

npm i https://pkg.pr.new/create-cloudflare@11249

@cloudflare/kv-asset-handler

npm i https://pkg.pr.new/@cloudflare/kv-asset-handler@11249

miniflare

npm i https://pkg.pr.new/miniflare@11249

@cloudflare/pages-shared

npm i https://pkg.pr.new/@cloudflare/pages-shared@11249

@cloudflare/unenv-preset

npm i https://pkg.pr.new/@cloudflare/unenv-preset@11249

@cloudflare/vite-plugin

npm i https://pkg.pr.new/@cloudflare/vite-plugin@11249

@cloudflare/vitest-pool-workers

npm i https://pkg.pr.new/@cloudflare/vitest-pool-workers@11249

@cloudflare/workers-editor-shared

npm i https://pkg.pr.new/@cloudflare/workers-editor-shared@11249

@cloudflare/workers-utils

npm i https://pkg.pr.new/@cloudflare/workers-utils@11249

wrangler

npm i https://pkg.pr.new/wrangler@11249

commit: cc9e94a

Copy link
Contributor

@petebacondarwin petebacondarwin left a comment

Choose a reason for hiding this comment

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

No tests affected by this?

@dario-piotrowicz
Copy link
Member Author

No tests affected by this?

No, because these are just error messages that we were not testing before

Also the Deployment aborted now Autoconfig process aborted is, I think, likely a temporary one

I'm happy to add tests here if you'd like some 🙂
(I'm happy with both having them or not for something this minor)

@petebacondarwin
Copy link
Contributor

I'm not fussed about testing the actual logged messages, but wonder whether we should be testing the logic where we bail out of autoconfig under certain circumstances.

@dario-piotrowicz
Copy link
Member Author

I'm not fussed about testing the actual logged messages, but wonder whether we should be testing the logic where we bail out of autoconfig under certain circumstances.

Yeah good point, I think there are a couple of scenarios that are missing tests here, I can do that as a followup or here, whatever works best for you 🙂

@petebacondarwin
Copy link
Contributor

Has rebase conflicts.

@petebacondarwin petebacondarwin marked this pull request as draft November 13, 2025 17:14
@dario-piotrowicz dario-piotrowicz marked this pull request as ready for review November 13, 2025 17:15
@dario-piotrowicz dario-piotrowicz force-pushed the dario/DEVX-2314/autoconfig-deployment-wording branch from 22da68c to 622560b Compare November 13, 2025 17:15
@github-actions
Copy link
Contributor

Failed to automatically backport this PR's changes to Wrangler v3. Please manually create a PR targeting the v3-maintenance branch with your changes. Thank you for helping us keep Wrangler v3 supported!

Depending on your changes, running git rebase --onto v3-maintenance main dario/DEVX-2314/autoconfig-deployment-wording might be a good starting point.

Notes:

  • your PR branch should be named v3-backport-11249
  • add the skip-v3-pr label to the current PR to stop this workflow from failing

@dario-piotrowicz
Copy link
Member Author

@petebacondarwin I've added a test for the output directory error case 🙂

55b9ca9

As I mentioned I am not sure if a test for the abort case is needed/correct right now, but I am happy to add one if you disagree 🙂

@dario-piotrowicz dario-piotrowicz force-pushed the dario/DEVX-2314/autoconfig-deployment-wording branch from 55b9ca9 to 417589a Compare November 13, 2025 22:53

if (!(skipConfirmation || (await confirm("Proceed with setup?")))) {
throw new FatalError("Deployment aborted");
throw new FatalError("Autoconfig process aborted");
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't think "autoconfig" is a user-facing term.

Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe "Setup cancelled"?

Copy link
Contributor

Choose a reason for hiding this comment

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

Framework detection cancelled?

Copy link
Member Author

@dario-piotrowicz dario-piotrowicz Nov 14, 2025

Choose a reason for hiding this comment

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

Maybe "Setup cancelled"?

sounds good, updated 👍

Copy link
Member Author

Choose a reason for hiding this comment

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

Framework detection cancelled?

But the project might be a static one not using a framework, no? 🤔

@dario-piotrowicz dario-piotrowicz force-pushed the dario/DEVX-2314/autoconfig-deployment-wording branch from 0376187 to e855561 Compare November 14, 2025 14:53
@github-project-automation github-project-automation bot moved this from Untriaged to Approved in workers-sdk Nov 17, 2025
@petebacondarwin petebacondarwin force-pushed the dario/DEVX-2314/autoconfig-deployment-wording branch from e855561 to 85b6b94 Compare November 17, 2025 17:57
@dario-piotrowicz dario-piotrowicz force-pushed the dario/DEVX-2314/autoconfig-deployment-wording branch from 85b6b94 to c4981f3 Compare November 26, 2025 17:09
@dario-piotrowicz dario-piotrowicz force-pushed the dario/DEVX-2314/autoconfig-deployment-wording branch from c4981f3 to cc9e94a Compare November 26, 2025 21:55
@dario-piotrowicz dario-piotrowicz merged commit 504e258 into main Nov 27, 2025
49 of 53 checks passed
@dario-piotrowicz dario-piotrowicz deleted the dario/DEVX-2314/autoconfig-deployment-wording branch November 27, 2025 22:49
@github-project-automation github-project-automation bot moved this from Approved to Done in workers-sdk Nov 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

4 participants