Skip to content

test: test_darken_transparent measures the output before the scene is drawn in the asan job #3389

Closed

Description

@vpacher

What happens

darken_keeps_background_where_transparent fails at test/cmocka/test_darken_transparent.c:325 in the asan job (run 41281819710, with other tests running). It passed in the four earlier asan runs and passes in Tier 2:

normal: mean luma left (transparent) 0.0, right (opaque) 0.0 (black is 16)
darken: mean luma left (transparent) 180.0, right (opaque) 71.0 (black is 16)
normal: mean luma left (transparent) 180.0, right (opaque) 71.0 (black is 16)

The first Normal pass measured luma 0 on both halves. That is not video black (16): no frame of the scene was drawn yet. run_scene is ready after 10 output frames, not after the frames show the scene, so on a loaded machine it reads frames from before the first draw. The Darken pass and the Normal control right after it are correct.

What to do

Make run_scene wait for frames that show the scene (for example, the opaque half is no longer 0), with a time limit, and then measure. No assertion changes.

The test must pass in the asan job on its own and with other tests running. Then drop its entry from the sanitizer harness's known list (rust/tools/sanitize/triage.py, kind flaky, #3290).

Activity

  1. added
    quality
    P3
    size:S
    on Nov 1, 2026
  2. vpacher commented on Nov 1, 2026

    @vpacher
    MemberAuthor

    /ready

  3. added
    ready
    on Nov 1, 2026
  4. vpacher commented on Nov 1, 2026

    @vpacher
    MemberAuthor

    Claiming: wait for the drawn scene in test_darken_transparent

    Plan (one PR, after #3290):

    1. RED: show the early read (luma 0 before the first draw) by delaying the first draw in a test build.
    2. GREEN: run_scene waits for frames that show the scene, with a time limit.
    3. Drop its flaky entry from the known list.

    First PR: after #3290 merges.

  5. vpacher commented on Nov 1, 2026

    @vpacher
    MemberAuthor

    Blocked: waiting on #3290

  6. added
    claim-blocked
    on Nov 1, 2026
  7. removed
    claim-blocked
    on Nov 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

P3qualityreadysize:S

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions