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

Skip artifacts that don't have proper names #562

Merged
merged 3 commits into from
Feb 4, 2025

Conversation

jimmykarily
Copy link
Contributor

if len(versions) < 1 {
// skip badly named artifacts that may not have a software version
// https://github.com/kairos-io/kairos/issues/3167#issuecomment-2633282993
if len(versions) < 2 {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

some lines below, we assume there is versions[1] leading to:

panic: runtime error: index out of range [1] with length 1

when that's not the case.

Copy link

codecov bot commented Feb 4, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 52.55%. Comparing base (2b0428f) to head (febedd2).
Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #562      +/-   ##
==========================================
+ Coverage   52.50%   52.55%   +0.04%     
==========================================
  Files          19       19              
  Lines        1996     1998       +2     
==========================================
+ Hits         1048     1050       +2     
  Misses        818      818              
  Partials      130      130              

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

Signed-off-by: Dimitris Karakasilis <[email protected]>
Signed-off-by: Dimitris Karakasilis <[email protected]>
@@ -133,6 +133,7 @@
"sha256-5cc0764ac2e7893fbb1246967dcef6d53736fcc86c1c436b976c3aab26824368.sig",
"tumbleweed-core-arm64-rpi4-v2.4.2-rc1-img",
"leap-15.5-standard-amd64-generic-v2.4.2-rc1-k3sv1.26.9-k3s1",
"leap-15.5-standard-amd64-generic-v2.4.2-rc1",
Copy link
Contributor Author

Choose a reason for hiding this comment

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

this fails without the fix below

@jimmykarily jimmykarily merged commit 3aac7ad into main Feb 4, 2025
12 of 13 checks passed
@jimmykarily jimmykarily deleted the 3167-skip-bad-artifacts branch February 4, 2025 13:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants