Skip to content

[Bug]: Windows CI flakes on ReDoS timing threshold #412

Closed

Description

@jimhoyd

Runtime revision and environment

Observed in run 35559791008 on GitHub-hosted windows-latest (Windows Server 2025), Node 22.

Minimal reproduction

Run the core suite on the Windows matrix:
npm test

The test accepted patterns stay fast on adversarial input at the length cap (ReDoS bound) in test/body-validation-limits.test.ts requires each allowed pattern evaluation to complete in under 500 ms.

Expected: the test distinguishes an unsafe accepted pattern from normal hosted-runner variance.

Actual: the Windows leg measured ^\w+\w+\w+$ at 539 ms and failed, while the full suite otherwise completed (682 pass, 1 fail).

Relevant output

Run: https://github.com/jimhoyd-com/urlcode/actions/runs/35559791008/job/106212241989

error: '^\w+\w+\w+$ took 539 ms'

This report records the observed CI behavior only. I did not establish a portable replacement threshold or whether the performance guard should use a relative baseline.

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

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions