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

Tatsh / livecheck / 26270893129
100%

Build:
DEFAULT BRANCH: master
Ran 22 May 2026 05:51AM UTC
Jobs 5
Files 43
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

22 May 2026 05:49AM UTC coverage: 99.861% (-0.1%) from 100.0%
26270893129

push

github

Tatsh
main: defer GitHub branch lookup until ebuild is rewritten

`get_github_branch_for_commit()` was called as soon as a GitHub-release
`sha_sources` entry resolved a SHA, regardless of whether an ebuild
rewrite would actually happen. Each invocation hits the GitHub compare
API and iterates over multiple branch candidates, so livecheck runs
with `--auto-update` off (or no-op SHA bumps where `old_sha == top_hash`)
burned unnecessary rate budget per package.

Hoist `update_sha_too_source` and `github_releases_sha_source` to
function scope so the branch lookup can be performed at its sole
consumption point: inside the `settings.auto_update_flag` block,
immediately before `update_egit_branch`, guarded on
`old_sha != top_hash`. The settings-clone branch-removal still happens
unconditionally during `parse_url` so the release tag resolves on its
own ref, preserving the original fix's intent.

Update `test_do_main_sha_source_releases_ignore_existing_branch` to
assert the lookup is **not** called when no rewrite is applied (the
contract the new code enforces). Add
`test_do_main_sha_source_releases_resolves_branch_on_update`
(parametrised over a truthy and empty resolved branch) and
`test_do_main_sha_source_releases_skips_branch_when_sha_unchanged` to
cover the deferred-call paths.

Also rename a test string literal from `"oldsha"` to `"old_sha"` to
satisfy cspell, matching the suggestion already filed on the PR.

Related: https://github.com/Tatsh/livecheck/pull/476#discussion_r3269350836
Signed-off-by: Andrew Udvare <audvare@gmail.com>

575 of 575 branches covered (100.0%)

Branch coverage included in aggregate %.

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

5 existing lines in 2 files now uncovered.

3018 of 3023 relevant lines covered (99.83%)

4.99 hits per line

Coverage Regressions

Lines Coverage ∆ File
4
97.7
-2.3% livecheck/special/github.py
1
99.87
-0.13% livecheck/main.py
Jobs
ID Job ID Ran Files Coverage
1 26270893129.1 22 May 2026 05:50AM UTC 43
99.86
GitHub Action Run
2 26270893129.2 22 May 2026 05:51AM UTC 43
99.86
GitHub Action Run
3 26270893129.3 22 May 2026 05:51AM UTC 43
99.86
GitHub Action Run
4 26270893129.4 22 May 2026 05:51AM UTC 43
99.86
GitHub Action Run
5 26270893129.5 22 May 2026 05:51AM UTC 43
99.86
GitHub Action Run
Source Files on build 26270893129
  • Tree
  • List 43
  • Changed 2
  • Source Changed 2
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #26270893129
  • 7ecaa70a on github
  • Prev Build on master (#26190332847)
  • Next Build on master (#26271304527)
  • 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