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

raffis / renovate-metrics / 24661496062
0%

Build:
DEFAULT BRANCH: main
Ran 20 Apr 2026 10:27AM UTC
Jobs 1
Files 5
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

20 Apr 2026 10:27AM UTC coverage: 0.0%. Remained the same
24661496062

push

github

web-flow
fix: prevent panic because of duplicate metrics (#148)

When the same dependency is referenced twice in the same file, and renovate is configured to create separate PRs for the two references,
renovate-metrics will have two packageUpdate structs which are different, but emit the same metric.

This will lead to a panic:
> panic: [from Gatherer #1] collected metric "renovate_dependency_update" { … } was collected before with the same name and label values

With this change the branch name is copied to a local variable for later usage and set to an empty string for the comparison happening on
map access. Thus the existing metric will be found and increased.

Signed-off-by: Pascal Hofmann <mail@pascalhofmann.de>

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

0 of 246 relevant lines covered (0.0%)

0.0 hits per line

Uncovered Changes

Lines Coverage ∆ File
7
0.0
0.0% pkg/parser/repository.go
Jobs
ID Job ID Ran Files Coverage
1 24661496062.1 20 Apr 2026 10:27AM UTC 5
0.0
GitHub Action Run
Source Files on build 24661496062
  • Tree
  • List 5
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 57d1fca9 on github
  • Prev Build on main (#24307006172)
  • Next Build on main (#24667777943)
  • 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