-
Notifications
You must be signed in to change notification settings - Fork 674
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
🐛 BUG: wrangler secret put has breaking change with versions #6763
Comments
This is a bummer.. sorry about that. I took a quick look and this seems to have been introduced in #5930 by @WalshyDev and approved by @tanushree-sharma on the PM side. @tanushree-sharma can you please help address this via a follow up and also help clarify when the "upcoming release" is coming? Thanks a bunch! |
👋🏼 @huv1k. Sorry you're running into this. Are you using the |
No we are using just deploy |
@huv1k We've been digging into this and believe you're seeing this as a result of concurrent operations that come from We're going to work to make these operations faster to minimize chances of running into this. In the meantime when you update both your Worker and it's secrets try:
Using these should minimize when the race condition is triggered. |
@tanushree-sharma We tried to follow your suggestion, together with additional instruction we got from the support that is about adding a slight delay of a few seconds but we still see that error. When I flipped |
I don't see harm, as long as you're okay with applying the secret after |
Which Cloudflare product(s) does this pertain to?
Wrangler
What version(s) of the tool(s) are you using?
3.78.5
What version of Node are you using?
v20.16.0
What operating system and version are you using?
macOS 14.6.1 + Ubuntu Jammy (22.04.5 LTS)
Describe the Bug
Observed behavior
We have our CI/CD pipeline, where we deploy workers like
wrangler deploy --env production --outdir dist
and later on in different steps we set secrets with current commit shagit rev-parse HEAD 2>&1 | wrangler secret put COMMIT_SHA --env production
this was working fine. We are not always deploying secrets and workers at the same time. We modify secrets more often than we deploy workers. But we started seeing an error:This is
breaking
change without any notification and which upcoming release will fix it? There is no information whatsoever. Why is there not usedcompatibility_date
insidewrangler.toml
to handle such a change?Expected behavior
I would expect this behavior would work as before, without changing
compatibility_date
, otherwise it should be properly documented and provide the exact date when the "upcoming" release is going to fix it. Another option is to provide a link to an explanation or provide at least "some" documentation. This is a poorly executed breaking change.Steps to reproduce
Please provide the following:
wrangler deploy
wrangler secret put
Please provide a link to a minimal reproduction
No response
Please provide any relevant error logs
No response
The text was updated successfully, but these errors were encountered: