Skip to content

Require generated aliases to meet stricter naming requirements#9821

Merged
WillTaylorDev merged 1 commit intomainfrom
willtaylor/harden-alias-requirements
Jul 3, 2025
Merged

Require generated aliases to meet stricter naming requirements#9821
WillTaylorDev merged 1 commit intomainfrom
willtaylor/harden-alias-requirements

Conversation

@WillTaylorDev
Copy link
Contributor

@WillTaylorDev WillTaylorDev commented Jul 2, 2025

Enforce stricter validation for generated alias names

Add regex checks to ensure generated aliases conform to backend
requirements before uploading new versions. This will prevent unexpected
build failures when enabling in WCI, since alias names are auto-generated
and users might be unaware of invalid formats caused by branch naming.

  • Tests
    • Tests included
    • Tests not necessary because:
  • Public documentation
    • Cloudflare docs PR(s):
    • Documentation not necessary because: not yet public
  • Wrangler V3 Backport
    • Wrangler PR:
    • Not necessary because: only in v4 functionality

@WillTaylorDev WillTaylorDev requested a review from a team as a code owner July 2, 2025 13:08
@changeset-bot
Copy link

changeset-bot bot commented Jul 2, 2025

🦋 Changeset detected

Latest commit: e4d3992

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

This PR includes changesets to release 2 packages
Name Type
wrangler Patch
@cloudflare/vitest-pool-workers Patch

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-actions
Copy link
Contributor

github-actions bot commented Jul 2, 2025

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 willtaylor/harden-alias-requirements might be a good starting point.

Notes:

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

@pkg-pr-new
Copy link

pkg-pr-new bot commented Jul 2, 2025

create-cloudflare

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

@cloudflare/kv-asset-handler

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

miniflare

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

@cloudflare/pages-shared

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

@cloudflare/unenv-preset

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

@cloudflare/vite-plugin

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

@cloudflare/vitest-pool-workers

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

@cloudflare/workers-editor-shared

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

wrangler

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

commit: e4d3992

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.

Few minor nits. But otherwise LGTM

@github-project-automation github-project-automation bot moved this from Untriaged to Approved in workers-sdk Jul 3, 2025
@WillTaylorDev WillTaylorDev force-pushed the willtaylor/harden-alias-requirements branch from 0059437 to 4d76046 Compare July 3, 2025 13:15
Test alias names with a regex to ensure it meets requirements prior
to version upload. When we enable this for WCI we want to ensure that
we aren't failing builds because the name is invalid.
@WillTaylorDev WillTaylorDev force-pushed the willtaylor/harden-alias-requirements branch from 4d76046 to e4d3992 Compare July 3, 2025 14:04
@petebacondarwin petebacondarwin added this pull request to the merge queue Jul 3, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jul 3, 2025
@WillTaylorDev WillTaylorDev added this pull request to the merge queue Jul 3, 2025
Merged via the queue into main with commit a447d67 Jul 3, 2025
31 checks passed
@WillTaylorDev WillTaylorDev deleted the willtaylor/harden-alias-requirements branch July 3, 2025 16:27
@github-project-automation github-project-automation bot moved this from Approved to Done in workers-sdk Jul 3, 2025
@workers-devprod workers-devprod mentioned this pull request Jul 3, 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.

2 participants