Skip to content

Commit b6118d3

Browse files
committed
fix: ignore WASM e2e tests in CI until plugins are pre-built
Signed-off-by: Shriti Priya <shritip@ibm.com>
1 parent eb8bb42 commit b6118d3

4 files changed

Lines changed: 14 additions & 0 deletions

File tree

crates/cpex-wasm-host/tests/test_custom_payload_pipeline.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@ async fn setup_manager() -> PluginManager {
127127
}
128128

129129
#[tokio::test(flavor = "multi_thread", worker_threads = 2)]
130+
#[ignore = "requires pre-built WASM plugins — run `make build-all-plugins` first"]
130131
async fn test_identity_resolver_denies_empty_user() {
131132
init_tracing();
132133
check_binaries_exist();
@@ -148,6 +149,7 @@ async fn test_identity_resolver_denies_empty_user() {
148149
}
149150

150151
#[tokio::test(flavor = "multi_thread", worker_threads = 2)]
152+
#[ignore = "requires pre-built WASM plugins — run `make build-all-plugins` first"]
151153
async fn test_pii_guard_denies_without_clearance() {
152154
init_tracing();
153155
check_binaries_exist();
@@ -169,6 +171,7 @@ async fn test_pii_guard_denies_without_clearance() {
169171
}
170172

171173
#[tokio::test(flavor = "multi_thread", worker_threads = 2)]
174+
#[ignore = "requires pre-built WASM plugins — run `make build-all-plugins` first"]
172175
async fn test_pii_guard_allows_with_clearance() {
173176
init_tracing();
174177
check_binaries_exist();
@@ -195,6 +198,7 @@ async fn test_pii_guard_allows_with_clearance() {
195198
}
196199

197200
#[tokio::test(flavor = "multi_thread", worker_threads = 2)]
201+
#[ignore = "requires pre-built WASM plugins — run `make build-all-plugins` first"]
198202
async fn test_remote_authz_allows_user_in_acl() {
199203
init_tracing();
200204
check_binaries_exist();
@@ -213,6 +217,7 @@ async fn test_remote_authz_allows_user_in_acl() {
213217
}
214218

215219
#[tokio::test(flavor = "multi_thread", worker_threads = 2)]
220+
#[ignore = "requires pre-built WASM plugins — run `make build-all-plugins` first"]
216221
async fn test_remote_authz_denies_user_not_in_acl() {
217222
init_tracing();
218223
check_binaries_exist();
@@ -234,6 +239,7 @@ async fn test_remote_authz_denies_user_not_in_acl() {
234239
}
235240

236241
#[tokio::test(flavor = "multi_thread", worker_threads = 2)]
242+
#[ignore = "requires pre-built WASM plugins — run `make build-all-plugins` first"]
237243
async fn test_non_pii_tool_allowed() {
238244
init_tracing();
239245
check_binaries_exist();
@@ -252,6 +258,7 @@ async fn test_non_pii_tool_allowed() {
252258
}
253259

254260
#[tokio::test(flavor = "multi_thread", worker_threads = 2)]
261+
#[ignore = "requires pre-built WASM plugins — run `make build-all-plugins` first"]
255262
async fn test_context_table_threads_across_hooks() {
256263
init_tracing();
257264
check_binaries_exist();
@@ -291,6 +298,7 @@ async fn test_context_table_threads_across_hooks() {
291298
}
292299

293300
#[tokio::test(flavor = "multi_thread", worker_threads = 2)]
301+
#[ignore = "requires pre-built WASM plugins — run `make build-all-plugins` first"]
294302
async fn test_wildcard_route_allowed() {
295303
init_tracing();
296304
check_binaries_exist();

crates/cpex-wasm-host/tests/test_sandbox_env.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ fn extract_context(
6666
}
6767

6868
#[tokio::test]
69+
#[ignore = "requires pre-built WASM plugins — run `make build-test-plugins` first"]
6970
async fn test_plugin_cannot_see_env_vars_without_policy() {
7071
init_tracing();
7172
let path = wasm_path();
@@ -128,6 +129,7 @@ async fn test_plugin_cannot_see_env_vars_without_policy() {
128129
}
129130

130131
#[tokio::test]
132+
#[ignore = "requires pre-built WASM plugins — run `make build-test-plugins` first"]
131133
async fn test_plugin_sees_only_allowed_env_var() {
132134
init_tracing();
133135
let path = wasm_path();

crates/cpex-wasm-host/tests/test_sandbox_isolation.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ fn make_payload() -> MessagePayload {
5252
}
5353

5454
#[tokio::test]
55+
#[ignore = "requires pre-built WASM plugins — run `make build-test-plugins` first"]
5556
async fn test_plugin_cannot_read_etc_passwd_without_filesystem_policy() {
5657
init_tracing();
5758
let path = wasm_path();
@@ -119,6 +120,7 @@ async fn test_plugin_cannot_read_etc_passwd_without_filesystem_policy() {
119120
}
120121

121122
#[tokio::test]
123+
#[ignore = "requires pre-built WASM plugins — run `make build-test-plugins` first"]
122124
async fn test_plugin_cannot_read_etc_passwd_with_unrelated_filesystem_policy() {
123125
init_tracing();
124126
let path = wasm_path();

crates/cpex-wasm-host/tests/test_sandbox_network.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ fn make_payload() -> MessagePayload {
5151
}
5252

5353
#[tokio::test]
54+
#[ignore = "requires pre-built WASM plugins — run `make build-test-plugins` first"]
5455
async fn test_plugin_cannot_access_network_without_policy() {
5556
init_tracing();
5657
let path = wasm_path();
@@ -98,6 +99,7 @@ async fn test_plugin_cannot_access_network_without_policy() {
9899
}
99100

100101
#[tokio::test]
102+
#[ignore = "requires pre-built WASM plugins — run `make build-test-plugins` first"]
101103
async fn test_plugin_cannot_access_network_with_unrelated_allowlist() {
102104
init_tracing();
103105
let path = wasm_path();

0 commit comments

Comments
 (0)