Don't count test retries as extra shards in CI metrics (#3031)

When a test is retried after a flaky failure, the metrics counted each
retry as another shard. For example, a test with 2 shards and one retry
was recorded as having 3 shards.

Now each shard is counted once, no matter how many times it was retried.
2 files changed