Build a deterministic CI triage list

Filter noisy build records, sort the survivors by severity, and format stable output for reviewers.

SwiftCollections

Practice

A CI dashboard should highlight builds that are both slow and failing, but retries and feature-branch builds are too noisy for the default queue.

Print a deterministic triage list for main-branch builds that are not retries, have failed tests, and took at least 300 seconds. Sort the highest-risk rows first.

swift 5.2

Edit the starter code, then Run to compile it and check your answer. Runs Swift 5.2 on the server (Linux); UIKit, SwiftUI, and long-running async are not supported.