Skip to content

Updated verify_policy tool#7142

Open
alxmrs wants to merge 5 commits intoPolymerLabs:masterfrom
alxmrs:policy-scratch
Open

Updated verify_policy tool#7142
alxmrs wants to merge 5 commits intoPolymerLabs:masterfrom
alxmrs:policy-scratch

Conversation

@alxmrs
Copy link
Contributor

@alxmrs alxmrs commented Apr 30, 2021

  • Added flag to turn on debug mode.
  • made CLI more conventional
  • documented tool
  • added a few more log stmts

CC: @cromwellian, @jasonwyatt, @csilvestrini

alxmrs added 2 commits April 30, 2021 16:09
- Added flag to turn on debug mode.
- made CLI more conventional
- documented tool
- added a few more log stmts
@alxmrs alxmrs requested a review from bgogul April 30, 2021 23:12
@google-cla google-cla bot added the cla: yes label Apr 30, 2021
Copy link
Collaborator

@bgogul bgogul left a comment

Choose a reason for hiding this comment

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

The additional log statements can result in too much debug information. Can we remove them?


/** Returns true if the [check] is satisfied by the labels computed for [particle]. */
fun InformationFlow.AnalysisResult.verify(particle: Recipe.Particle, check: Check): Boolean {
val log = TaggedLog { "AnalysisResult.verify" }
Copy link
Collaborator

Choose a reason for hiding this comment

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

This is too much debug information. Let us not keep these log.debug statements.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sure thing, just pushed a reversion.

.flag(default = false)

override fun run() {
if (debug) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Thanks for doing this!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

My pleasure!

@alxmrs alxmrs requested a review from bgogul May 3, 2021 18:00
@alxmrs alxmrs added the ready to pull Add this label to pull a PR into google. label May 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla: yes ready to pull Add this label to pull a PR into google.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants