Repository navigation
Report coverage to Coveralls from the v2 workflow only and cover the Telegram GetUpdates error path - #351
Merged
Conversation
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.
Coverage Report for CI Build 46102216447Coverage increased (+0.3%) to 88.93%Details
Uncovered ChangesNo uncovered changes found. Coverage RegressionsNo coverage regressions found. Coverage Stats
💛 - Coveralls |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
when both workflows ran,
ci.ymlandci-v2.ymluploaded 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.ymlkeeps its coverage profile but no longer uploads it, and drops the job-level permissions block whosestatuses: writeonly goveralls used. Coverage is reported from the v2 workflow onlyRunpoll 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 continuesdocs/backlog/:Runkeeps its running mark after a BotInfo error, and the test setup can leaveRunrunning when its init wait times out