-
Couldn't load subscription status.
- Fork 1k
[Workflows] Enforce correct step limits and validations on local dev #10966
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
base: main
Are you sure you want to change the base?
Conversation
🦋 Changeset detectedLatest commit: fbcfdaa 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 |
d864181 to
a3889cc
Compare
create-cloudflare
@cloudflare/kv-asset-handler
miniflare
@cloudflare/pages-shared
@cloudflare/unenv-preset
@cloudflare/vite-plugin
@cloudflare/vitest-pool-workers
@cloudflare/workers-editor-shared
wrangler
commit: |
d958e9d to
5e06f25
Compare
5e06f25 to
fbcfdaa
Compare
| await this.#engine.abort("Max steps reached"); | ||
| error.isUserError = true; | ||
| throw error; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
abort is a no-op at the moment. From what I see, other usages of it don't throw the error to the caller. Imo you can remove the abort call here and just throw an error like: Aborting engine: Max steps reached. It diverges from production but at least the user is more likely to see the error (?)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think abort should be implemented for limits to work (otherwise how does one cancel engine execution?) - although we should probably try to hide all workerd noise that abort causes?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
abort is not "aborting" (aka throwing) anything atm. I can make it throw and check the consequences, and (if possible) hide workerd noise
Fixes WOR-957.
Some changes made to match production behaviors: