Badge shows build error when all tests pass except for the allowed failures

Here is the build in question:


The latest build on the default branch (master) is, which has indeed errored. So the badge status is correct.

The “current” shows, but it’s a PR build and it has no bearing on the badge.