You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Nightly CI failure — 2026-10-06: flaky TestPatternLinearity timing ratio (21.0x against a 20x limit) #72
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
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.
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.
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.
Activity
[-]Nightly CI failure — 2026-10-06[/-][+]Nightly CI failure — 2026-10-06: flaky TestPatternLinearity timing ratio (21.0x against a 20x limit)[/+]cemililik commentedon Oct 9, 2026
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'sratio < 20limit.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 sfloor — 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 innerfinditerenough times per sample that each timing sits well above timer resolution. Stay within the empirical linearity pindocs/standards/regex.mddescribes; the otherTestPatternLinearitycases 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.
github-actions commentedon Oct 10, 2026
Nightly CI failed again on 2026-10-10.
View run
sricharanreddycheruku commentedon Oct 10, 2026
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.
cemililik commentedon Oct 10, 2026
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 wasTest with minimum supported versions, which cannot importforgelm.configwithpydantic==2.0.0. That problem is now tracked separately in #933.This issue stays scoped to the flaky
TestPatternLinearitytiming ratio (the 2026-10-06 failure), which PR #932 addresses. Both issues carrynightly-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.feat(ci): bind the dependency override, read texts as GitHub renders …