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

feat: add --debug & --verbose flags & http request/response debug log #457

Merged
merged 17 commits into from
Dec 5, 2022

Conversation

JeyJeyGao
Copy link
Contributor

@JeyJeyGao JeyJeyGao commented Nov 28, 2022

  • added debug flag for sign/verify commands
  • added verbose flag for sign/verify commands
  • added http request/response debug log

Signed-off-by: Junjie Gao [email protected]

internal/trace/transport.go Fixed Show resolved Hide resolved
internal/cmd/options.go Outdated Show resolved Hide resolved
internal/cmd/options.go Outdated Show resolved Hide resolved
@JeyJeyGao JeyJeyGao force-pushed the feat/add_debug branch 2 times, most recently from 8988dec to acb73ce Compare November 30, 2022 04:32
@codecov-commenter
Copy link

codecov-commenter commented Nov 30, 2022

Codecov Report

Merging #457 (145daab) into main (0af4a82) will decrease coverage by 0.29%.
The diff coverage is 6.81%.

@@            Coverage Diff             @@
##             main     #457      +/-   ##
==========================================
- Coverage   32.40%   32.10%   -0.30%     
==========================================
  Files          25       25              
  Lines        1290     1305      +15     
==========================================
+ Hits          418      419       +1     
- Misses        860      874      +14     
  Partials       12       12              
Impacted Files Coverage Δ
cmd/notation/list.go 23.28% <0.00%> (ø)
cmd/notation/login.go 42.68% <0.00%> (ø)
cmd/notation/manifest.go 0.00% <0.00%> (ø)
cmd/notation/registry.go 0.00% <0.00%> (ø)
cmd/notation/sign.go 43.18% <14.28%> (-1.53%) ⬇️
cmd/notation/verify.go 29.03% <18.18%> (+1.37%) ⬆️

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

cmd/notation/sign.go Show resolved Hide resolved
cmd/notation/sign.go Outdated Show resolved Hide resolved
internal/cmd/options.go Outdated Show resolved Hide resolved
cmd/notation/verify.go Outdated Show resolved Hide resolved
@JeyJeyGao JeyJeyGao force-pushed the feat/add_debug branch 2 times, most recently from 30a9b05 to 92625e9 Compare December 1, 2022 08:16
internal/trace/context.go Outdated Show resolved Hide resolved
internal/ioutil/print.go Outdated Show resolved Hide resolved
cmd/notation/registry.go Outdated Show resolved Hide resolved
@JeyJeyGao JeyJeyGao changed the title feat: add http request/response debug log feat: add --debug & --verbose flag & http request/response debug log Dec 2, 2022
@JeyJeyGao JeyJeyGao changed the title feat: add --debug & --verbose flag & http request/response debug log feat: add --debug & --verbose flags & http request/response debug log Dec 2, 2022
internal/cmd/options.go Show resolved Hide resolved
cmd/notation/registry.go Outdated Show resolved Hide resolved
Signed-off-by: Junjie Gao <[email protected]>
Signed-off-by: Junjie Gao <[email protected]>
Signed-off-by: Junjie Gao <[email protected]>
Signed-off-by: Junjie Gao <[email protected]>
Signed-off-by: Junjie Gao <[email protected]>
Signed-off-by: Junjie Gao <[email protected]>
cmd/notation/verify.go Outdated Show resolved Hide resolved
cmd/notation/verify.go Outdated Show resolved Hide resolved
cmd/notation/verify.go Outdated Show resolved Hide resolved
cmd/notation/sign.go Outdated Show resolved Hide resolved
Copy link
Contributor

@patrickzheng200 patrickzheng200 left a comment

Choose a reason for hiding this comment

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

LGTM

internal/trace/transport.go Fixed Show fixed Hide fixed
internal/trace/transport.go Outdated Show resolved Hide resolved
internal/trace/context.go Outdated Show resolved Hide resolved
internal/trace/transport.go Outdated Show resolved Hide resolved
internal/trace/transport.go Outdated Show resolved Hide resolved
cmd/notation/registry.go Outdated Show resolved Hide resolved
cmd/notation/registry.go Outdated Show resolved Hide resolved
@JeyJeyGao JeyJeyGao force-pushed the feat/add_debug branch 2 times, most recently from f8c7583 to d696d55 Compare December 5, 2022 02:28
Signed-off-by: Junjie Gao <[email protected]>
cmd/notation/registry.go Outdated Show resolved Hide resolved
cmd/notation/registry.go Outdated Show resolved Hide resolved
cmd/notation/registry.go Outdated Show resolved Hide resolved
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

cmd/notation/registry.go Outdated Show resolved Hide resolved
internal/cmd/options.go Outdated Show resolved Hide resolved
internal/trace/context.go Outdated Show resolved Hide resolved
Signed-off-by: Junjie Gao <[email protected]>
Copy link
Contributor

@patrickzheng200 patrickzheng200 left a comment

Choose a reason for hiding this comment

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

LGTM

Signed-off-by: Junjie Gao <[email protected]>
Signed-off-by: Junjie Gao <[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

@shizhMSFT shizhMSFT merged commit e6b2e8c into notaryproject:main Dec 5, 2022
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.

8 participants