Repository navigation
Report every missing package in validate-cks-node - #14756
bhouse-nexthop wants to merge 1 commit into
Conversation
- Debian/Ubuntu branch appended with `+="$package"`, which glues the
name onto element 0 instead of adding an element.
- Result: count always 1, names printed run together
(e.g. "curlgnupg-agent"), so the log does not say what is missing.
- Use `+=("$package")` so each missing package is its own element.
Signed-off-by: Brad House <bhouse@nexthop.ai>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## 4.22 #14756 +/- ##
============================================
- Coverage 18.32% 18.32% -0.01%
- Complexity 16644 16645 +1
============================================
Files 5939 5939
Lines 537787 537787
Branches 65932 65932
============================================
- Hits 98544 98536 -8
- Misses 428033 428041 +8
Partials 11210 11210
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
Tested on a KVM lab running a main (24.0) build that includes this change. The node is a worker of a CKS cluster on Kubernetes 1.34.7 (Ubuntu-based CKS node). The PR targets 4.22; the script is the same on both branches apart from this change and #14773. To make two packages count as missing, Result: 14 of 14 checks passed (gates included).
Not tested: an RPM-based node (that branch already appended correctly). |
Description
Fixes #14755
In
validate-cks-node, the Debian/Ubuntu branch appended withMISSING_PACKAGES+="$package", which joins every name onto element 0.+="$package"+=("$package")1curlgnupg-agent...curl gnupg-agent ...One-line change. The RPM branch already appends correctly.
Related open PRs #13714 and #13715 edit
REQUIRED_PACKAGESin the same file. This PR does not touch the list, and their hunk still applies cleanly on top of it.Types of changes
Bug Severity
How Has This Been Tested?
Ran lines 20-45 of the script in bash with
OS=Ubuntuanddpkgstubbed by a shell function:1+ names run together7+ names separated by spaces0/0Not in scope (pre-existing, noted for follow-up)
rpm -qa \| grep $packageis a substring match (curlmatcheslibcurl).dpkg -sexits 0 for a removed package that still has config files.