Skip to content

refactor(artifacts): share audit log reader lifecycle - #15148

Merged
vincentkoc merged 2 commits into
mainfrom
refactor/shared-audit-log-reader
Nov 30, 2026
Merged

vincentkoc merged 2 commits into
mainfrom
refactor/shared-audit-log-reader

Conversation

@vincentkoc

@vincentkoc vincentkoc commented Nov 30, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Auditd and Kubernetes audit logs now use the same internal reader for source identity checks, streaming, coverage reporting and cleanup. This removes 118 lines across three files.

Contract and boundary impact

Both constructors keep their signatures and format names. Each supplies its existing decoder, schema, size ceiling and diagnostic label. Kubernetes still captures the selected line limit when the reader is constructed. The reader still verifies source identity before publishing metadata or attributing a decoder failure to the file. Coverage callbacks retain the same cancellation behavior.

Validation

Ran the project formatter, Node 24.22.1 syntax checks on all three changed files and git diff --check. Compared both committed reader implementations with the base revision under ten simulated file and decoder scenarios per format. All 20 comparisons matched, including coverage, cancellation, source-change precedence, retry and metadata cloning. Verified the two literal ceiling declarations with the repository’s fixed-ceiling parser and registry. Hosted static checks and portable tests passed at 3dd808ce3. The selected shard passed 415 tests with one skipped, including all 30 auditd reader tests and all 56 Kubernetes reader tests. No live provider is involved.

@greptile-apps

greptile-apps Bot commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

Confidence Score: 5/5 · The reviewed changes appear safe to merge; no blocking issue was found.RetriggerView in GreptileConfidence Score: 5/5

[Low impact] The reviewed changes appear safe to merge; no blocking issue was found.

Summary

Shares audit-log reading and cleanup through AuditLogArtifactReader, while each concrete reader keeps its decoder, schema and fixed-ceiling declaration.

  • Auditd and Kubernetes logs now share one reader lifecycle.

Reviews (3) · Last reviewed commit: "refactor(artifacts): keep fixed ceilings..." · Reviewed by Greptile

@vincentkoc
vincentkoc marked this pull request as ready for review November 30, 2026 04:30
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 30, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-30T04:31:32.374813Z 3dd808c Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@vincentkoc
vincentkoc enabled auto-merge (squash) November 30, 2026 04:32
@vincentkoc
vincentkoc merged commit 09a6374 into main Nov 30, 2026
43 checks passed
@vincentkoc
vincentkoc deleted the refactor/shared-audit-log-reader branch November 30, 2026 04:36
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.

1 participant