Skip to content

errors test occasionally fails due to thread scheduling effects #364

@ink-splatters

Description

@ink-splatters

Reproduce

❯ seq 1 20 | while read i; do cargo test --test tests errors 2>&1 | grep "test result"; done | sort | uniq -c

Stats

  Original upstream code (1.34.0) with fresh cargo build:

  | Configuration                               | Pass Rate    |
  |---------------------------------------------|--------------|
  | ordered-channel 1.2.0 + multi-thread        | ~60% (12/20) |
  | ordered-channel 1.1.0 + multi-thread        | ~70% (14/20) |
  | ordered-channel 1.2.0 + RAYON_NUM_THREADS=1 | ~50% (10/20) |
  | ordered-channel 1.1.0 + RAYON_NUM_THREADS=1 | ~55% (11/20) |

Environment

gifski version: 1.34.0

rust toolchain

❯ rustc --version
rustc 1.93.0-nightly (b84478a1c 2025-11-30)

system

❯ sw_vers
ProductName:		macOS
ProductVersion:		26.1
BuildVersion:		25B78

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