Skip to content

Automate serverlogs triage and repro - #65810

Open
John Favret (johnfav03) wants to merge 1 commit into
mainfrom
serverlog-triage-automation
Open

John Favret (johnfav03) wants to merge 1 commit into
mainfrom
serverlog-triage-automation

Conversation

@johnfav03

Copy link
Copy Markdown
Contributor

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.

Copilot AI balanced review requested due to automatic review settings December 4, 2026 22:30
@github-project-automation github-project-automation Bot moved this to Not started in PR Backlog Dec 4, 2026
@typescript-automation typescript-automation Bot added Author: Team For Uncommitted Bug PR for untriaged, rejected, closed or missing bug labels Dec 4, 2026

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.

🟡 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

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Author: Team For Uncommitted Bug PR for untriaged, rejected, closed or missing bug

Projects

Status: Not started

Development

Successfully merging this pull request may close these issues.

2 participants