fix(syslog): remove abort operator from infallible split() in 'payloadKey' VRL#3344
fix(syslog): remove abort operator from infallible split() in 'payloadKey' VRL#3344vparfonov wants to merge 1 commit into
Conversation
…Key VRL The split() function is infallible when both arguments are statically known strings. In the syslog payloadKey VRL, payload_key is assigned from a string literal, so split!(payload_key, ".") triggers VRL warning E620. Remove the unnecessary ! to eliminate the warning. Also add VRL compilation warning assertions to syslog and OTLP functional tests to catch future regressions. Fixes: LOG-9663 Signed-off-by: Vitalii Parfonov <vparfono@redhat.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Enterprise Run ID: 📒 Files selected for processing (5)
📝 WalkthroughWalkthroughChangesThe change replaces Payload path parsing and validation
Estimated code review effort: 1 (Trivial) | ~5 minutes Possibly related PRs
Suggested labels: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: vparfonov The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
/retest |
|
/lgtm |
|
/hold |
|
@vparfonov: The following test failed, say
Full PR test history. Your PR dashboard. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
Description
This PR remove abort operator from infallible
split()inpayloadKeyVRL. Thesplit()function is infallible when both arguments are statically known strings, othervise triggers VRL warningE620. Remove the unnecessary ! to eliminate the warning.Also add VRL compilation warning assertions to syslog and OTLP functional tests to catch future regressions.
/cc @Clee2691
/assign @jcantrill
Links
Summary by CodeRabbit
Bug Fixes
Tests