# Find First Pipeline where Job Started Failing

**URL:** <https://discuss.circleci.com/t/find-first-pipeline-where-job-started-failing/44435>\
**Category:** Build Environment\
**Created:** [June 15, 2022, 12:13pm UTC](https://discuss.circleci.com/t/find-first-pipeline-where-job-started-failing/44435 "2022-06-15T12:13:55Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![chrismerck](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/chrismerck/32/30392_2.png) [@chrismerck](https://discuss.circleci.com/u/chrismerck)\
**Post date:** [June 15, 2022, 12:13pm UTC](https://discuss.circleci.com/t/find-first-pipeline-where-job-started-failing/44435/1 "2022-06-15T12:13:55Z")

</div>

Most of the time we keep all our tests passing. But sometimes, things get messy in development, and our trunk branch has broken tests for a while.

With the current CircleCI UI, it is actually quite challenging to manually bisect to find the first pipeline (commit to trunk) where a particular job (test) started failing. One needs to keep a tab open with all the pipeline history for that branch, open new tabs into the workflows, and then check the jobs.

Would be amazing to be able to get a longitudinal view of a particular job’s pass/fail status along the branch. Then the first failing commit would just jump out at me.

I tried to get this via the API v2, but I got stuck after obtaining the workflow. I do not see any way on the API to get all jobs for a specific workflow so that I can drill down and see job success/failure. There is some statistics in the insights API, but I don’t really get a time-series, just some metrics with total failed runs etc.

Any tips on finding that first PR which broke one of our many test jobs?

---

<div class="post-metadata">

**Author:** ![rit1010](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/rit1010/32/34738_2.png) [@rit1010](https://discuss.circleci.com/u/rit1010)\
**Post date:** [June 15, 2022, 1:55pm UTC](https://discuss.circleci.com/t/find-first-pipeline-where-job-started-failing/44435/2 "2022-06-15T13:55:48Z")

</div>

I’m nowhere near using the API to that level but how about

Pipeline / get a list of pipelines  
Pipeline / get a pipeline’s workflows

Workflow / get a workflow’s jobs

Job (preview) / get job details

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/circleci/original/3X/5/1/511608acda8e85906e15909b57bd0a46c1dbe291.png) [@system](https://discuss.circleci.com/u/system)\
**Post date:** [June 25, 2022, 1:56pm UTC](https://discuss.circleci.com/t/find-first-pipeline-where-job-started-failing/44435/3 "2022-06-25T13:56:50Z")

</div>

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.
