Enhance troubleshoot tools: select/release matching, cache cross-diagnosis, detailed reports and diagnostics - #16
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
match_select_releaseandlog_parserwith worker URL normalization, FIFO-based matching, ID-consistency checks, inference of release/token types, and worker-type profiling; return additional fields such asid_consistency,unmatched_releases,worker_type_profile, andid_mismatched_matches.analyzers/load.py(_analyze_counter_last_state) and include it in load report outputs and detail filedetail/load_counter_state.md.analyzers/cache.py) with_analyze_cross_diagnosisand produce both summary and a separate detail section for cache diagnosis; updateformat_cache_reportto output summary + detail payload.analyzers/errors.py) withIMPACT_RULES,classify_impact, and URL extraction for top-N error details; surface YAML-missing hint forFailed to read YAML file config/register.yaml.analyzers/health.py) now includes register events into event streams and computes detection latency (avg_detect_latency_s) to report detection timing in tables.detail/latency_diagnoses.md).scripts/chart.py::render_tableto generate proper markdown table separators for right/left alignment.scripts/troubleshoot.pyimprovements: smarterdetermine_log_filesearching (supports fuzzy names and quoted paths), richerformat_full_reportproducing many detail files, and saving those details insave_detailed_report.log_parser.pyfor URL/key normalization and token-release type inference; include self-test cases exercisingmatch_select_releasebehaviors.Testing
scripts/log_parser.py self-testwhich includes newmatch_select_releasesample cases, and the added checks for token-release type inference and ID consistency passed.scripts/troubleshoot.pyend-to-end on sample logs to verify report generation and that detail files such asdetail/load_select_release.md,detail/cache_diagnosis.md, anddetail/errors_topn.mdare produced (smoke tests succeeded).Codex Task