When GROUP BY names two columns, HAVING tests each pair separately. A failure in staging and one in production contribute to two different groups.
Return environment, status and run_count for pairs observed at least twice. Sort alphabetically by environment and then status.