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
Seen on PR #2900 (run 34288012477, full-suite-matrix (macos-latest, 3.10)) and earlier on run 34212533327, unrelated to either PR's diff:
FAILED tests/extraction/languages/test_embedded_python_strict.py::test_embedded_python_spec_exposure_redos_immunity
AssertionError: expected quadratic scaling on the pre-fix pattern, got durations=[0.0032, 0.0167, 0.0762, 0.1760]
The test's second half asserts durations[-1] / durations[-2] > 2.5 for the pre-fix regex over 8000 → 16000 bytes; the runner produced 2.31. test_naming_convention_signatures.py::test_var_decl_pattern_scales_linearly_not_quadratically failed the same way on run 34281710112. Every one of these is a wall-clock ratio measured on a shared macOS runner, where a 0.08 s sample is inside scheduling noise.
The property worth pinning is that the fixed pattern is fast -- an absolute bound (or a linear-scaling ratio with a generous ceiling) on the shipped regex -- not that the historical bad pattern is slow enough. The "pre-fix is quadratic" half of each test documents the bug it fixed but cannot be made deterministic on a shared runner; suggest dropping it or marking it @pytest.mark.skipif(sys.platform == "darwin") / a slow marker, and keeping the fixed-pattern bound.
Activity
ci: dedupe concurrent runs, parallelise pytest, and de-flake the ReDo…