Skip to content

Report coverage to Coveralls from the v2 workflow only and cover the Telegram GetUpdates error path - #351

Merged
umputun merged 3 commits into
masterfrom
coveralls-v2-only
Nov 28, 2026
Merged

umputun merged 3 commits into
masterfrom
coveralls-v2-only

Conversation

@umputun

@umputun umputun commented Nov 28, 2026

Copy link
Copy Markdown
Member

when both workflows ran, ci.yml and ci-v2.yml uploaded separate v1 and v2 profiles to the same Coveralls repo, so a PR could be compared with a master build for the other module. #350 showed -0.2% while its v1 coverage went up.

  • ci.yml keeps its coverage profile but no longer uploads it, and drops the job-level permissions block whose statuses: write only goveralls used. Coverage is reported from the v2 workflow only
  • coverage of the GetUpdates error path in the Telegram Run poll loop depended on poll timing in the confirmed-request test, so the same commit reported different coverage from run to run. A new test, in v1 and v2, uses a mock whose GetUpdates always returns an error and checks that polling continues
  • two Telegram defects the review of this branch surfaced, both older than it, go to docs/backlog/: Run keeps its running mark after a BotInfo error, and the test setup can leave Run running when its init wait times out

When both workflows ran, they uploaded separate v1 and v2 profiles to
the same Coveralls repo. A PR could then be compared with a master
build for the other module: #350 showed -0.2% while its v1 coverage went
up. The v1 workflow now keeps its coverage profile but no longer
uploads it, and drops the statuses permission only goveralls used.
Coverage of the GetUpdates error path depended on poll timing in the
confirmed-request test, so the same commit reported different coverage
from run to run. A test with a GetUpdates that always fails now takes
the log-and-continue branch of the Run poll loop on every run and checks
that polling goes on after the error.
Run keeps its running mark after a BotInfo error, which blocks a later
ProcessUpdate, and an init timeout in setupHandler skips cancel and
join, which can leave Run running. Both surfaced in the review of this
branch and predate it.
@coveralls

Copy link
Copy Markdown

Coverage Report for CI Build 46102216447

Coverage increased (+0.3%) to 88.93%

Details

  • Coverage increased (+0.3%) from the base build.
  • Patch coverage: No coverable lines changed in this PR.
  • No coverage regressions found.

Uncovered Changes

No uncovered changes found.

Coverage Regressions

No coverage regressions found.


Coverage Stats

Coverage Status
Relevant Lines: 4309
Covered Lines: 3832
Line Coverage: 88.93%
Coverage Strength: 21.62 hits per line

💛 - Coveralls

@umputun
umputun merged commit f79f655 into master Nov 28, 2026
9 checks passed
@umputun
umputun deleted the coveralls-v2-only branch November 28, 2026 03:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants