Skip to content

Precompile log buffer regular expressions#1323

Merged
kubernetes-prow[bot] merged 1 commit into
kubernetes:masterfrom
hakman:precompile-log-buffer-regexps
Jul 26, 2026
Merged

Precompile log buffer regular expressions#1323
kubernetes-prow[bot] merged 1 commit into
kubernetes:masterfrom
hakman:precompile-log-buffer-regexps

Conversation

@hakman

@hakman hakman commented Jul 22, 2026

Copy link
Copy Markdown
Member

Compile fixed patterns during monitor and log counter initialization, pass compiled expressions to the log buffer, and reject invalid log counter patterns before watching logs.

/cc @wangzhen127 @ameukam

@kubernetes-prow
kubernetes-prow Bot requested review from ameukam and wangzhen127 July 22, 2026 08:35
@kubernetes-prow kubernetes-prow Bot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. approved Indicates a PR has been approved by an approver from all required OWNERS files. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Jul 22, 2026

@DigitalVeer DigitalVeer 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.

nice! glad we're moving pattern compilation to startup now :) - a few catches

Comment thread pkg/systemlogmonitor/log_monitor.go
Comment thread pkg/systemlogmonitor/log_buffer.go
Comment thread pkg/logcounter/log_counter_test.go
Compile fixed patterns during monitor and log counter initialization, pass compiled expressions to the log buffer, and reject invalid log counter patterns before watching logs.
@hakman
hakman force-pushed the precompile-log-buffer-regexps branch from 2a4daab to b02e2dc Compare July 25, 2026 06:21
@hakman

hakman commented Jul 25, 2026

Copy link
Copy Markdown
Member Author

/cc @ameukam

@ameukam

ameukam commented Jul 26, 2026

Copy link
Copy Markdown
Member

/lgtm

@kubernetes-prow kubernetes-prow Bot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jul 26, 2026
@kubernetes-prow

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: ameukam, hakman

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@kubernetes-prow
kubernetes-prow Bot merged commit aab5e5e into kubernetes:master Jul 26, 2026
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants