Repository navigation
feat(ci-status): add GitHub Actions tracking and restructure as collect → AI → render pipeline - #4099
Merged
Merged
Conversation
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]>
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]>
Contributor
📦 Try the packages from this PRWarning 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 -- 4099PowerShell / 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-4099More options
Or download manually from Azure Pipelines — look for the Remove the source when you're done: dotnet nuget remove source skiasharp-pr-4099 |
Contributor
|
📖 Documentation Preview The documentation for this PR has been deployed and is available at: 🔗 View Staging Site This preview will be updated automatically when you push new commits to this PR. This comment is automatically updated by the documentation staging workflow. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Restructures the
ci-statusskill to follow the same architecture assecurity-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/SkiaSharpandmono/SkiaSharp-API-docsrepositories.Changes
New pipeline architecture
New files
scripts/validate-ci-status.py— Schema validation (exit 0/1/2)scripts/render-ci-status.py— JSON → HTML via viewer.html template injectionscripts/render-ci-status-md.py— JSON → comprehensive Markdown reportscripts/viewer.html— Bootstrap 5 self-contained dashboard templatereferences/report-schema.md— Augmented JSON schema documentationModified 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 instructionsGitHub Actions tracking
Testing