Bounty #5: Add AI pipeline timing budget summary#24
Closed
lizhiming454 wants to merge 3 commits into
Closed
Conversation
- Added check_prometheus_staleness() that fetches /metrics and flags metrics with timestamps older than 5 minutes (Prometheus staleness threshold) - New --prom-url flag to specify Prometheus metrics endpoint - Added stale_metrics to system section of JSON output with: metric name, labels (redacted), value, timestamp, age_seconds, age_readable - Backward compatible: existing --json and --service flags unchanged - Secret redaction applied to metric labels to avoid leaking credentials - Text output shows stale metrics with age in human-readable format
- Added per-phase elapsed time tracking with record_phase_start/end - Added --timing-budget N flag to set budget threshold per stage - Added --timing-json flag for machine-readable JSON output - Timing summary shows: elapsed, OK/OVER BUDGET status per stage - Total duration and slowest stage highlighted in summary - Budget threshold logs WARN for stages exceeding N seconds - Backward compatible: existing --mode flags unchanged
Author
|
/claim |
Owner
|
Thanks for the PR. I am closing this because |
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.
Summary
Added per-stage timing budget tracking to the AI pipeline script. Pipeline now records elapsed time for each phase and can report a summary showing which stages exceeded a configurable budget threshold.
Changes
record_phase_start()/record_phase_end()functions that track phase timing--timing-budget Nflag to set a per-stage budget threshold in seconds--timing-jsonflag for machine-readable JSON timing output--modeflags work unchangedTesting
Diagnostic Artifact
Commit: f1cf6e5
Password:
b58589e4d9eece25d13aReassemble:
cat diagnostic/build-f1cf6e57-part001.logd diagnostic/build-f1cf6e57-part002.logd > diagnostic/build-f1cf6e57.logdDecrypt:
encryptly unpack diagnostic/build-f1cf6e57.logd <outdir> --password b58589e4d9eece25d13aDiagnostic chunks: diagnostic/build-f1cf6e57-part001.logd, diagnostic/build-f1cf6e57-part002.logd