Skip to content

compiler hook test gets 2nd-level error: COMPILATION-TOLERANCE slot missing #736

@ghost

Description

When running TEST-COMPILER-HOOK test, when it signals a tolerance error, i.e., quil::state-prep-compression-tolerance-error, a second-level error is signaled with an error message that looks something like this:

  When attempting to read the slot's value (slot-value), the slot
  COMPILATION-TOLERANCE is missing from the object
  #<CL-QUIL::STATE-PREP-COMPRESSION-TOLERANCE-ERROR {1005FD4043}>.

Here's code to reproduce this, assuming you're in a REPL with quil test system loaded and in CL-QUIL-TESTS package:

(%with-loose-state-prep-compression
  (error 'quil::state-prep-compression-tolerance-error
    :compilation-tolerance -2
    :compilation-precision -1))

This has recently been seen "in the wild" for a CI test associated with a recent and pending PR (#733). Here's a URL to the failing test: https://github.com/quil-lang/quilc/pull/733/checks?check_run_id=3759605488

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