Skip to content

ensure acvm.js properly handles errors #2896

@ludamad

Description

@ludamad

e2e tests are being observed to run for multiple hours in some failure cases where lots of output is presented. A specific instance for reference can be found here.

The core problem is error handling in the acvm.js component, but this is a problem in general if we print continuous output.

Key Points:

  1. The e2e container doesn't seem to exit upon encountering an error in the test. The error seen might be getting swallowed instead of being propagated
  2. The continuous noise from Anvil in the output prevents the 10-minute kill switch from terminating the test.

Actions to do or break-out into new issues:

  • Ensure proper error propagation, especially concerning the wasm simulator error. Can change line 710 of acvm_js.js to throw an error and observe the behavior above, potentially running with --detectOpenHandles.

Done

  • Silence Anvil output.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-devopsArea: Devops. E.g. CI / build systems

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions