ganncamp
(G Ann Campbell)
November 17, 2025, 2:59pm
2
Hi,
Welcome to the community!
aukcloudops:
During the feature branch analysis, coverage was 80.3%, but after merging into the master branch, it dropped to 79.9%, causing the quality gate to fail. Could you explain why this discrepancy occurs on the master branch?
This is likely related to what I call the “fudge factor.” More here:
Hi,
Thanks for the screenshots!
It’s coverage you’re expecting to fail the Quality Gate on this PR. The reason it’s not is there in that tile:
[Selection_1370]
We long-ago implemented what I call a fudge factor: conditions on coverage and duplications on New Code aren’t enforced if there are fewer than 20 lines changed. Why? Because in our own testing, we found ourselves in a diminishing returns situation many times, trying to get 80% coverage on e.g. 5 lines when some of them weren’t covera…
I suspect that before merge, your main branch had <20 new lines with low coverage. The new merge bumped that over the fudge factor threshold so the Quality Gate condition was evaluated for the first time.
HTH,
Ann