Skip to content

Add timing summaries to long-running validation workflows - #53492

Merged
pelikhan merged 2 commits into
mainfrom
copilot/investigate-cgo-cwi-license-compliance-durations
Aug 17, 2026
Merged

pelikhan merged 2 commits into
mainfrom
copilot/investigate-cgo-cwi-license-compliance-durations

Conversation

Copilot AI commented Aug 17, 2026 •

Copy link
Copy Markdown
Contributor

CGO, CWI, and License Compliance Check have shown 75–94 minute outlier runtimes without enough step-level data to identify the slow path. This adds run-local timing visibility so future outliers show which job or step is responsible.

  • Workflow timing summaries

    • Added a summarize-timing job to CGO, CWI, and License Compliance Check.
    • Each summary runs after the workflow’s validation jobs and writes a job/step duration table to $GITHUB_STEP_SUMMARY.
  • Actions API instrumentation

    • Uses actions/github-script with read-only actions: read permissions.
    • Queries listJobsForWorkflowRun for the current run and formats durations from started_at / completed_at.
summarize-timing:
  name: Summarize workflow timing
  if: always()
  permissions:
    actions: read
  steps:
    - name: Summarize job and step durations
      uses: actions/github-script@...

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot AI changed the title [WIP] Investigate long runtimes in CGO, CWI, and License Compliance Check workflows Add timing summaries to long-running validation workflows Aug 17, 2026
Copilot AI requested a review from pelikhan August 17, 2026 21:36
@pelikhan
pelikhan marked this pull request as ready for review August 17, 2026 21:36
Copilot AI balanced review requested due to automatic review settings August 17, 2026 21:36
@pelikhan
pelikhan merged commit f4f83c2 into main Aug 17, 2026
1 check passed
@pelikhan
pelikhan deleted the copilot/investigate-cgo-cwi-license-compliance-durations branch August 17, 2026 21:36

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Adds post-run timing summaries to diagnose slow validation workflows.

Changes:

  • Adds non-privileged timing-summary jobs to CGO, CWI, and license checks.
  • Reports job and step durations through the Actions API.
Show a summary per file
File Description
.github/workflows/license-check.yml Adds license-check timing summary.
.github/workflows/CWI.yml Adds Windows workflow timing summary.
.github/workflows/cgo.yml Adds timing across all CGO jobs.

Review details

💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.

  • Files reviewed: 3/3 changed files
  • Comments generated: 3
  • Review effort level: Balanced

Comment thread .github/workflows/CWI.yml
Comment on lines +139 to +140
- name: Summarize job and step durations
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9
Comment on lines +60 to +61
- name: Summarize job and step durations
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9
Comment thread .github/workflows/cgo.yml
Comment on lines +2751 to +2752
- name: Summarize job and step durations
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9
@github-actions

Copy link
Copy Markdown
Contributor

🎉 This pull request is included in a new release.

Release: v0.87.1

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.

[copilot-opt] Investigate 75-94 minute runtimes in CGO, CWI, and License Compliance Check workflows

3 participants