Skip to content

Flaky Spotlight cooldown assertion in the full Flutter suite #23380

Closed

Description

@aryanorastar

The full Flutter suite on c4aa08b510 (cd app && flutter test --concurrency=2) produced 7,123 passes, nine skips and one failure in test/services/siri_integration_test.dart, “delete and newly locked memory submitted during cooldown reach Spotlight after cooldown”: line 373 expected host.calls == 1, observed 4. Both this test and lib/services/siri_integration.dart are byte-identical to the current origin/main; rerunning the isolated file passed all 28 tests. The fixture uses a 20 ms native timeout, an 80 ms cooldown, an intermediate call-count assertion and a subsequent 130 ms wall-clock delay. Scheduler pressure likely allows the cooldown to expire before that intermediate assertion; this is a test-timing diagnosis, not evidence of a production Spotlight failure. The cooldown/deferred-removal contract needs deterministic verification without depending on the host finishing work within 80 ms.

Activity

  1. ocakciomursel-pixel commented on Oct 23, 2026

    @ocakciomursel-pixel
    Contributor

    Opened PR #23398 (#23398) to convert the Spotlight cooldown and deferred-removal tests in app/test/services/siri_integration_test.dart from wall-clock Future<void>.delayed / drainIndexForTest waits to deterministic fakeAsync time progression so scheduler pressure in full-suite runs cannot expire the 80 ms cooldown before intermediate assertions run.

  2. moved this from Someday to In progress in omi TODO / bountieson Oct 23, 2026
  3. moved this from In progress to In review in omi TODO / bountieson Oct 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions