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

jcronenberg / agama / 9446148849
63%

Build:
DEFAULT BRANCH: master
Ran 10 Jun 2024 09:48AM UTC
Jobs 3
Files 769
Run time 2min
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: 70.171% (+0.7%) from 69.487%
9446148849

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

1766 of 2613 branches covered (67.59%)

Branch coverage included in aggregate %.

18498 of 26265 relevant lines covered (70.43%)

30.47 hits per line

Jobs
ID Job ID Ran Files Coverage
3 service - 9446148849.3 10 Jun 2024 09:48AM UTC 0
86.39
GitHub Action Run
3 web - 8602304692.3 08 Apr 2024 03:02PM UTC 0
74.64
GitHub Action Run
3 rust - 9109430577.3 16 May 2024 09:11AM UTC 0
22.97
GitHub Action Run
Source Files on build 9446148849
Detailed source file information is not available for this build.
  • Back to Repo
  • Github Actions Build #9446148849
  • 4e36bfd1 on github
  • Prev Build on master (#9109430577)
  • Next Build 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