kpreid / all-is-cubes

Yet another block/voxel game; in this one the blocks are made out of blocks. Runs in browsers on WebGL+WebAssembly.
https://kpreid.dreamwidth.org/tag/all+is+cubes
Apache License 2.0
147 stars 8 forks source link

CI: Switch to M1 macOS runners. #459

Closed kpreid closed 1 month ago

kpreid commented 5 months ago

Browser tests don't pass.

``` Set timeout to 20 seconds... Executing bindgen... Running headless tests in Firefox on `[http://127.0.0.1:49243/`](http://127.0.0.1:49243/%60) Try find `webdriver.json` for configure browser's capabilities: Not found Starting new webdriver session... driver status: signal: 9 (SIGKILL) driver stdout: 1707018675469 geckodriver INFO Listening on 127.0.0.1:49243 Error: http://127.0.0.1:49243/session: status code 500 Stack backtrace: 0: std::backtrace_rs::backtrace::libunwind::trace at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/../../backtrace/src/backtrace/libunwind.rs:104:5 1: std::backtrace_rs::backtrace::trace_unsynchronized at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5 2: std::backtrace::Backtrace::create at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/backtrace.rs:331:13 3: anyhow::error:: for anyhow::Error>::from 4: wasm_bindgen_test_runner::headless::Client::doit 5: wasm_bindgen_test_runner::headless::run 6: wasm_bindgen_test_runner::main 7: std::sys_common::backtrace::__rust_begin_short_backtrace 8: std::rt::lang_start::{{closure}} 9: core::ops::function::impls:: for &F>::call_once at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/core/src/ops/function.rs:284:13 10: std::panicking::try::do_call at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/panicking.rs:552:40 11: std::panicking::try at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/panicking.rs:516:19 12: std::panic::catch_unwind at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/panic.rs:142:14 13: std::rt::lang_start_internal::{{closure}} at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/rt.rs:148:48 14: std::panicking::try::do_call at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/panicking.rs:552:40 15: std::panicking::try at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/panicking.rs:516:19 16: std::panic::catch_unwind at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/panic.rs:142:14 17: std::rt::lang_start_internal at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/rt.rs:148:20 18: std::rt::lang_start 19: _main error: test failed, to rerun pass `--test browser` Caused by: process didn't exit successfully: `/Users/runner/Library/Caches/.wasm-pack/wasm-bindgen-cargo-install-0.2.90/wasm-bindgen-test-runner /Users/runner/work/all-is-cubes/all-is-cubes/all-is-cubes-wasm/target/wasm32-unknown-unknown/debug/deps/browser-fc7dced543cc4705.wasm` (exit status: 1) note: test exited abnormally; to see the full output pass --nocapture to the harness. Error: Running Wasm tests with wasm-bindgen-test failed Caused by: Running Wasm tests with wasm-bindgen-test failed Caused by: failed to execute `cargo test`: exited with exit status: 1 full command: cd "/Users/runner/work/all-is-cubes/all-is-cubes/all-is-cubes-wasm" && CARGO_TARGET_WASM32_UNKNOWN_UNKNOWN_RUNNER="/Users/runner/Library/Caches/.wasm-pack/wasm-bindgen-cargo-install-0.2.90/wasm-bindgen-test-runner" GECKODRIVER="/Users/runner/Library/Caches/.wasm-pack/geckodriver-999daedc01c233f5/geckodriver" WASM_BINDGEN_TEST_ONLY_WEB="1" "cargo" "test" "--target" "wasm32-unknown-unknown" Error: command `wasm-pack test --headless --firefox` failed, exit status: 1 ```
kpreid commented 4 months ago

I tried the suggestion to pass --nocapture locally and it caused the tests to fail to start with no useful details.

kpreid commented 1 month ago

92000b399422d9efdce4cd7ff097f5012bd11dc0 fixes the problem, which seems to be simply that Firefox isn't installed. The rest of this PR is no longer needed since M1 is now rolled out by default.