You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As part of working on some refactoring in octoDNS I ran into a situation where coverage when run in the GitHub actions environment was saying that 2 branches weren't covered in Python 3.8/9 and were in 3.10/3.11. I couldn't reproduce this locally with 3.9 on OSX, nor could I reproduce it on linux within Docker containers of various sorts.
GitHub Actions is uses ubuntu-latest with actions/setup-python@v2
To Reproduce
Python Version & Envs
Problem with 3.8 and 3.9 in GitHub Actions, worked in 3.10 and 3.11. I couldn't reproduce locally on OSX or in Docker containers. A co-contributor @viranch was able to, but I don't know the details of his env ATM.
I verified that python, pip, and all module versions were the same in both envs so it seems to be something deeper. Happy to help look at other details if you point me at what you want collected.
Coverage Version
coverage==7.3.0
If need I could work on trying to get coverage debug sys out of an actions run.
Module Versions
Search for "environment & versions" in the "CI Build" section's output:
🆒 was feeling like it was something of that sort. I guess when I flipped the order of the clauses causing both cases to be used explicitly it was enough to work around that.
I did a bit of searching around to see if I could find related issues, but I don't think I zeroed in on continue being part of it so didn't turn anything up.
Should this close as duplicate or stay open? Thanks.
Describe the bug
As part of working on some refactoring in octoDNS I ran into a situation where coverage when run in the GitHub actions environment was saying that 2 branches weren't covered in Python 3.8/9 and were in 3.10/3.11. I couldn't reproduce this locally with 3.9 on OSX, nor could I reproduce it on linux within Docker containers of various sorts.
GitHub Actions is uses
ubuntu-latest
withactions/setup-python@v2
To Reproduce
Python Version & Envs
Problem with 3.8 and 3.9 in GitHub Actions, worked in 3.10 and 3.11. I couldn't reproduce locally on OSX or in Docker containers. A co-contributor @viranch was able to, but I don't know the details of his env ATM.
I verified that python, pip, and all module versions were the same in both envs so it seems to be something deeper. Happy to help look at other details if you point me at what you want collected.
Coverage Version
coverage==7.3.0
If need I could work on trying to get
coverage debug sys
out of an actions run.Module Versions
Search for "environment & versions" in the "CI Build" section's output:
Problematic 3.9 - https://github.com/octodns/octodns/actions/runs/5895338935/job/15990899071
Working 3.10 - https://github.com/octodns/octodns/actions/runs/5895338935/job/15990899215
Problematic code
PR is octodns/octodns#1044
Screenshot of the html report saying a branch wasn't covered (test would have failed where that true):
SHA octodns/octodns@65096c0 exhibited the problem and I fixed it by switching the order of the clauses of the IFs in octodns/octodns@b0dff4f.
Commands to run locally
May or may not reproduce locally, but the commands to try would be:
If you can reproduce locally with 3.9, you can swap in python3.10 above and it should pass.
Expected behavior
Full coverage of the branches that matches across python versions.
The text was updated successfully, but these errors were encountered: