-
Notifications
You must be signed in to change notification settings - Fork 69
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: Added check for binaries to skip "installToolsCmd" #670
Conversation
…es are present Signed-off-by: Akash Singh <[email protected]>
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #670 +/- ##
==========================================
+ Coverage 32.51% 33.96% +1.45%
==========================================
Files 17 18 +1
Lines 1621 1534 -87
==========================================
- Hits 527 521 -6
+ Misses 1062 980 -82
- Partials 32 33 +1 ☔ View full report in Codecov by Sentry. |
@Akash-Singh04 is there a specific image we can test the changes with? Also its failing lint fix (you can run golangci-lint run) and the PR title is failing semantics check due to Feat vs feat. |
@@ -353,6 +372,7 @@ func (rm *rpmManager) probeRPMStatus(ctx context.Context, toolImage string) erro | |||
return nil | |||
} | |||
|
|||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit new line
toolsInstalled := toolingBase.Run(llb.Shlex(installToolsCmd), llb.WithProxy(utils.GetProxy())).Root() | ||
toolsApplied := rm.config.ImageState.File(llb.Copy(toolsInstalled, "/usr/sbin/busybox", "/usr/sbin/busybox")) | ||
toolList := []string{"dnf", "microdnf", "rpm", "yum"} | ||
missingTools := make([]string, 0) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the tools we want to check are busybox cpio dnf-utils? and if they are not already present, we want to be able to install them with microdnf,yum etc rather than just tdnf
Updated probeRPMStatus to check if binaries are present and only if not present to all installToolsCmd
Closes #652 #651