troubleshoot: enrich log analysis and reporting (select/release inference, cache cross-diagnosis, detailed outputs) - #15
Merged
mouxinqq merged 2 commits intoApr 13, 2026
Conversation
This branch had an error being 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.
Motivation
Description
log_parser.match_select_releaseto infer release types and token release ownership, infer worker dominant types, exposeunmatched_releases, and include richerid_coverage,type_summary, andworker_type_profileoutputs, plus unit sample inself-testto validate token release inference._infer_release_worker_typeand_infer_token_release_worker_typeinlog_parser.pyand improved matching logic to reduceunknowntype counts.load.py,load_report.py) to parse request-count select/release (count:), compute counter last-state (_analyze_counter_last_state), includecounter_last_statein detail reports, and surface worker-type profiles and unmatched release lists in summaries and detail files.cache.py) via_analyze_cross_diagnosisand integrated detaileddetail/cache_diagnosis.mdoutput and links from the summary.errors.py) with source-impact mapping (IMPACT_RULES),classify_impact, and URL extraction for error templates, and surfacedFailed to read YAML file config/register.yamlas a special low-impact note.health.py) now collects register events into timelines and computes detection latency_compute_detect_latency, adding a "detection latency" column to the worker table and detail output.trace.py) now runsmatch_select_releasefor each trace and includes select/release checks in trace diagnoses and detail data.chart.pyto adjust Markdown table separator alignment for right-aligned columns.troubleshoot.py) expanded to collect and write multiple detail files underdetail/(e.g.load_select_release.md,load_counter_state.md,cache_*files,errors_topn.md,latency_diagnoses.md, and trace files) and to deduplicate DEGRADED reasons and add status definitions.error_catalog.md,log_patterns.md,report_templates.md) to reflect new messages, select/release log formats, and detail file layout.Testing
log_parser.py self-testwhich includes the new token-release/type inference sample and basic parse/normalize checks, and it passed locally.scripts/troubleshoot.pyon sample logs to generate the summary anddetail/files (errors, load, cache, trace), and verified the new detail files are produced and referenced from the summary.Codex Task