Commit 15a4a6e
committed
fix: update component_validation_test to handle multiple output files
The component_validation_test rule was failing because cpp_component
targets with validate_wit=True produce both .wasm files and validation
log files. The test rule was expecting a single file but receiving
multiple files.
Changes:
- Updated _component_validation_test_impl to extract just the .wasm file
from targets that produce multiple outputs
- Removed allow_single_file restriction from component attribute
- Added proper error handling for missing .wasm files
Fixes C++ component validation test failures:
- //test/cpp:test_calculator_c_component_valid_wasm
- //test/cpp:test_calculator_cpp_component_valid_wasm
- //test/cpp:test_http_service_component_valid_wasm1 parent 39dcd99 commit 15a4a6e
1 file changed
+11
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
7 | 17 | | |
8 | 18 | | |
9 | 19 | | |
| |||
98 | 108 | | |
99 | 109 | | |
100 | 110 | | |
101 | | - | |
102 | 111 | | |
103 | 112 | | |
104 | 113 | | |
| |||
0 commit comments