Skip to content

Prose Gate Crashes on Import Under markdown-it-py 4.3.0, Failing Every Pull Request #4033

Closed

Description

@ptr727

Failure

.github/actions/prose-gate/prose_lint.py declares markdown-it-py>=4.2.0 in its inline script metadata, so uv resolves the newest release. In markdown-it-py 4.3.0, markdown_it.common.html_re.HTML_TAG_RE.pattern no longer opens with ^. It opens with a non-capturing group. Line 1701 builds MARKDOWN_SPAN from HTML_TAG_RE.pattern[1:], which assumed a leading ^. Under 4.3.0 the slice yields an invalid pattern, and importing the module raises re.PatternError: nothing to repeat.

Every pull request's Lint job and Python unit-test job fails on that import, whatever the pull request changes. #4029, #4030, and #4032 fail this way.

Class

The script reads a library internal, HTML_TAG_RE, through an open lower-bound dependency. So an upstream release changes the gate with no change in this repository. #3935 is the same class for scripts/backlog_metrics.py's inline markdown-it-py dependency.

Done when

The prose gate imports and runs under the version CI resolves. Its regex no longer depends on the shape of an upstream pattern string. The inline dependency resolves a version this repository has reviewed.

Activity

  1. added
    bug
    on Nov 10, 2026
  2. ptr727 commented on Nov 10, 2026

    @ptr727
    OwnerAuthor

    Released (2026-11-10): PR #4035 merged into develop at 3430a01, and its branch and worktree are removed, so this claim holds no files.

    Backlog burndown claim (attended run 2026-11-10, round 1, group G8). Branch: burndown/4033-prose-gate-markdown-it. Issues: #4033, #3935.

    Predicted file set:

    • .github/actions/prose-gate/prose_lint.py
    • .github/actions/prose-gate/prose-gate.json
    • scripts/prose_lint.py
    • tests/test_prose_lint.py
    • scripts/backlog_metrics.py
    • tests/test_backlog_metrics.py
    • tests/requirements.txt

    This group fixes a crash that fails every open pull request's CI, so it ranks first. No other group may edit these files while this claim stands. The orchestrator releases it at cleanup.

  3. added 6 commits that reference this issue on Nov 10, 2026
    1397e30
    d0cbd9a
    3894e51
    19f8478
    10061d7
    b303d1c
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

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions