Ray's Knowledge Base
Unlock

Check a CI change against real run data, and find all likely failures before the first rerun

PreferenceVerified 30 Sep 2026Holds anywhere
Preference. A rule, why it holds, and how to apply it.

Rule#

Before you decide a CI change, read real run data: gh run view job and step timings and cache hit rates. Find the whole set of likely CI failures up front. Do not find them one by one with reruns. Investigate before you edit, and commit only when the user says so. Keep the Python-version coverage of the matrix.

Why#

The user is annoyed by CI rerun waste. Building only cp312 on PRs was rejected because cp39 would go untested.

How to apply#

Pull timings and cache numbers with gh run view. List the checks the change can break (renamed checks, path filters, cache size) before the push. Do not cut a Python version to save time.

Also found by searching

  • gh run view --log shows cache miss and long wheel build steps, should I drop cp39 from the PR matrix to speed up CI
  • I keep pushing CI fixes one at a time and rerunning, each run fails on a different thing
  • how do I plan a CI workflow change so I catch all likely failures before the first rerun
  • CI is slow and flaky, how do I decide what to change, gh run view timings and cache hit rate
  • user is annoyed by repeated CI reruns after my workflow edit, how should I prepare a CI change
  • gh run view --json jobs step timings cache hit check before editing workflow