From 2fb16dcbc2733a63821b4ca5d15ffa1bfe117967 Mon Sep 17 00:00:00 2001 From: Michael Mueller Date: Mon, 17 Jan 2022 19:15:20 +0100 Subject: [PATCH 1/2] Output error --- src/cmd/build.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/cmd/build.rs b/src/cmd/build.rs index b173b946..9ef8f949 100644 --- a/src/cmd/build.rs +++ b/src/cmd/build.rs @@ -1042,6 +1042,7 @@ mod tests_ci_only { let res = check_wasm_opt_version_compatibility(&path); // then + eprintln!("error: {:?}", res); assert!(res.is_err()); assert!(format!("{:?}", res) .starts_with("Err(Your wasm-opt version is 98, but we require a version >= 99.")); -- GitLab From e2a1c1073b874d1ae9caa437f3c0cea970aa0af8 Mon Sep 17 00:00:00 2001 From: Michael Mueller Date: Tue, 18 Jan 2022 07:50:07 +0100 Subject: [PATCH 2/2] Add debug output --- src/cmd/build.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/cmd/build.rs b/src/cmd/build.rs index 9ef8f949..02f3ae06 100644 --- a/src/cmd/build.rs +++ b/src/cmd/build.rs @@ -1042,8 +1042,10 @@ mod tests_ci_only { let res = check_wasm_opt_version_compatibility(&path); // then - eprintln!("error: {:?}", res); assert!(res.is_err()); + + // this println is here to debug a spuriously failing CI at the following assert. + eprintln!("error: {:?}", res); assert!(format!("{:?}", res) .starts_with("Err(Your wasm-opt version is 98, but we require a version >= 99.")); -- GitLab