-
Notifications
You must be signed in to change notification settings - Fork 37
fix: Add timeout configuration for WASM execution #1840
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: master
Are you sure you want to change the base?
Changes from all commits
f5a8bb0
bfe0ee6
2dcf714
91f3646
4f4bc09
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -25,8 +25,9 @@ tokio-stream.workspace = true | |
| tracing.workspace = true | ||
| ureq.workspace = true | ||
| wasmer.workspace = true | ||
| wasmer-compiler-cranelift.workspace = true | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 💡 Cranelift compiler changed from optional to required dependency The Suggested fix: There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ✅ Resolved - This issue has been addressed in the latest changes. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ✅ Resolved - This issue has been addressed in the latest changes. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ✅ Resolved - This issue has been addressed in the latest changes.
chefsale marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| wasmer-middlewares.workspace = true | ||
| wasmer-types.workspace = true | ||
| wasmer-compiler-cranelift = { workspace = true, optional = true } | ||
|
|
||
| calimero-primitives.workspace = true | ||
| calimero-node-primitives.workspace = true | ||
|
|
@@ -46,4 +47,8 @@ wat.workspace = true | |
|
|
||
| [features] | ||
| host-traces = ["owo-colors"] | ||
| profiling = ["wasmer-compiler-cranelift"] | ||
| # Enables PerfMap profiling support for WASM stack traces. | ||
| # When enabled, set ENABLE_WASMER_PROFILING=true at runtime to generate perf.map files. | ||
| # Note: This feature only controls the runtime env var check behavior - it does NOT | ||
| # gate the Cranelift compiler dependency, which is always included for operation limit metering. | ||
| profiling = [] | ||
chefsale marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -187,6 +187,8 @@ pub enum WasmTrap { | |
| Unreachable, | ||
| #[error("unaligned atomic operation")] | ||
| UnalignedAtomic, | ||
| #[error("execution exceeded timeout")] | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🟡 Misleading error name and message for operation limit The error variant Suggested fix: There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ✅ Resolved - This issue has been addressed in the latest changes. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ✅ Resolved - This issue has been addressed in the latest changes. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ✅ Resolved - This issue has been addressed in the latest changes. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 💡 Misleading error variant name - 'ExecutionTimeout' implies time-based limit The error variant Suggested fix: There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ✅ Resolved - This issue has been addressed in the latest changes. |
||
| ExecutionTimeout, | ||
cursor[bot] marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| #[error("indeterminate trap")] | ||
| Indeterminate, | ||
| } | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.