-
Notifications
You must be signed in to change notification settings - Fork 229
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
CommunitySetMatchExprVarCollector: do not crash on collecting unsupported structures #6750
Conversation
…rted structures Instead, defer that crashing to validation time. This enables SearchRoutePolicies to run on devices where only some of the route policies can be successfully analyzed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 3 of 3 files at r1.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @dhalperi)
a discussion (no related file):
This looks great, thanks. Note that the same issue arises with UnsupportedOperationExceptions in CommunityMatchExprVarCollector.
Codecov Report
@@ Coverage Diff @@
## master #6750 +/- ##
==========================================
Coverage 69.51% 69.52%
- Complexity 35913 35945 +32
==========================================
Files 3011 3013 +2
Lines 153087 153192 +105
Branches 18404 18405 +1
==========================================
+ Hits 106424 106511 +87
- Misses 38064 38073 +9
- Partials 8599 8608 +9 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Dismissed @millstein from a discussion.
Reviewable status:complete! all files reviewed, all discussions resolved
a discussion (no related file):
Previously, millstein (Todd Millstein) wrote…
This looks great, thanks. Note that the same issue arises with UnsupportedOperationExceptions in CommunityMatchExprVarCollector.
Done.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status:
complete! all files reviewed, all discussions resolved
a discussion (no related file):
Previously, dhalperi (Dan Halperin) wrote…
Done.
Done was a weird auto-add. Ack, next work.
Instead, defer that crashing to validation time. This enables SearchRoutePolicies to
run on devices where only some of the route policies can be successfully analyzed.