Skip to content

Nightly CI failure — 2026-10-06: flaky TestPatternLinearity timing ratio (21.0x against a 20x limit) #72

Closed

Description

@github-actions

Nightly CI Failure

The nightly compatibility test failed.

Run: View details

This may indicate a breaking change in a dependency. Check the test logs for details.

Activity

  1. added
    bug
    on Oct 6, 2026
  2. changed the title [-]Nightly CI failure — 2026-10-06[/-] [+]Nightly CI failure — 2026-10-06: flaky TestPatternLinearity timing ratio (21.0x against a 20x limit)[/+] on Oct 9, 2026
  3. added
    area: dev-tooling
    severity: low
    wave: 4
    on Oct 9, 2026
  4. cemililik commented on Oct 9, 2026

    @cemililik
    Collaborator

    Triage (2026-10-09). The 2026-10-06 nightly failed in one job, Test with latest dependencies (3.12), on one test:

    tests/test_check_source_path_refs.py::TestPatternLinearity::test_growth_is_approximately_linear[near-miss tail] — AssertionError: near-miss tail: 10x input cost 21.0x time (super-linear), against the test's ratio < 20 limit.

    The nightlies of 2026-10-07, 10-08 and 10-09 passed with the guard unchanged, so this is timing noise rather than a ReDoS regression. The 1K-character near-miss payload is scanned in microseconds, so the median of five runs at that size is dominated by scheduler jitter and the 10K/1K ratio wanders around the limit. A real super-linear pattern shows roughly 100× for a 10× input.

    Fix. Make the shape assertion robust to a tiny denominator while keeping the absolute < 1.0 s floor — for example compare 10K against 2K or 5K instead of 1K, take the minimum of the repetitions instead of the median (the least-perturbed sample), or repeat the inner finditer enough times per sample that each timing sits well above timer resolution. Stay within the empirical linearity pin docs/standards/regex.md describes; the other TestPatternLinearity cases share the same 1K base and the same exposure.

    Done when the test no longer fails across repeated runs on a loaded runner, and still fails against a deliberately quadratic pattern.

  5. github-actions commented on Oct 10, 2026

    @github-actions
    Author

    Nightly CI failed again on 2026-10-10.

    View run

  6. sricharanreddycheruku commented on Oct 10, 2026

    @sricharanreddycheruku
    Contributor

    I’d like to work on #72. I’ll stabilize the timing samples while preserving the absolute runtime limit, and verify the check still rejects a deliberately quadratic pattern.

  7. cemililik commented on Oct 10, 2026

    @cemililik
    Collaborator

    Scope note (2026-10-11). The "Nightly CI failed again on 2026-10-10" comment above links run 38041843770, and that run did not fail on TestPatternLinearity. Its only failing job was Test with minimum supported versions, which cannot import forgelm.config with pydantic==2.0.0. That problem is now tracked separately in #933.

    This issue stays scoped to the flaky TestPatternLinearity timing ratio (the 2026-10-06 failure), which PR #932 addresses. Both issues carry nightly-failure, and the nightly workflow comments on an open issue with that label, so further "failed again" comments may land on either until this one is closed.

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

    area: dev-toolingbuggood first issuenightly-failureseverity: lowwave: 4

    Type

    No type

    Projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions