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: azure linux 3 support #815

Merged
merged 26 commits into from
Oct 24, 2024
Merged

Conversation

sozercan
Copy link
Member

@sozercan sozercan commented Oct 23, 2024

Describe the changes in this pull request using active verbs such as Add, Remove, Replace ...

Add Azure Linux 3 support and tests

Closes #697

Signed-off-by: Sertac Ozercan <[email protected]>
Copy link

codecov bot commented Oct 23, 2024

Codecov Report

Attention: Patch coverage is 87.75510% with 6 lines in your changes missing coverage. Please review.

Project coverage is 46.98%. Comparing base (6dd5b5e) to head (76b335a).
Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
pkg/pkgmgr/dpkg.go 25.00% 3 Missing ⚠️
pkg/pkgmgr/rpm.go 88.88% 2 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #815      +/-   ##
==========================================
+ Coverage   46.42%   46.98%   +0.55%     
==========================================
  Files          18       18              
  Lines        2182     2205      +23     
==========================================
+ Hits         1013     1036      +23     
  Misses       1111     1111              
  Partials       58       58              

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

@sozercan sozercan marked this pull request as draft October 23, 2024 20:36
Signed-off-by: Sertac Ozercan <[email protected]>
@sozercan sozercan changed the title test: add azure linux 3 tests feat: azure linux 3 support Oct 23, 2024
Signed-off-by: Sertac Ozercan <[email protected]>
Signed-off-by: Sertac Ozercan <[email protected]>
Signed-off-by: Sertac Ozercan <[email protected]>
Signed-off-by: Sertac Ozercan <[email protected]>
Signed-off-by: Sertac Ozercan <[email protected]>
Signed-off-by: Sertac Ozercan <[email protected]>
Signed-off-by: Sertac Ozercan <[email protected]>
Signed-off-by: Sertac Ozercan <[email protected]>
Signed-off-by: Sertac Ozercan <[email protected]>
Signed-off-by: Sertac Ozercan <[email protected]>
Signed-off-by: Sertac Ozercan <[email protected]>
Signed-off-by: Sertac Ozercan <[email protected]>
Signed-off-by: Sertac Ozercan <[email protected]>
Signed-off-by: Sertac Ozercan <[email protected]>
@sozercan sozercan force-pushed the test-al3 branch 2 times, most recently from f8fbba4 to 41357ec Compare October 24, 2024 05:22
Signed-off-by: Sertac Ozercan <[email protected]>
Signed-off-by: Sertac Ozercan <[email protected]>
Signed-off-by: Sertac Ozercan <[email protected]>
Signed-off-by: Sertac Ozercan <[email protected]>
Signed-off-by: Sertac Ozercan <[email protected]>
Signed-off-by: Sertac Ozercan <[email protected]>
@sozercan sozercan marked this pull request as ready for review October 24, 2024 06:24
pkg/pkgmgr/rpm.go Show resolved Hide resolved
if !rm.checkForUpgrades(ctx, rm.rpmTools["dnf"], checkUpdateTemplate) {
case rm.rpmTools["tdnf"] != "" || rm.rpmTools["dnf"] != "":
dnfTooling := rm.rpmTools["tdnf"]
if dnfTooling == "" {
Copy link
Contributor

Choose a reason for hiding this comment

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

what is this check case for?

Copy link
Member Author

Choose a reason for hiding this comment

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

existing code didn't account for tdnf. AL3 doesn't have dnf or yum, so it was failing to find the proper tooling. in this case, we are checking if tdnf is present. if not, falling back to dnf.

Signed-off-by: Sertac Ozercan <[email protected]>
Copy link
Contributor

@ashnamehrotra ashnamehrotra left a comment

Choose a reason for hiding this comment

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

LGTM

@ashnamehrotra ashnamehrotra merged commit cdee476 into project-copacetic:main Oct 24, 2024
25 checks passed
@sozercan sozercan deleted the test-al3 branch October 24, 2024 18:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

[REQ] add tests for azure linux 3
2 participants