Skip to content

feat(ci-status): add GitHub Actions tracking and restructure as collect → AI → render pipeline - #4099

Merged
mattleibow merged 8 commits into
mainfrom
mattleibow/ci-status-github-actions
May 29, 2026
Merged

mattleibow merged 8 commits into
mainfrom
mattleibow/ci-status-github-actions

Conversation

@mattleibow

Copy link
Copy Markdown
Contributor

Summary

Restructures the ci-status skill to follow the same architecture as security-audit: a collector script produces raw JSON, the AI assembles an augmented report with analysis, then validate/render scripts produce HTML + Markdown outputs.

Also adds GitHub Actions workflow tracking for both mono/SkiaSharp and mono/SkiaSharp-API-docs repositories.

Changes

New pipeline architecture

Collector → AI Analysis → Assemble JSON → Validate → Render HTML+MD → Present

New files

  • scripts/validate-ci-status.py — Schema validation (exit 0/1/2)
  • scripts/render-ci-status.py — JSON → HTML via viewer.html template injection
  • scripts/render-ci-status-md.py — JSON → comprehensive Markdown report
  • scripts/viewer.html — Bootstrap 5 self-contained dashboard template
  • references/report-schema.md — Augmented JSON schema documentation

Modified files

  • scripts/ci-status.py — Stripped markdown renderer, now outputs console + raw JSON only. Added GitHub Actions collection with scope-aware fetching (branch vs global).
  • SKILL.md — Complete rewrite with 7-step flow, file boundary table, AI assembly instructions

GitHub Actions tracking

  • 18 workflows tracked across mono/SkiaSharp and mono/SkiaSharp-API-docs
  • Scope-aware collection: branch-scoped (main + release/*) vs global (last run only)
  • Failed job details fetched for the latest failed run per workflow
  • Trigger type classification (push, cron, dispatch, event)

Testing

  • All scripts pass syntax check
  • Validator + renderers tested with sample JSON
  • Full end-to-end test: background agent given "please do a ci status report" successfully produced all 3 output files (263KB JSON, 195KB HTML, 11KB MD) with AI analysis embedded

mattleibow and others added 8 commits May 29, 2026 19:23
Extend the CI status collector to also query GitHub Actions workflow
runs from mono/SkiaSharp and mono/SkiaSharp-API-docs repositories.

Tracked workflows:
- mono/SkiaSharp: Docs - Deploy, Publish Samples, API Diff
- mono/SkiaSharp-API-docs: Automerge Docs, Go Live

The script uses the gh CLI to fetch recent workflow runs per branch,
computes pass rates, and renders them in both console and markdown
output alongside the existing AzDO pipeline data.

Co-authored-by: Copilot <[email protected]>
Add 5 more workflows that indicate health of automation:
- Docs - Go Live! (docs publishing)
- Auto Docs Submodule Sync (API docs sync)
- Update Release Notes (release notes automation)
- Skia Upstream Sync (upstream tracking)
- Nightly Fix Finder (nightly automation health)

Also add a 'Why Track' column to the SKILL.md table explaining
the impact of each workflow failing.

Co-authored-by: Copilot <[email protected]>
Expand scope from 'release build health' to 'what automation is failing'.
Now tracks 19 GitHub Actions workflows across both repos:

mono/SkiaSharp (16):
- Build & Docs: Deploy, Go Live, PR Staging Cleanup/Sweep, Samples, API Diff
- Automation: Docs Submodule Sync, Release Notes, Skia Upstream Sync,
  Nightly Fix Finder, Auto-Triage, Persist Agentic Data
- PR Utilities: Backport, Rebase, PR Artifacts Comment
- Dependencies: Manage NuGet Feed

mono/SkiaSharp-API-docs (3):
- Auto API Docs Writer, Automerge Docs, Go Live

Updated SKILL.md with full table including trigger info and severity
categorization (high/medium/low) for the AI analysis step.

Co-authored-by: Copilot <[email protected]>
- Move §2.8 GitHub Actions Health before §2.9 Top Recommendations
  (analyze all data sources before synthesizing actions)
- Update Top Recommendations to include GitHub Actions severity levels
- Reorder Step 3 presentation: AzDO → Chain verdict → GitHub Actions → Actions
- Add 'What automation is failing?' and 'GitHub Actions status?' to usage table

Co-authored-by: Copilot <[email protected]>
Key fixes based on review feedback:

1. Add 'scope' field to workflows: 'branch' (push/PR workflows queried
   per-branch) vs 'global' (scheduled/dispatch/event-driven workflows
   queried without branch filter). Fixes false 'no runs' for event-driven
   workflows like Backport, Rebase, and PR Artifacts Comment.

2. Remove disabled 'Manage NuGet Feed' workflow (would always show no runs).

3. Update renderers (console + markdown) to handle both scopes:
   - Branch-scoped: shown in per-branch matrix
   - Global-scoped: shown as latest runs with timestamp

4. Fix example output to include the mandatory chain verdict section
   and show GitHub Actions with timestamps instead of branch names.

5. Add prerequisites section (az CLI, gh CLI, git remotes).

6. Add note in §2.2 that root-cause clusters must be finalized AFTER
   chain analysis in §2.3 to avoid double-counting cascades.

Co-authored-by: Copilot <[email protected]>
…line

Follows security-audit pattern: collector outputs raw JSON, AI assembles
augmented report JSON with analysis, then validate/render scripts produce
HTML + Markdown outputs.

New files:
- scripts/validate-ci-status.py: schema validation (exit 0/1/2)
- scripts/render-ci-status.py: JSON → HTML via viewer.html injection
- scripts/render-ci-status-md.py: JSON → comprehensive Markdown
- scripts/viewer.html: Bootstrap 5 self-contained dashboard template
- references/report-schema.md: augmented JSON schema documentation

Modified:
- scripts/ci-status.py: stripped markdown renderer, now outputs console + raw JSON only
- SKILL.md: rewritten with 7-step flow, file boundary table, AI assembly instructions

Co-authored-by: Copilot <[email protected]>
@github-actions

Copy link
Copy Markdown
Contributor

📦 Try the packages from this PR

Warning

Do not run these scripts without first reviewing the code in this PR.

Step 1 — Download the packages

bash / macOS / Linux:

curl -fsSL https://raw.githubusercontent.com/mono/SkiaSharp/main/scripts/get-skiasharp-pr.sh | bash -s -- 4099

PowerShell / Windows:

iex "& { $(irm https://raw.githubusercontent.com/mono/SkiaSharp/main/scripts/get-skiasharp-pr.ps1) } 4099"

Step 2 — Add the local NuGet source

dotnet nuget add source ~/.skiasharp/hives/pr-4099/packages --name skiasharp-pr-4099
More options
Option Description
--successful-only / -SuccessfulOnly Only use successful builds
--force / -Force Overwrite previously downloaded packages
--list / -List List available artifacts without downloading
--build-id ID / -BuildId ID Download from a specific build

Or download manually from Azure Pipelines — look for the nuget artifact on the build for this PR.

Remove the source when you're done:

dotnet nuget remove source skiasharp-pr-4099

@mattleibow
mattleibow merged commit bc741a4 into main May 29, 2026
3 of 4 checks passed
@mattleibow
mattleibow deleted the mattleibow/ci-status-github-actions branch May 29, 2026 22:26
@github-actions

Copy link
Copy Markdown
Contributor

📖 Documentation Preview

The documentation for this PR has been deployed and is available at:

🔗 View Staging Site
🔗 View Staging Docs
🔗 View Staging Gallery (Blazor)
🔗 View Staging Gallery (Uno Platform)
🔗 View Staging SkiaFiddle

This preview will be updated automatically when you push new commits to this PR.


This comment is automatically updated by the documentation staging workflow.

@mattleibow mattleibow added this to the 4.148.0-rc.1 milestone Jun 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant