Repository navigation
Automate serverlogs triage and repro - #65810
Open
John Favret (johnfav03) wants to merge 1 commit into
Open
John Favret (johnfav03) wants to merge 1 commit into
John Favret (johnfav03) wants to merge 1 commit into
Conversation
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
ZIP validation performs quadratic ancestry checks, reaching nearly five billion checks at the allowed 100,000-entry limit before extraction. Separately, inconsistent concurrency keys allow simultaneous triage and reproduction runs for the same report, duplicating expensive work, and method-less panic/fatal parsing discards the failure message and records a goroutine header instead.
3 open issues
What changed in this PR
Adds resumable ServerErrors triage automation for the native TypeScript compiler and language server, with independent reproduction verification and separately approved publication.
Changes:
- Adds artifact acquisition, classification, durable state, and reporting utilities.
- Defines triage, reproduction, and verification agents and skills.
- Adds automatic triage and gated publication workflows, plus tests and fixtures.
| File | Description |
|---|---|
| tools/serverlog/tests/test_workflows.py | Checks workflow gates and artifact selection. |
| tools/serverlog/tests/test_reporting.py | Tests incomplete and blocked summaries. |
| tools/serverlog/tests/test_common.py | Tests persistence and process containment. |
| tools/serverlog/tests/test_cli.py | Tests CLI behavior and publication gates. |
| tools/serverlog/tests/test_analysis.py | Tests classification and reconciliation. |
| tools/serverlog/tests/test_acquire.py | Tests acquisition and archive validation. |
| tools/serverlog/tests/fixtures/printed_signature.txt | Supplies a printed-signature fixture. |
| tools/serverlog/tests/fixtures/go_panic_stack.txt | Supplies a Go panic fixture. |
| tools/serverlog/tests/fixtures/fake_bwrap.py | Simulates sandbox execution. |
| tools/serverlog/tests/fixtures/fake_agent.py | Supplies deterministic agent results. |
| tools/serverlog/service.py | Adds the service entry point. |
| tools/serverlog/serverlog_service/state.py | Persists pipeline phase state. |
| tools/serverlog/serverlog_service/reporting.py | Renders summaries and issue proposals. |
| tools/serverlog/serverlog_service/common.py | Adds persistence and bounded command utilities. |
| tools/serverlog/serverlog_service/cli.py | Exposes pipeline and publication commands. |
| tools/serverlog/serverlog_service/analysis.py | Classifies artifacts and validates clusters. |
| tools/serverlog/serverlog_service/acquire.py | Downloads artifacts and resolves compiler revisions. |
| tools/serverlog/serverlog_service/_linux_supervisor.py | Supervises Linux subprocess descendants. |
| tools/serverlog/serverlog_service/__init__.py | Defines package schema version. |
| tools/serverlog/README.md | Documents operation and deployment requirements. |
| tools/serverlog/fetch_run.py | Adds acquisition-only entry point. |
| tools/serverlog/config.example.json | Provides configuration defaults. |
| .github/workflows/serverlog-triage.yml | Runs automatic triage and manual backfills. |
| .github/workflows/serverlog-publish.yml | Publishes approved, authenticated bundles. |
| .github/skills/serverlog-triage/SKILL.md | Defines run-level triage procedures. |
| .github/skills/serverlog-crash-primer/SKILL.md | Documents artifact and replay mechanics. |
| .github/skills/minimal-repro-from-server-crash/SKILL.md | Defines minimal reproduction procedures. |
| .github/agents/serverlog-run-triager.md | Defines the clustering agent. |
| .github/agents/serverlog-repro-worker.md | Defines the reproduction worker. |
| .github/agents/serverlog-repro-verifier.md | Defines independent verification duties. |
| .github/agents/replay-minimizer.md | Adds guidance toward broader triage skills. |
Review effort: Balanced
Comment on lines
+562
to
+577
| for parent in member_path.parents: | ||
| if parent == pathlib.PurePosixPath("."): | ||
| break | ||
| if kinds.get(parent) == "file": | ||
| raise zipfile.BadZipFile( | ||
| f"archive file/child collision: {parent} and {member.filename}" | ||
| ) | ||
| if kind == "file" and any( | ||
| existing != member_path and member_path in existing.parents | ||
| for existing in kinds | ||
| ): | ||
| raise zipfile.BadZipFile( | ||
| f"archive file/child collision: {member.filename}" | ||
| ) | ||
| kinds[member_path] = kind | ||
| return members |
| issues: read | ||
|
|
||
| concurrency: | ||
| group: serverlog-triage-${{ github.event.issue.number || github.event.client_payload.issue }} |
Comment on lines
+160
to
+161
| method = lines[0].strip() if lines and ("/" in lines[0] or lines[0] == "unknown") else fallback_method | ||
| message = next((line.strip() for line in lines[1:] if line.strip()), "") |
This branch has not been deployed
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.


ServerErrors reports require artifact acquisition, deduplication, reproduction, and independent verification before issues can be proposed reliably.
Add a resumable triage service, agent skills, and workflows for automatic reports and manual backfills. Generate publication plans behind independent verification and a separate approval gate.
Production requires an ephemeral runner with a configured Copilot credential broker; live workflow execution remains unverified.