Diagnose a failing CI pipeline
Find why a build or pipeline fails in CI but not locally, and get the exact change to fix it.
Systematically narrow down why a test or bug only fails sometimes, with experiments to prove the cause.
I have an intermittent failure in {{language}} and need a systematic way to pin it down.
What fails and how often: {{frequency}}
Where it fails (CI only, locally, specific machines): {{where}}
Failure output from a failing run:
{{failure}}
Test or code involved:
{{code}}
What changed recently, or other clues: {{clues}}
Please:
1. List the most likely categories of cause for this specific situation, ranked, from this set: shared state between tests, ordering dependence, timing and race conditions, unawaited async work, real clocks and time zones, randomness, resource limits, environment differences, and external services. For each, say what in my information points to it.
2. For the top three, give an experiment that would reproduce or rule it out. Be concrete: a command, a loop to run the test 200 times, a flag to randomize or fix order, a log line or a delay injected to widen a race window.
3. Explain how to tell which result means what, so I can read the experiment outcomes.
4. Once the cause is found, outline the right kind of fix for each category. Warn me against the tempting wrong fixes such as sleeps, retries or increased timeouts.
5. Suggest instrumentation to leave in place so a future occurrence leaves a useful trail.Ranking cause categories against your clues, then pairing each with an experiment, turns guesswork into a process. The warning against sleeps and retries steers toward real fixes.
Licensed CC0 (public domain) Version 1 · history
Find why a build or pipeline fails in CI but not locally, and get the exact change to fix it.
Describe what you want to match and get a commented regex with matching and non-matching test cases.
Generate a well-organized test suite covering happy paths, edge cases and failure modes for code you paste in.
Turn an error message and stack trace into ranked root-cause hypotheses, quick checks to confirm each, and a fix.
Turn vague customer descriptions into a structured bug report with severity, reproduction steps, likely area and missing information.
Draft a clear, tight system prompt that tells an AI coding assistant how to work in your repository.
Comments (0)
Sign in to join the discussion.
No comments yet. Be the first to share how it worked.