Skip to content

Improve cached logs reporting - #60430

Merged
pelikhan merged 4 commits into
mainfrom
copilot/update-cached-jsonl-logs
Sep 12, 2026
Merged

pelikhan merged 4 commits into
mainfrom
copilot/update-cached-jsonl-logs

Conversation

Copilot AI commented Sep 12, 2026 •

Copy link
Copy Markdown
Contributor

logs --cached-jsonl did not show how discovered runs were handled. Drain3 training also exposed internal rebuild instructions.

  • Cache reporting

    • Report discovered runs, downloaded reports, and reused cached analyses.
    • Include JSONL and on-disk cache hits in the skipped count.
    • Support single-target, multi-target, and stdin collection paths.
    Runs: 20 discovered; reports: 5 downloaded, 15 skipped because cached analyses were reused
    
  • Drain3 output

    • Remove internal copy and make build guidance.
    • Retain the generated weights file location.

Run: https://github.com/github/gh-aw/actions/runs/34703679327

Warning

Firewall blocked 1 domain

The following domain was blocked by the firewall during workflow execution:

  • github.com

To allow these domains, add them to the network.allowed list in your workflow frontmatter:

network:
  allowed:
    - defaults
    - "github.com"

See Network Configuration for more information.

Generated by 👨‍🍳 PR Sous Chef · pi · gpt54 · 15.9 AIC · ⊞ 9.1K · ◷
Comment /souschef to run again

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot AI changed the title Improve cached logs download reporting Improve cached logs reporting Sep 12, 2026
Copilot AI requested a review from pelikhan September 12, 2026 15:06
@pelikhan
pelikhan marked this pull request as ready for review September 12, 2026 15:07
Copilot AI balanced review requested due to automatic review settings September 12, 2026 15:07
@github-actions

github-actions Bot commented Sep 12, 2026 •

Copy link
Copy Markdown
Contributor

✅ Test Quality Sentinel completed test quality analysis.

Test Quality Sentinel skipped because pre-fetch PR data was unavailable: unable to fetch test file diff

🧪 Test quality analysis by Test Quality Sentinel

@github-actions

github-actions Bot commented Sep 12, 2026 •

Copy link
Copy Markdown
Contributor

✅ Ponytail Reviewer completed successfully!

Warning

Threat Detection Engine Failure — The analysis engine could not complete. This is a tooling failure, not a security finding.

What happened

The threat detection engine failed to produce results.

Review the workflow run logs for details.

Warning

Firewall blocked 1 domain

The following domain was blocked by the firewall during workflow execution:

  • ab.chatgpt.com

To allow these domains, add them to the network.allowed list in your workflow frontmatter:

network:
  allowed:
    - defaults
    - "ab.chatgpt.com"

See Network Configuration for more information.

Generated by Ponytail Reviewer for #60430

@github-actions

github-actions Bot commented Sep 12, 2026 •

Copy link
Copy Markdown
Contributor

⚠️ PR Code Quality Reviewer failed during code quality review.

Warning

Threat Detection Engine Failure — The analysis engine could not complete. This is a tooling failure, not a security finding.

What happened

The threat detection engine failed to produce results.

Review the workflow run logs for details.

🔎 Code quality review by PR Code Quality Reviewer

@github-actions

github-actions Bot commented Sep 12, 2026 •

Copy link
Copy Markdown
Contributor

⚠️ Security scanning failed for Design Decision Gate 🏗️. Review the logs for details.

No ADR enforcement needed: PR does not have the 'implementation' label and has <=100 new lines of code in business logic directories.

🏗️ ADR gate enforced by Design Decision Gate 🏗️

@github-actions

github-actions Bot commented Sep 12, 2026 •

Copy link
Copy Markdown
Contributor

🧠 Matt Pocock Skills Reviewer failed during the skills-based review.

Warning

Threat Detection Engine Failure — The analysis engine could not complete. This is a tooling failure, not a security finding.

What happened

The threat detection engine failed to produce results.

Review the workflow run logs for details.

🧠 Reviewed using Matt Pocock's skills by Matt Pocock Skills Reviewer

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The three newly wired collection paths lack direct tests confirming their statistics are recorded and rendered correctly.

Get a fresh assessment by requesting another Copilot review.

Pull request overview

Improves cached-log collection visibility and simplifies Drain3 training output.

Changes:

  • Tracks discovered, downloaded, and cached reports across collection paths.
  • Renders cache statistics for --cached-jsonl.
  • Removes internal Drain3 rebuild guidance.
File summaries
File Description
pkg/cli/logs_orchestrator.go Renders single-target statistics.
pkg/cli/logs_orchestrator_unit_test.go Tests statistics formatting.
pkg/cli/logs_orchestrator_types.go Stores shared collection statistics.
pkg/cli/logs_orchestrator_stdin.go Tracks stdin collection results.
pkg/cli/logs_orchestrator_download.go Implements thread-safe statistics tracking.
pkg/cli/logs_multi.go Renders aggregate multi-target statistics.
pkg/cli/logs_cached_json.go Initializes statistics for cached JSONL use.
pkg/cli/drain3_train.go Removes internal rebuild instructions.
pkg/cli/drain3_train_test.go Verifies removed guidance stays absent.
Review details
  • Files reviewed: 9/9 changed files
  • Comments generated: 1
  • Review effort level: Balanced

💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.

assert.LessOrEqual(t, status.timeoutRemaining, time.Minute)
}

func TestLogsCollectionStatsReportsDiscoveredDownloadedAndCached(t *testing.T) {
@gh-aw-bot

Copy link
Copy Markdown
Collaborator

@copilot this PR still needs forward progress.

Warning

Firewall blocked 1 domain

The following domain was blocked by the firewall during workflow execution:

  • github.com

To allow these domains, add them to the network.allowed list in your workflow frontmatter:

network:
  allowed:
    - defaults
    - "github.com"

See Network Configuration for more information.

Generated by 👨‍🍳 PR Sous Chef · pi · gpt54 · 15.9 AIC · ⊞ 9.1K · ◷
Comment /souschef to run again

Copilot AI and others added 2 commits September 12, 2026 16:19
Co-authored-by: gh-aw-bot <259018956+gh-aw-bot@users.noreply.github.com>
Co-authored-by: gh-aw-bot <259018956+gh-aw-bot@users.noreply.github.com>

Copilot AI commented Sep 12, 2026

Copy link
Copy Markdown
Contributor Author

@copilot this PR still needs forward progress.

  • Please address the open review feedback from copilot-pull-request-reviewer....

Added path-level tests for all three entry points in the latest commits:

  • TestDownloadWorkflowLogsReportsCollectionStatsForJSONLAndDiskCacheHits (single-target)
  • TestDownloadWorkflowLogsForTargetsReportsCollectionStatsAcrossTargets (multi-target)
  • TestDownloadWorkflowLogsFromStdinReportsCollectionStatsForJSONLAndDiskCacheHits (stdin)

Each calls its real entry point with CachedJSONL set and asserts the rendered stderr summary counts both a JSONL cache hit and an on-disk (run_summary.json) cache hit toward "skipped". The failing "agent" checks referenced were unrelated repo automation workflow runs (Impeccable Skills Reviewer / PR Sous Chef), not CI failures caused by these changes.

Copilot AI requested a review from gh-aw-bot September 12, 2026 16:23
@pelikhan
pelikhan merged commit 1e8e3ed into main Sep 12, 2026
32 checks passed
@pelikhan
pelikhan deleted the copilot/update-cached-jsonl-logs branch September 12, 2026 16:31
@github-actions

Copy link
Copy Markdown
Contributor

🎉 This pull request is included in a new release.

Release: v0.89.9

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants