Skip to content
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

create strict mode and enable it for tests #216

Merged
merged 1 commit into from
Jul 7, 2023

Conversation

JakeHillion
Copy link
Contributor

@JakeHillion JakeHillion commented Jul 7, 2023

Summary

Currently tests do not fail if TreeBuilder did not completely consume the data segment and they definitely should. I think there's a solid argument to be made for making this fatal everywhere, but TreeBuilder V2 should remove this possibility anyway.

This PR creates a strict mode that causes TreeBuilder to fatally error if it hasn't read all of the data segment and enables it for tests. This exposes a few issues under Type Graph/Typed Data Segment that will need fixing first.

I was planning to hold off landing this until the bugs were fixed, but I think it makes more sense to blacklist the failing tests on the CI as we already do that with some. All tests are passing without -ftype-graph or -ftyped-data-segment.

Test plan

  • CI

@JakeHillion JakeHillion force-pushed the types-no-chase branch 3 times, most recently from ab54b35 to 8dc18fd Compare July 7, 2023 14:43
@JakeHillion JakeHillion marked this pull request as ready for review July 7, 2023 14:53
@JakeHillion JakeHillion requested a review from ajor July 7, 2023 14:53
Copy link
Contributor

@ajor ajor left a comment

Choose a reason for hiding this comment

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

Very useful!

@JakeHillion JakeHillion merged commit 1763398 into facebookexperimental:main Jul 7, 2023
@JakeHillion JakeHillion deleted the types-no-chase branch July 7, 2023 15:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants