You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: grant write permissions to perf_test_data directory for wasmtime benchmarks
The benchmarks were failing because wasmtime needs explicit --dir permissions
to write output files. Tested locally and confirmed the fix works.
Changes:
- Add --dir=perf_test_data to all wasmtime run commands
- Applies to both regular and AOT component benchmarks
Copy file name to clipboardExpand all lines: .github/workflows/performance.yml
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -144,14 +144,14 @@ jobs:
144
144
if command -v wasmtime &> /dev/null; then
145
145
# Test the command first to see if it works
146
146
echo "Testing WASM component execution..."
147
-
if wasmtime run --dir=. bazel-bin/tinygo/file_ops_component.wasm copy_file --src perf_test_data/small.txt --dest perf_test_data/wasm_copy.txt; then
147
+
if wasmtime run --dir=. --dir=perf_test_data bazel-bin/tinygo/file_ops_component.wasm copy_file --src perf_test_data/small.txt --dest perf_test_data/wasm_copy.txt; then
148
148
echo "✅ WASM component test passed, running benchmarks..."
if wasmtime run --allow-precompiled --dir=. "$AOT_FILE" copy_file --src perf_test_data/small.txt --dest perf_test_data/wasm_aot_copy.txt; then
188
+
if wasmtime run --allow-precompiled --dir=. --dir=perf_test_data "$AOT_FILE" copy_file --src perf_test_data/small.txt --dest perf_test_data/wasm_aot_copy.txt; then
189
189
echo "✅ AOT component test passed, running benchmarks..."
0 commit comments