Repository navigation
refactor(artifacts): share audit log reader lifecycle - #15148
Merged
Merged
Conversation
Contributor
[Low impact] The reviewed changes appear safe to merge; no blocking issue was found. SummaryShares audit-log reading and cleanup through
Reviews (3) · Last reviewed commit: "refactor(artifacts): keep fixed ceilings..." · Reviewed by Greptile |
vincentkoc
marked this pull request as ready for review
November 30, 2026 04:30
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
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
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.
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 at3dd808ce3. 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.