Skip to content

[ty] Preserve known module owners when uv reports unknown IDs - #29296

Merged
zsol merged 1 commit into
mainfrom
zsol/ty-known-module-owners
Oct 14, 2026
Merged

zsol merged 1 commit into
mainfrom
zsol/ty-known-module-owners

Conversation

@zsol

@zsol zsol commented Oct 12, 2026

Copy link
Copy Markdown
Member

uv#22395 proposes reporting module owners for installed distributions outside the resolution. If one shares a module with a resolved package, ty currently discards both owners. This can cause ty to reject the metadata and disable dependency checks for the project.

This PR filters out unknown owner IDs while retaining owners present in the resolution. If no owners remain, it keeps an empty entry so the module does not inherit its parent’s owner.

After filtering, ty can attribute a module to a single known owner even when an unknown installed distribution also provides it.

@zsol zsol added bug An issue describing something that isn't working, or a PR that fixes a bug ty The ty type checker uv Interactions between Ruff and uv, or between ty and uv labels Oct 12, 2026
@astral-sh-bot

astral-sh-bot Bot commented Oct 12, 2026

Copy link
Copy Markdown

Typing conformance results

No changes detected ✅

Current numbers
The percentage of diagnostics emitted that were expected errors held steady at 98.24%. The percentage of expected errors that received a diagnostic held steady at 98.24%. The number of fully passing files held steady at 134/146.

@astral-sh-bot

astral-sh-bot Bot commented Oct 12, 2026

Copy link
Copy Markdown

Memory usage report

Memory usage unchanged ✅

@astral-sh-bot

astral-sh-bot Bot commented Oct 12, 2026

Copy link
Copy Markdown

ecosystem-analyzer results

No diagnostic changes detected ✅

Flaky changes detected. This PR summary excludes flaky changes; see the HTML report for details.

Full report with detailed diff (timing results)

@zsol
zsol marked this pull request as ready for review October 12, 2026 14:25
@zsol
zsol requested a review from a team as a code owner October 12, 2026 14:25
@astral-sh-bot
astral-sh-bot Bot requested a review from MichaReiser October 12, 2026 14:25
@zsol
zsol requested a review from charliermarsh October 12, 2026 14:25
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 12, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-12T14:28:16.226366Z be481b2 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@zsol
zsol merged commit 32c5cd5 into main Oct 14, 2026
76 checks passed
@zsol
zsol deleted the zsol/ty-known-module-owners branch October 14, 2026 09:38

This branch was previously deployed

1 inactive deployment
automations — be481b23 Deployed Oct 12, 2026 by zsol via security-review / security review #91391
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug An issue describing something that isn't working, or a PR that fixes a bug ty The ty type checker uv Interactions between Ruff and uv, or between ty and uv

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants