Skip to content

ty 0.0.87 rejects CaptureHandler.server in codspeed-profiles.py #2905

Open

Description

@astral-automations-bot

CI fails while type-checking the unchanged CodSpeed helper.

Run: https://github.com/astral-sh/uv-dev/actions/runs/39513469902
Job: https://github.com/astral-sh/uv-dev/actions/runs/39513469902/job/118940605132
Workflow: CI; job: check-lint / ty; step: Check scrolls.
Platform: Ubuntu 24.04 x86_64, runner label github-ubuntu-24.04-x86_64-2. Attempt 1, pull_request event for #2904.

The step invokes uv check --script "$script" --locked using uv 0.13.4. It downloads ty 0.0.87, checks several scripts successfully, then fails on scripts/codspeed-profiles.py:

error[invalid-mutable-override]: Invalid override of attribute `server`
   --> codspeed-profiles.py:166:5
166 |     server: CaptureServer
    |     ^^^^^^ Override does not accept writes of type `BaseServer`
Found 1 diagnostic

Source confirms that CaptureHandler subclasses BaseHTTPRequestHandler and narrows its mutable server attribute to CaptureServer. The script is identical at the failed head and the checked-out base; the pull request changes only crates/uv-distribution-types/src/requirement.rs. The required-jobs rollup is the only other failed job and adds no independent failure.

The script declares no dependencies, and its lockfile contains no ty package. The workflow supplies no exact checker version, so --locked does not pin the standalone checker. The preceding Python-package check uses the root lockfile, which contains ty 0.0.69, and passes.

Update the handler typing for the selected checker and consider explicitly controlling the script-checker version. This requires a repository change rather than a retry.

#2903 reports the same diagnostic and says ty 0.0.86 passes on baseline code; that version comparison was not independently reproduced here. Related #392 covers different Ruff and workspace-metadata errors. astral-sh#19989 enables locked checker selection when scripts declare ty, which this script does not.

Activity

  1. added
    internal:ci
    on Oct 20, 2026
  2. astral-automations-bot commented on Oct 20, 2026

    @astral-automations-bot
    Author

    Another workflow run encountered this failure: https://github.com/astral-sh/uv-dev/actions/runs/39514004543

    Attempt 1 also reproduces #1580 and adds macOS 15 ARM64 samples to #408: pip_tree::with_editable and three pip_uninstall tests exhaust three retries with PyPI Connection refused (os error 61). Seven additional tests hit 120-second deadlines; all eleven pass on Linux in the same run. A shared network cause for the timeouts is unconfirmed. The workflow sets UV_HTTP_RETRIES=5, but TestContext removes that variable from child commands, consistent with the observed three retries. macOS job: https://github.com/astral-sh/uv-dev/actions/runs/39514004543/job/118941942577

  3. astral-automations-bot commented on Oct 21, 2026

    @astral-automations-bot
    Author
  4. astral-automations-bot commented on Oct 21, 2026

    @astral-automations-bot
    Author

    Another workflow run encountered this failure: https://github.com/astral-sh/uv/actions/runs/39518793446

    This also affects public astral-sh/uv CI on documentation-only astral-sh#22785: https://github.com/astral-sh/uv/actions/runs/39518793446/job/118957573631. Attempt 1 reports the same ty 0.0.87 diagnostic in unchanged code. The concurrent Prettier failure concerns the PR's newly added stylesheet.

  5. astral-automations-bot commented on Oct 21, 2026

    @astral-automations-bot
    Author

    Another workflow run encountered this failure: https://github.com/astral-sh/uv/actions/runs/39516913803

    Attempt 1 also reproduces #1580 and #2907. It adds a development-build occurrence to #2510: on macOS 15 ARM64, compilation and binary upload succeeded, but Rust-cache upload stalled at 93.5% until the ten-minute deadline. Rust setup had already consumed 4m46s. Job: https://github.com/astral-sh/uv/actions/runs/39516913803/job/118951394302.

  6. astral-automations-bot commented on Oct 21, 2026

    @astral-automations-bot
    Author
  7. astral-automations-bot commented on Oct 21, 2026

    @astral-automations-bot
    Author
  8. astral-automations-bot commented on Oct 21, 2026

    @astral-automations-bot
    Author
  9. astral-automations-bot commented on Oct 21, 2026

    @astral-automations-bot
    Author
  10. astral-automations-bot commented on Oct 21, 2026

    @astral-automations-bot
    Author
  11. astral-automations-bot commented on Oct 21, 2026

    @astral-automations-bot
    Author

    Another workflow run encountered this failure: https://github.com/astral-sh/uv-dev/actions/runs/38968203712

    Attempt 4 reproduces the same diagnostic with uv 0.13.0, extending the original uv 0.13.4 report. The failed revision still contains the annotation removed by merged astral-sh#22786; this is not evidence of a regression after that fix. Job: https://github.com/astral-sh/uv-dev/actions/runs/38968203712/job/119056113399

  12. astral-automations-bot commented on Oct 21, 2026

    @astral-automations-bot
    Author

    Another workflow run encountered this failure: https://github.com/astral-sh/uv-dev/actions/runs/38968155599

    Attempt 4 reproduces this with uv 0.13.0, versus uv 0.13.4 in the original report: https://github.com/astral-sh/uv-dev/actions/runs/38968155599/job/119055702235. The rerun checks merge b068e02, which still contains the invalid annotation removed by merged astral-sh#22786.

  13. astral-automations-bot commented on Oct 21, 2026

    @astral-automations-bot
    Author

    Another workflow run encountered this failure: https://github.com/astral-sh/uv/actions/runs/39572417608

    Attempt 1 reproduces the same ty 0.0.87 diagnostic using uv 0.13.1, extending the previously reported uv versions. The tested merge still contains the annotation removed by astral-sh#22786. Job: https://github.com/astral-sh/uv/actions/runs/39572417608/job/119129899578

  14. astral-automations-bot commented on Oct 21, 2026

    @astral-automations-bot
    Author
  15. astral-automations-bot commented on Oct 21, 2026

    @astral-automations-bot
    Author
  16. astral-automations-bot commented on Oct 22, 2026

    @astral-automations-bot
    Author

    Another workflow run encountered this failure: https://github.com/astral-sh/uv-dev/actions/runs/39725563080

    Attempt 1 also has an independent binary-size publishing failure on Ubuntu 24.04 x86_64: 'Read the stored comment ID' reports 'service-url must be an HTTPS URL' before any network request. The publisher comes from the stack in #2730, which documents the required KV_API_URL configuration. Job: https://github.com/astral-sh/uv-dev/actions/runs/39725563080/job/119652352177

  17. astral-automations-bot commented on Oct 22, 2026

    @astral-automations-bot
    Author
  18. astral-automations-bot commented on Oct 24, 2026

    @astral-automations-bot
    Author

    Another workflow run encountered this failure: https://github.com/astral-sh/uv/actions/runs/40045454843

    Attempt 1 reproduces the CaptureHandler.server diagnostic with ty 0.0.89, extending the original ty 0.0.87 report: https://github.com/astral-sh/uv/actions/runs/40045454843/job/120726224047. The tested revision still contains the annotation removed by astral-sh#22786; this does not establish a post-fix regression.

  19. astral-automations-bot commented on Oct 28, 2026

    @astral-automations-bot
    Author

    Another workflow run encountered this failure: https://github.com/astral-sh/uv/actions/runs/40610211227

    Attempt 1 reproduces the typing diagnostic with ty 0.0.90 on Ubuntu 26.04.1: https://github.com/astral-sh/uv/actions/runs/40610211227/job/122560075865. The tested merge still lacks astral-sh#22786. This run also reproduces the TestPyPI snapshot failures fixed by astral-sh#22859 and the 14 Linux private-Git failures mitigated by astral-sh#22843; both fixes are absent from the tested workflow/source.

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

    internal:ci

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions