-
Notifications
You must be signed in to change notification settings - Fork 39
Add run summary caching to logs command for faster reprocessing #2066
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Conversation
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
- Add RunSummary struct to store complete run metadata and analysis - Implement loadRunSummary/saveRunSummary for cache persistence - Include CLI version in summary for automatic cache invalidation - Add listArtifacts to inventory downloaded files - Update downloadRunArtifacts to check for valid cached summaries - Modify downloadRunArtifactsConcurrent to create/load summaries - Add comprehensive unit and integration tests - Summary file (run_summary.json) acts as marker for processed runs Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
- Create LOGS_CACHING_EXAMPLE.md with usage examples - Document how caching works (first run, subsequent runs, version updates) - Explain run_summary.json structure and benefits - Include manual cache management commands - Show verbose mode output examples Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add logs command to write summary file for run artifacts
Add run summary caching to logs command for faster reprocessing
Oct 21, 2025
pelikhan
reviewed
Oct 21, 2025
LOGS_CACHING_EXAMPLE.md
Outdated
| @@ -0,0 +1,145 @@ | |||
| # Logs Command Caching Feature | |||
Contributor
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@copilot remove file
Contributor
Author
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed in commit e7e75cf
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
pelikhan
approved these changes
Oct 21, 2025
Contributor
|
Agentic Changeset Generator triggered by this pull request. |
github-actions bot
added a commit
that referenced
this pull request
Oct 21, 2025
Update CLI and MCP server documentation to reflect recent feature additions: - Add --timeout option documentation for logs command with caching details - Add --parse option documentation for audit command - Add URL support documentation for audit command (cross-repo, GitHub Enterprise) - Document continuation field in MCP server logs tool for pagination - Document large output automatic file handling in MCP server (16K token threshold) These changes document features from PRs #2066, #2064, #2060, #2058, #2052, and #2051. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
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.
Plan: Add Run Summary File for Logs Caching ✅ Complete
This PR implements a caching mechanism for the logs command to avoid re-processing already downloaded runs.
Implementation Complete ✅
RunSummaryto hold all run metadata (artifacts, metrics, errors, etc.)run_summary.jsonfile generation after processing each rundownloadRunArtifactsto check for existing summary file firstKey Changes:
New file: Each run folder now has a
run_summary.jsoncontaining:Cache invalidation: If CLI version in summary file doesn't match current version, re-process the run
Performance: Avoid re-downloading artifacts and re-parsing logs for already processed runs (~10-100x faster)
How It Works:
run_summary.jsonrun_summary.json→ Validates version → Loads cached data (skips download/processing)Tests Added:
TestSaveAndLoadRunSummary: Basic save/load functionalityTestLoadRunSummaryVersionMismatch: Version-based cache invalidationTestLoadRunSummaryMissingFile: Handles missing summary gracefullyTestLoadRunSummaryInvalidJSON: Handles corrupted summary filesTestListArtifacts: Artifact file inventoryTestRunSummaryJSONStructure: JSON marshaling validationTestRunSummaryCachingBehavior: End-to-end caching behaviorTestRunSummaryPreventsReprocessing: Verifies redundant processing is preventedTestListArtifactsExcludesSummary: Summary file exclusion from artifacts listAll tests pass ✅
Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.