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

openSUSE / agama / 7251636875
72%

Build:
DEFAULT BRANCH: master
Ran 18 Dec 2023 05:30PM UTC
Jobs 3
Files 658
Run time 41s
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

18 Dec 2023 05:27PM UTC coverage: 74.743% (+0.02%) from 74.724%
7251636875

push

github

web-flow
Use YAML.safe_load_file instead of YAML.safe_load (#939)

## Problem

For some reason that I have not been able to find, I am facing a problem
when loading the products definition:

```
bundler: failed to load command: bin/agamactl (bin/agamactl)
/usr/lib64/ruby/3.2.0/psych/parser.rb:62:in `_native_parse': (<unknown>): control characters are not allowed at line 1 column 1 (Psych::SyntaxError)
	from /usr/lib64/ruby/3.2.0/psych/parser.rb:62:in `parse'
	from /usr/lib64/ruby/3.2.0/psych.rb:455:in `parse_stream'
	from /usr/lib64/ruby/3.2.0/psych.rb:399:in `parse'
	from /usr/lib64/ruby/3.2.0/psych.rb:323:in `safe_load'
	from /home/suse/agama/service/lib/agama/product_reader.rb:63:in `load_file'
	from /home/suse/agama/service/lib/agama/product_reader.rb:50:in `block in load_products'
	from /home/suse/agama/service/lib/agama/product_reader.rb:48:in `each'
	from /home/suse/agama/service/lib/agama/product_reader.rb:48:in `each_with_object'
	from /home/suse/agama/service/lib/agama/product_reader.rb:48:in `load_products'
	from /home/suse/agama/service/lib/agama/config.rb:102:in `products'
	from /home/suse/agama/service/lib/agama/config.rb:83:in `data'
	from /home/suse/agama/service/lib/agama/config.rb:139:in `merge'
	from /home/suse/agama/service/lib/agama/config_reader.rb:89:in `block in config'
	from /home/suse/agama/service/lib/agama/config_reader.rb:89:in `each'
	from /home/suse/agama/service/lib/agama/config_reader.rb:89:in `config'
	from /home/suse/agama/service/lib/agama/config.rb:43:in `load'
	from /home/suse/agama/service/lib/agama/dbus/service_runner.rb:70:in `config'
	from /home/suse/agama/service/lib/agama/dbus/service_runner.rb:82:in `build_service'
	from /home/suse/agama/service/lib/agama/dbus/service_runner.rb:50:in `run'
	from bin/agamactl:65:in `start_service'
	from bin/agamactl:107:in `<top (required)>'
```

It only happens when running Agama under a root session. Funny enough,
it did not happen when using `sudo`.


## Solution

Use `YAML.safe_l... (continued)

1413 of 2163 branches covered (0.0%)

Branch coverage included in aggregate %.

0 of 1 new or added line in 1 file covered. (0.0%)

4 existing lines in 2 files now uncovered.

15970 of 21094 relevant lines covered (75.71%)

21.23 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
0.0
0.0% service/lib/agama/product_reader.rb

Uncovered Existing Lines

Lines Coverage ∆ File
1
0.0
0.0% service/lib/agama/product_reader.rb
3
0.0
0.0% service/service/lib/agama/product_reader.rb
Subprojects
ID Flag name Job ID Ran Files Coverage
1 service 7251636875.1 18 Dec 2023 05:30PM UTC 304
84.93
GitHub Action Run
1 web 7247240764.1 18 Dec 2023 11:13AM UTC 293
73.86
GitHub Action Run
1 rust 7246554818.1 18 Dec 2023 10:12AM UTC 61
40.45
GitHub Action Run
Source Files on build 7251636875
  • Tree
  • List 658
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #7251636875
  • c14ce99d on github
  • Prev Build on master (#7247240764)
  • Next Build on master (#7264446246)
  • Delete
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