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: use bazel cquery to get actual component paths instead of symlinks
The bazel-bin symlink doesn't work reliably in CI. Use bazel cquery to get
the actual output paths and store them in environment variables.
Changes:
- Query actual paths for COMPONENT_WASM and AOT_COMPONENT after building
- Use environment variables in all wasmtime benchmark commands
- Remove hardcoded bazel-bin paths
Tested locally to confirm bazel cquery returns correct paths.
if [[ "${{ matrix.os }}" == "ubuntu-latest" ]]; then
101
106
bazel build //tinygo:file_ops_aot_linux_x64
107
+
AOT_PATH=$(bazel cquery --output=files //tinygo:file_ops_aot_linux_x64 2>/dev/null | head -1)
102
108
elif [[ "${{ matrix.os }}" == "macos-latest" ]]; then
103
109
bazel build //tinygo:file_ops_aot_darwin_arm64
110
+
AOT_PATH=$(bazel cquery --output=files //tinygo:file_ops_aot_darwin_arm64 2>/dev/null | head -1)
104
111
fi
112
+
echo "AOT_COMPONENT=$AOT_PATH" >> $GITHUB_ENV
113
+
echo "Built AOT component at: $AOT_PATH"
105
114
106
115
# Note: Rust implementation is not yet available
107
116
# Future: Add Rust component builds when implemented
@@ -144,14 +153,14 @@ jobs:
144
153
if command -v wasmtime &> /dev/null; then
145
154
# Test the command first to see if it works
146
155
echo "Testing WASM component execution..."
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
156
+
if wasmtime run --dir=. --dir=perf_test_data "$COMPONENT_WASM" copy_file --src perf_test_data/small.txt --dest perf_test_data/wasm_copy.txt; then
148
157
echo "✅ WASM component test passed, running benchmarks..."
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
187
+
echo "AOT component path: $AOT_COMPONENT"
188
+
if wasmtime run --allow-precompiled --dir=. --dir=perf_test_data "$AOT_COMPONENT" 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