• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

yast / yast-packager / 16317721241
37%
master: 37%

Build:
Build:
LAST BUILD BRANCH: ruby4_fix
DEFAULT BRANCH: master
Ran 16 Jul 2025 11:03AM UTC
Jobs 1
Files 90
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

16 Jul 2025 11:03AM UTC coverage: 37.466% (+0.02%) from 37.444%
16317721241

push

github

web-flow
Merge pull request #660 from yast/solv-compatibility-error

## Problem

When selecting SLE-HA as add-on product, either during installation or via "yast2 add-on", an Internal Error pops up as soon as one clicks that product.

It is a combination of two factors:
1. the product description (coming from the Description field of `sle-ha-release.rpm`) is in English but it contains a non-ASCII character (a curly apostrophe)
2. YaST retrieves that string via `ruby-solv.rpm`, a Swig binding of `libsolv`, which returns ALL strings marked with `Encoding::ASCII_8BIT`, which means `BINARY`

When trying to combine two strings, one `UTF_8` and the other `ASCII_8BIT`, `Encoding::CompatibilityError` is raised, *unless* one of the strings happens to contain pure ASCII, which is why htis problem went undetected for so long.

- https://bugzilla.suse.com/show_bug.cgi?id=1245555 (L3)
- https://trello.com/c/cRMoDGxs

## Solution

For the solvable fields likely to contain non-ASCII text, Summary and Description, call `String#force_encoding` on the value retrieved from libsolv

## Testing

Tested manually

1. running as root "yast2 add-on" on my Leap 15.6
2. Add... Url: http://download.suse.de/install/SLP/SLE-15-SP7-Full-PublicRC-202504/x86_64/DVD1/ ... Next
3. Click the "SUSE Linux ... High Availability ..." line
4. the Internal Error happens (or doesn't, with the fix)


## Screenshots

No

4 of 4 new or added lines in 1 file covered. (100.0%)

4346 of 11600 relevant lines covered (37.47%)

23.66 hits per line

Jobs
ID Job ID Ran Files Coverage
1 16317721241.1 16 Jul 2025 11:03AM UTC 90
37.47
GitHub Action Run
Source Files on build 16317721241
  • Tree
  • List 90
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • d677ef30 on github
  • Prev Build on SLE-15-SP6 (#8267851543)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc