Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cargo web test fails on master #659

Closed
dhardy opened this issue Dec 6, 2018 · 4 comments · Fixed by #660
Closed

cargo web test fails on master #659

dhardy opened this issue Dec 6, 2018 · 4 comments · Fixed by #660

Comments

@dhardy
Copy link
Member

dhardy commented Dec 6, 2018

This Travis job has started failing on master:

@alexcrichton can you solve or reassign?

$ cargo web test --nodejs --target wasm32-unknown-unknown --features=stdweb
warning: debug builds on the wasm32-unknown-unknown are currently totally broken
         forcing a release build
   Compiling proc-macro2 v0.4.24
   Compiling semver-parser v0.7.0
   Compiling unicode-xid v0.1.0
   Compiling ryu v0.2.7
   Compiling serde v1.0.80
   Compiling num-traits v0.2.6
   Compiling itoa v0.4.3
   Compiling num-integer v0.1.39
   Compiling stdweb-internal-runtime v0.1.2
   Compiling custom_derive v0.1.7
   Compiling base-x v0.2.3
   Compiling rand_core v0.3.0 (/home/travis/build/rust-random/rand/rand_core)
   Compiling float-ord v0.2.0
   Compiling discard v1.0.4
   Compiling semver v0.9.0
   Compiling conv v0.3.3
   Compiling rand_xorshift v0.1.0 (/home/travis/build/rust-random/rand/rand_xorshift)
   Compiling rand_isaac v0.1.1 (/home/travis/build/rust-random/rand/rand_isaac)
   Compiling rand_hc v0.1.0 (/home/travis/build/rust-random/rand/rand_hc)
   Compiling rustc_version v0.2.3
   Compiling quote v0.6.10
   Compiling serde_json v1.0.33
   Compiling stdweb-internal-macros v0.2.2
   Compiling rand_chacha v0.1.0 (/home/travis/build/rust-random/rand/rand_chacha)
   Compiling stdweb v0.4.10
   Compiling rand_pcg v0.1.1 (/home/travis/build/rust-random/rand/rand_pcg)
   Compiling rand v0.6.1 (/home/travis/build/rust-random/rand)
   Compiling syn v0.15.22
   Compiling average v0.9.2
   Compiling serde_derive v1.0.80
   Compiling stdweb-derive v0.5.1
    Finished release [optimized] target(s) in 3m 01s
    Garbage collecting "rand-7b95d3a8976c69c3.wasm"...
    Processing "rand-7b95d3a8976c69c3.wasm"...
warning: unsupported custom section: 'producers', please report this!
    Finished processing of "rand-7b95d3a8976c69c3.wasm"!
warning: debug builds on the wasm32-unknown-unknown are currently totally broken
         forcing a release build
   Compiling rand v0.6.1 (/home/travis/build/rust-random/rand)
    Finished release [optimized] target(s) in 4.35s
    Garbage collecting "uniformity-fe00c78ef661f1fc.wasm"...
    Processing "uniformity-fe00c78ef661f1fc.wasm"...
warning: unsupported custom section: 'producers', please report this!
    Finished processing of "uniformity-fe00c78ef661f1fc.wasm"!
/home/travis/.cache/cargo-web/bin/test_runner.js:305
            const ctor = WebAssembly.Instance;
                                    ^
ReferenceError: WebAssembly is not defined
    at /home/travis/.cache/cargo-web/bin/test_runner.js:305:37
    at Object.<anonymous> (/home/travis/.cache/cargo-web/bin/test_runner.js:327:3)
    at Module._compile (module.js:570:32)
    at Object.Module._extensions..js (module.js:579:10)
    at Module.load (module.js:487:32)
    at tryModuleLoad (module.js:446:12)
    at Function.Module._load (module.js:438:3)
    at Module.runMain (module.js:604:10)
    at run (bootstrap_node.js:383:7)
    at startup (bootstrap_node.js:149:9)
/home/travis/.cache/cargo-web/bin/test_runner.js:305
            const 
@alexcrichton
Copy link
Contributor

I don't personally know about stdweb or how to run/test it

@dhardy
Copy link
Member Author

dhardy commented Dec 7, 2018

Sorry.

@koute can you help with this?

@koute
Copy link
Contributor

koute commented Dec 7, 2018

Hmm... this looks like Node.js suddenly stopped supporting WebAssembly? O_O

I'll investigate ASAP.

@koute
Copy link
Contributor

koute commented Dec 7, 2018

It looks like that build got assigned to a machine with an ancient Node.js for some reason.

One of the recent good jobs has this:

Pre-installed Node.js versions
v4.8.6
v6.12.0
v6.12.1
v8.9
v8.9.1
phpenv versions
  system
  5.6
* 5.6.32 (set by /home/travis/.phpenv/version)
  7.0
  7.0.25
  7.1
  7.1.11
  hhvm
  hhvm-stable

The bad job doesn't have the "Pre-installed Node.js versions" section at all, and various details (the kernel, the 'build image provisioning date and time', etc. are also different).

I don't know enough about Travis to be able to tell why exactly did this happen, but making sure we have new enough Node.js before running the tests should hopefully fix this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants