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

opt: sealer common values #2246

Merged
merged 1 commit into from
Jun 14, 2023
Merged

Conversation

kakaZhou719
Copy link
Member

@kakaZhou719 kakaZhou719 commented Jun 14, 2023

Describe what this PR does / why we need it

no logic changed, just remove some unused code to make code more clearly

Does this pull request fix one issue?

Describe how you did it

Describe how to verify it

Special notes for reviews

@codecov-commenter
Copy link

codecov-commenter commented Jun 14, 2023

Codecov Report

Patch coverage: 25.00% and project coverage change: -6.28 ⚠️

Comparison is base (9ebe3d7) 19.96% compared to head (093f75b) 13.68%.

❗ Current head 093f75b differs from pull request most recent head b7994f4. Consider uploading reports for the commit b7994f4 to get more accurate results

❗ Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2246      +/-   ##
==========================================
- Coverage   19.96%   13.68%   -6.28%     
==========================================
  Files          98      260     +162     
  Lines        9323    22594   +13271     
==========================================
+ Hits         1861     3092    +1231     
- Misses       7207    19088   +11881     
- Partials      255      414     +159     
Flag Coverage Δ
e2e-tests 9.13% <ø> (?)
unit-tests 20.42% <25.00%> (+0.46%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
pkg/imageengine/buildah/load.go 0.00% <ø> (ø)
pkg/imageengine/buildah/save.go 0.00% <ø> (ø)
pkg/logger/file_hook.go 0.00% <0.00%> (ø)
utils/os/fs/filesystem.go 10.74% <0.00%> (ø)
pkg/runtime/utils.go 12.50% <100.00%> (ø)

... and 166 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@@ -29,7 +29,7 @@ import (

func NewFileHook(filePath string) (logrus.Hook, error) {
if filePath == "" {
filePath = common.DefaultLogDir
filePath = common.GetSealerWorkDir()
Copy link
Collaborator

Choose a reason for hiding this comment

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

the log dir will be changed here?

@@ -20,7 +20,7 @@ import (
)

type LogOptions struct {
// sealer log file path, default log directory is `/var/lib/sealer/log`
// sealer log file path, default log directory is `/$HOME/.sealer/sealer.log`
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think the file path should not be arbitrarily modified

@github-actions github-actions bot added the test label Jun 14, 2023
Signed-off-by: kakzhou719 <kakazhou719@163.com>
Copy link
Collaborator

@starnop starnop left a comment

Choose a reason for hiding this comment

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

LGTM

@starnop starnop merged commit 52f25f1 into sealerio:main Jun 14, 2023
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants