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

update: logs and error messages #235

Merged
merged 12 commits into from
Dec 20, 2022
Merged

Conversation

patrickzheng200
Copy link
Contributor

@patrickzheng200 patrickzheng200 commented Dec 19, 2022

This PR adds more logs to the library and improves error messages.

This PR intends to resolve following issues:
notaryproject/notation#462
notaryproject/notation#128 -> comments related to trust policy

Signed-off-by: Patrick Zheng <[email protected]>
Signed-off-by: Patrick Zheng <[email protected]>
@patrickzheng200 patrickzheng200 self-assigned this Dec 19, 2022
@patrickzheng200 patrickzheng200 added the enhancement New feature or request label Dec 19, 2022
@patrickzheng200 patrickzheng200 added this to the RC-2 milestone Dec 19, 2022
@codecov-commenter
Copy link

codecov-commenter commented Dec 19, 2022

Codecov Report

Merging #235 (16bc1ab) into main (bce6162) will decrease coverage by 0.29%.
The diff coverage is 50.00%.

@@            Coverage Diff             @@
##             main     #235      +/-   ##
==========================================
- Coverage   73.55%   73.26%   -0.30%     
==========================================
  Files          23       23              
  Lines        1732     1743      +11     
==========================================
+ Hits         1274     1277       +3     
- Misses        366      372       +6     
- Partials       92       94       +2     
Impacted Files Coverage Δ
notation.go 59.86% <33.33%> (-0.14%) ⬇️
verifier/trustpolicy/trustpolicy.go 92.85% <46.15%> (-2.27%) ⬇️
verifier/verifier.go 73.46% <66.66%> (-0.05%) ⬇️
signer/plugin.go 66.34% <100.00%> (ø)

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@patrickzheng200 patrickzheng200 changed the title update: added more logs update: logs and error messages Dec 19, 2022
Copy link
Contributor

@shizhMSFT shizhMSFT left a comment

Choose a reason for hiding this comment

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

LGTM with suggestions

verifier/verifier.go Outdated Show resolved Hide resolved
Signed-off-by: Patrick Zheng <[email protected]>
Signed-off-by: Patrick Zheng <[email protected]>
Signed-off-by: Patrick Zheng <[email protected]>
Copy link
Contributor

@JeyJeyGao JeyJeyGao left a comment

Choose a reason for hiding this comment

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

LGTM

verifier/trustpolicy/trustpolicy.go Show resolved Hide resolved
verifier/trustpolicy/trustpolicy.go Outdated Show resolved Hide resolved
verifier/trustpolicy/trustpolicy.go Outdated Show resolved Hide resolved
verifier/trustpolicy/trustpolicy.go Outdated Show resolved Hide resolved
Signed-off-by: Patrick Zheng <[email protected]>
Signed-off-by: Patrick Zheng <[email protected]>
Copy link
Contributor

@shizhMSFT shizhMSFT left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@priteshbandi priteshbandi left a comment

Choose a reason for hiding this comment

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

LGTM with suggestions

verifier/trustpolicy/trustpolicy.go Outdated Show resolved Hide resolved
Signed-off-by: Patrick Zheng <[email protected]>
Signed-off-by: Patrick Zheng <[email protected]>
@priteshbandi priteshbandi merged commit 6c88d3d into notaryproject:main Dec 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants