Skip to content

chore: update drain3 default log pattern weights#24423

Merged
pelikhan merged 2 commits intomainfrom
ci/train-drain3-weights-20260404
Apr 4, 2026
Merged

chore: update drain3 default log pattern weights#24423
pelikhan merged 2 commits intomainfrom
ci/train-drain3-weights-20260404

Conversation

@github-actions
Copy link
Copy Markdown
Contributor

@github-actions github-actions bot commented Apr 4, 2026

This pull request updates the default Drain3 log pattern weights (pkg/agentdrain/data/default_weights.json) by training on the most recent workflow run logs.

What changed

  • Re-trained log template clusters from the latest run logs using gh aw logs --train
  • Copied resulting drain3_weights.json to the embedded defaults path

How to verify

  1. Build the binary with make build
  2. Run gh aw audit or gh aw logs --train and confirm the anomaly analysis reflects the updated patterns

This PR was created automatically by the train-drain3-weights workflow.

Copy link
Copy Markdown
Collaborator

@pelikhan pelikhan left a comment

Choose a reason for hiding this comment

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

@copilot lint and reformat

Agent-Logs-Url: https://github.com/github/gh-aw/sessions/9ae89849-f8ba-4ec1-b7be-a2ff00b39455

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copy link
Copy Markdown
Contributor

Copilot AI commented Apr 4, 2026

@copilot lint and reformat

Done — ran make fmt which reformatted default_weights.json via Prettier (commit 77b9ff8). Lint also passes cleanly.

Copilot AI requested a review from pelikhan April 4, 2026 02:42
@pelikhan pelikhan merged commit 1c6ce66 into main Apr 4, 2026
@pelikhan pelikhan deleted the ci/train-drain3-weights-20260404 branch April 4, 2026 02:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants