Skip to content

Enable type baselines #606

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 10 commits into from
Mar 14, 2025
Merged

Enable type baselines #606

merged 10 commits into from
Mar 14, 2025

Conversation

jakebailey
Copy link
Member

@jakebailey jakebailey commented Mar 14, 2025

This enables type baselining. I've modified the diffing to ignore the lines of the type baselines that have to do with node reuse, which we do not yet handle in this codebase.

@Zaid-maker
Copy link

Team is working really hard! Appreciate that 1Milllion+ additions DAMN

@jakebailey
Copy link
Member Author

This is now passing!

@jakebailey jakebailey marked this pull request as ready for review March 14, 2025 22:49
@jakebailey
Copy link
Member Author

jakebailey commented Mar 14, 2025

For reference, there are 12464 types baselines, and only 6825 diff files. And that's despite union ordering / member ordering changes.

@jakebailey
Copy link
Member Author

hugeDeclarationOutputGetsTruncated.types is 22.7MB 😨

@jakebailey
Copy link
Member Author

jakebailey commented Mar 14, 2025

I added in a 1,000,000 truncation limit like we previously had, for now. That limits the length to 4MBish.

Copy link
Member

@RyanCavanaugh RyanCavanaugh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM for the portions I could read before my computer melted hard drive overheated

@jakebailey
Copy link
Member Author

jakebailey commented Mar 14, 2025

I'm going to quick see if I can port some code to fix the T : T thing, but if it's not quick I'll just merge as-is.

EDIT: with this type printer, I made it worse 😅

@jakebailey jakebailey added this pull request to the merge queue Mar 14, 2025
Merged via the queue into main with commit dd0254a Mar 14, 2025
21 checks passed
@jakebailey jakebailey deleted the jabaile/type-baselines branch March 14, 2025 23:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants