Skip to content

Add script to generate summary page for CI#2323

Open
yuandrew wants to merge 9 commits into
temporalio:mainfrom
yuandrew:ci-7-30-day-summary
Open

Add script to generate summary page for CI#2323
yuandrew wants to merge 9 commits into
temporalio:mainfrom
yuandrew:ci-7-30-day-summary

Conversation

@yuandrew
Copy link
Copy Markdown
Contributor

@yuandrew yuandrew commented May 5, 2026

What was changed

Added logic to show a historic summary of CI runs on main and failure rates for 7 and 30 day windows.

Future PR can be made to make things smarter to track at the specific Go test level

Why?

Help monitor test failures/flakes on main

Checklist

  1. Closes

  2. How was this tested:
    This only runs on main, but I temporarily allowed it to run on PRs to show behavior for testing.
    https://github.com/temporalio/sdk-go/actions/runs/25395620361?pr=2323

image image
  1. Any docs updates needed?

Note

Medium Risk
Adds a new GitHub Actions job that calls the GitHub API to aggregate 30-day workflow/job data and write it to the run summary; failures or API/rate-limit issues could affect CI signal and timing.

Overview
Adds a new CI History Summary job to ci.yml (runs on push after all test jobs) that writes a markdown report into GITHUB_STEP_SUMMARY.

Introduces a Go tool (.github/tools/ci-history-summary) that queries GitHub Actions for the last 30 days of completed runs for the workflow/branch, aggregates per-job 7d/30d run+failure counts and pass rates, and lists recent failures (grouped/normalized and capped). Includes basic unit tests for job-collapsing and failure rendering/limits.

Reviewed by Cursor Bugbot for commit f24d7c0. Bugbot is set up for automated code reviews on this repo. Configure here.

@yuandrew yuandrew marked this pull request as ready for review May 5, 2026 19:01
@yuandrew yuandrew requested a review from a team as a code owner May 5, 2026 19:01
Comment thread .github/scripts/ci-history-summary.sh Outdated
Comment thread .github/scripts/ci-history-summary.sh Outdated
Copy link
Copy Markdown
Member

@Sushisource Sushisource left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I love this idea but maybe let's not do a giant bash script lol.

Also let's get in touch with @stephanos (you should loop in @THardy98 too) - I think he's done a lot of stuff like this already we can probably re-use.

Copy link
Copy Markdown

@cursor cursor Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

Reviewed by Cursor Bugbot for commit b6b7ce7. Configure here.

Comment thread .github/tools/ci-history-summary/main.go
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants