Repository navigation
[Integration] Add an offline incident ZIP for issue and AI handoff - #4841
Open
jacklin78911-collab wants to merge 5 commits into
Open
jacklin78911-collab wants to merge 5 commits into
jacklin78911-collab wants to merge 5 commits into
Conversation
jacklin78911-collab
marked this pull request as ready for review
October 26, 2026 02:13
jacklin78911-collab
requested review from
Aionw,
Ann-1024,
luketong777,
stmatengss and
ykwd
as code owners
October 26, 2026 02:13
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.
Description
Add a standard-library incident collector under
scripts/diagnostics/: prepare one redacted ZIP of Mooncake/vLLM P/D logs, service-host snapshots, incident context, and troubleshooting records. On completion it suggests attaching the reviewed ZIP to a Mooncake issue or consulting AI.Python 3.9+ is sufficient. Packaging requires no installed skill, Mooncake package, GPU, or AI client.
snapshotis a separate read-only Linux service-host command;bundlenever collects the packaging host's environment or uploads data.The ZIP has one reading entry (
AI_CONTEXT.md),env.json,manifest.json, numbered logs, and optional incident/troubleshooting records. It retains all supplied LF lines and lists literal P/D IDs, explicit request/transfer pairs, and representative error lines. Different request IDs are never merged. Error samples are bounded per role so prefill noise cannot exclude decode errors. Analysis belongs in the issue discussion or AI; the collector has no stage classifier, revision-rule catalog, or duplicate report tree.Sharing and field correctness
_filename separators and DNS case variants. The private map stays outside the ZIP and.map.jsoninputs/symlink targets are rejected.messagekey; actual leveled JSON diagnostics still work.Review the ZIP for business-specific private formats before sharing. Select the relevant incident window before running; inputs are not silently truncated.
Relation to existing work
Supports the local incident-bundle goal in RFC #2864 and complements the diagnostic core/
tent versionmerged in #4154. It serves existing Classic/TENT and application-level vLLM deployments, with no new live transport probe, benchmark engine, or native runtime dependency. Related diagnostic/collection issues and PRs were checked before this implementation.Module
scripts/diagnosticsType of Change
How Has This Been Tested?
python3 -m unittest discover -s scripts/diagnostics -p 'test_mc_diag.py' -v pre-commit run --files scripts/diagnostics/mc_diag.py \ scripts/diagnostics/test_mc_diag.py scripts/diagnostics/README.md \ README.md .github/workflows/diagnostics.ymlNone: None. Regressions cover the log/case/record paths, all input types for maps, and failed-publication cleanup.Test results:
Checklist
scripts/code_format.sh(not applicable)AI Assistance Disclosure
Codex assisted with implementation, simplification, concrete counterexamples, tests and review. Automated testing/review is not represented as human review of every line. Ready for maintainer review; no automatic merge or approval is requested.