Skip to content

js-compute-runtime is non-hermetic #1177

Open
@thesayyn

Description

@thesayyn

Based on my experiments building javascript into .wasm via js-compute-runtime command is non-repeatable and non-deterministic.

Simply running js-compute-runtime src dest twice yields different results even though the source is unchanged.

This is problem when building things with Bazel due to unstable outputs affecting cache hit rates.

Reproducer; Get diffoscope from here: https://diffoscope.org/

js-compute-runtime a.js  1.wasm
js-compute-runtime a.js  2.wasm


diiffoscope 1.wasm 2.wasm

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions