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

jcronenberg / agama / 9446148849 / 3
63%
master: 63%

Build:
DEFAULT BRANCH: master
Ran 10 Jun 2024 09:48AM UTC
Files 358
Run time 9s
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

10 Jun 2024 07:42AM UTC coverage: 86.385%. First build
9446148849.3

push

github

web-flow
fix(CI): Fetch all history (#1296)

## Problem

- The packages in the
[Staging](https://download.opensuse.org/repositories/systemsmanagement:/Agama:/Staging/openSUSE_Tumbleweed/x86_64/)
project have RPM versions like `1717740471.88237f7b`, e.g. Unix time
stamp + short commit SHA
- It should be something like `8+192`, i.e. the latest version tag +
number of commits since then
- The problem is that the cloned Git repository in CI does not contain
any tags

## Solution

- We need to find the latest version tag in the history. By default the
action/checkout uses "--depth 1" parameter which fetches only a single
commit without history. I guess this problem was introduces by upgrading
`actions/checkout` to version 4.
- The fix is to checkout the complete history

## Notes

- I found a [solution](https://stackoverflow.com/a/74389910) which
allows to fetch history only up to a specified tag, this decreases the
amount of data to download as it does not fetch the complete history.
- However, finding the latest tag on the server and the downloading the
content using several commands has a big overhead. Currently downloading
the whole history is faster than this optimized process. It would make
sense only on a really slow internet connection. With any decent
connection the full clone is faster.
- But I guess that at some point in the future, when the Git history
grows a lot, this approach will be faster and more efficient

10634 of 12310 relevant lines covered (86.39%)

23.15 hits per line

Source Files on job service - 9446148849.3
  • Tree
  • List 0
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 9446148849
  • 4e36bfd1 on github
  • Prev Job for on master (#9109430577.)
  • Next Job for on master (#9446148839.)
  • 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