Weekly
Get a weekly build health report
Every Monday you see each workflow's success rate and typical duration for the past week.
- Runs
- Weekly
- Apps
- CircleCI
- AI
- Not needed
- Access
- read
Send this to your assistant
Create a ClickRuntime automation: every Monday at 9am, email me the success rate and median duration of each workflow in my CircleCI projects for the last 7 days.
First time? Adding ClickRuntime to your assistant takes about two minutes.
Why use it
Why teams use this automation
Engineering leads often argue about build health from memory. One person says CI has been slow lately, another says it is fine, and the evidence lives in per-project charts that nobody opens on a regular schedule. Without a steady number, a creeping rise in failures or build time goes unnoticed until developers start complaining.
Once a week, this fetches CircleCI's insights for each project, which include the success rate and the duration of each workflow, and emails the results as one report. It turns a vague feeling about CI into the same set of figures every Monday.
It suits teams with several services, where it is easy to ignore the one pipeline that has been slowly getting worse. The numbers come straight from CircleCI's insights, so they reflect the same pipelines your developers wait on every day, rather than a sample or an estimate.
What you get out of it
Replace opinions with the same numbers weekly
With the same success rates and durations arriving each week, a retro conversation about CI starts from data. People stop arguing about whether builds are slow and decide what to fix first.
Notice slow drift before it hurts
A workflow that grows from 8 to 14 minutes over two months never triggers an alert. A weekly figure makes the trend visible while there is still time to cache dependencies or split a job.
See which service is the weak link
Reporting per project shows where failures concentrate. If one repository has a 70% success rate while the rest sit above 95%, you know where to invest engineering time. That focus is worth more than a general performance push, since you fix the pipeline that hurts most and leave the others alone.
Show the cost of flaky infrastructure
Developer time lost to reruns is hard to prove. A lower success rate printed next to the workflow name gives you something concrete to take to a planning meeting. It also helps justify paying for larger resource classes in the few places where speed genuinely matters to the team.
Keep leadership informed with no extra effort
A tidy weekly email can be forwarded as is to a CTO or director who wants a pulse on delivery speed. Nobody has to build a slide or open a dashboard. It takes the guesswork out of status updates, because the same email that you read can be pasted into a report.
How it works
What happens, step by step
Every Monday, ClickRuntime pulls CircleCI's build insights for each of your projects.
For every workflow it reads last week's success rate, typical run time and number of runs.
You get one email grouped by project, like "build-and-test: 94% success, median 8.2 min, 131 runs".
Before it runs live
- Connect CircleCI
What you get
Build your own
Need it to work differently?
Your own rules
Conditions, thresholds, filters and exceptions, written the way you'd explain them to a colleague.
Any number of apps
One automation can read from one app and update several others. Over 248 apps are ready, and anything with an API works too.
AI where it helps
Summaries, classification, extraction and drafts use ClickRuntime's built-in AI, with no extra key.
On a schedule or on each event
Runs as often as every 5 minutes, or the moment an app sends an event, and keeps track of what it already handled.
Changes you can ask for
- Run it at a different time, more or less often, or only on weekdays
- Add an AI step, for example to summarize, sort or draft a reply
- Add another app, for example also send it to Slack
- Combine it with other CircleCI steps into one automation
Under the hood
The code that runs this automation
from clickruntime import on_trigger, credentials, http, notify
PROJECTS = ["gh/acme/web-app", "gh/acme/api"]
@on_trigger
def run(event):
headers = {"Circle-Token": credentials.secret("CIRCLECI_TOKEN")}
lines = []
for slug in PROJECTS:
resp = http.get(f"https://circleci.com/api/v2/insights/{slug}/workflows",
params={"reporting-window": "last-7-days"}, headers=headers)
resp.raise_for_status()
lines.append(slug)
for wf in resp.json()["items"]:
m = wf["metrics"]
lines.append(f" {wf['name']}: {m['success_rate'] * 100:.0f}% success, "
f"median {m['duration_metrics']['median'] / 60:.1f} min, {m['total_runs']} runs")
notify.email_me("CircleCI build health, last 7 days", "\n".join(lines))
return {"projects": len(PROJECTS)}FAQ
Common questions
Which time window does the report cover?
Is it per project or across the whole organization?
Does it include test results?
What permissions does it need?
Does it need AI?
How many runs does it use?
Can I change how it works?
Related
You might also like
Get the week's flaky tests on Friday
Each Friday you get the tests CircleCI has marked as flaky, so someone can fix them.
See how it worksSee yesterday's failures on main each morning
One email each morning lists the workflows on main that failed the day before, with links, and needs no webhook.
See how it worksFind the jobs that got slower this week
Each week you see which jobs in a workflow got slower or less reliable compared with the week before.
See how it worksKeep exploring
Set up “Get a weekly build health report” from your assistant
Copy the prompt above, or connect your assistant first. Free plan, no credit card.