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

Add a job to check zot config examples (and fix existing examples) #2322

Merged
merged 5 commits into from
Mar 21, 2024

Conversation

andaaron
Copy link
Contributor

Rebase and fix coverage issues in #2215.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Copy link

codecov bot commented Mar 15, 2024

Codecov Report

Attention: Patch coverage is 82.35294% with 3 lines in your changes are missing coverage. Please review.

Project coverage is 92.86%. Comparing base (28e9aab) to head (95cb5b4).

Files Patch % Lines
pkg/cli/server/root.go 82.35% 2 Missing and 1 partial ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2322   +/-   ##
=======================================
  Coverage   92.86%   92.86%           
=======================================
  Files         166      166           
  Lines       22022    22035   +13     
=======================================
+ Hits        20450    20463   +13     
  Misses        979      979           
  Partials      593      593           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@andaaron andaaron marked this pull request as ready for review March 15, 2024 20:46
onidoru and others added 5 commits March 20, 2024 06:17
(cherry picked from commit e7fdfa0)
Signed-off-by: Andrei Aaron <[email protected]>
Signed-off-by: onidoru <[email protected]>
Signed-off-by: Nikita Kotikov <[email protected]>
(cherry picked from commit cbc0f89)
Signed-off-by: Andrei Aaron <[email protected]>
Signed-off-by: onidoru <[email protected]>
Signed-off-by: Nikita Kotikov <[email protected]>
(cherry picked from commit b74366d)
Signed-off-by: Andrei Aaron <[email protected]>
Signed-off-by: onidoru <[email protected]>
Signed-off-by: Nikita Kotikov <[email protected]>
(cherry picked from commit 8a61bbc)
Signed-off-by: Andrei Aaron <[email protected]>
Signed-off-by: Andrei Aaron <[email protected]>
@rchincha
Copy link
Contributor

CI failures?

@andaaron
Copy link
Contributor Author

andaaron commented Mar 20, 2024

CI failures?

Do you want me to signoff the cherry-picked commit with the original author's email?
I was thinking we squash and merge anyway from GH UI.

WRT to the coverage I could fix that by using viper.UnmarshalExact and removing some checks which would never be hit in that case. I just thought this form of the code is more easy to read.

@rchincha
Copy link
Contributor

DCO check is complaining about:
ab82db4

Copy link
Contributor

@rchincha rchincha left a comment

Choose a reason for hiding this comment

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

lgtm

@rchincha rchincha merged commit 8b4abc6 into project-zot:main Mar 21, 2024
33 of 35 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants