Skip to content

Panic in resolver_iai benchmark #390

@danielrainer

Description

@danielrainer

I just tried running all test using cargo test --workspace --all-targets and ran into a panic of the resolver_iai benchmark from the fluent-bundle crate. It can be run individually using cargo test -p fluent-bundle --bench resolver_iai. The panic message is

thread 'main' (173030) panicked at /home/drainer/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/iai-0.1.1/src/lib.rs:162:46:
no entry found for key

I tried adding a custom panic!() as the first line of fluent-bundle/benches/resolver_iai.rs:iai_resolve_preferences which did not affect the result, suggesting that the issue is in the iai crate. That crate looks abandoned, so it might make sense to look for alternatives, and maybe disable the benchmark until it is fixed.

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