Skip to content

chore(release): pull main into develop post release v1.107.5 - #4620

Merged
koladilip merged 3 commits into
developfrom
main
Sep 12, 2025
Merged

koladilip merged 3 commits into
developfrom
main

Conversation

@devops-github-rudderstack

Copy link
Copy Markdown
Contributor

👑 An automated PR

@coderabbitai

coderabbitai Bot commented Sep 10, 2025 •

Copy link
Copy Markdown
Contributor

Summary by CodeRabbit

  • Bug Fixes
    • Improved validation handling to correctly detect and act on advanced rules violations even when they fall under generic “other” errors.
    • Ensures events are dropped according to configuration when such violations occur, providing consistent enforcement.
    • Propagates a clearer violation reason to downstream handlers for better observability.

Walkthrough

Added AdvanceRulesViolation to the set of violation types checked in handleValidationErrors → handleAnyOtherViolation. When configuration specifies dropping on any other violation, events triggering AdvanceRulesViolation will now be dropped and the violation propagated. No changes to public/exported APIs.

Changes

Cohort / File(s) Summary
Validation error handling
src/util/eventValidation.js
Included violationTypes.AdvanceRulesViolation in violationTypesToCheck within handleAnyOtherViolation, enabling drop-and-propagate behavior for this violation when configured to drop on any other violation.

Sequence Diagram(s)

sequenceDiagram
  autonumber
  participant E as Event
  participant V as eventValidation.handleValidationErrors
  participant A as handleAnyOtherViolation
  participant C as Config

  E->>V: Validate event
  V->>A: Handle non-specific violations
  A->>C: Check dropOnAnyOtherViolation
  Note over A,C: ViolationTypes includes AdvanceRulesViolation (new)
  alt dropOnAnyOtherViolation = true and AdvanceRulesViolation present
    A-->>V: Signal AdvanceRulesViolation (to drop)
    V-->>E: Drop event and propagate violation
  else
    A-->>V: Continue normal handling
    V-->>E: Proceed without drop
  end
Loading

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Suggested reviewers

  • sivashanmukh
  • utsabc
  • maheshkutty
  • krishna2020
  • koladilip

Suggestions for improvements:

  • Add unit tests covering AdvanceRulesViolation within the any-other-violation path (drop and non-drop configurations).
  • Update validation error handling documentation/config references to mention AdvanceRulesViolation behavior.
  • Consider telemetry/logging to distinguish drops due to AdvanceRulesViolation for monitoring.

Pre-merge checks (1 passed, 2 warnings)

❌ Failed checks (2 warnings)
Check name Status Explanation Resolution
Description Check ⚠️ Warning The PR description currently consists only of an emoji and the phrase “An automated PR” and does not follow the repository’s template, as it lacks sections for change details, related tasks, objectives, testing, and developer checklists. This omission makes it difficult to assess exactly what is being merged and why, even for an automated sync PR. Because it fails to include the structured information required by the template, the description check does not pass. Please expand the description to match the template by summarizing the actual changes being merged, linking the relevant Linear task (if any), explaining the objectives of syncing branches after release v1.107.5, and confirming that all automated checks and developer checklist items have been addressed.
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. You can run @coderabbitai generate docstrings to improve docstring coverage.
✅ Passed checks (1 passed)
Check name Status Explanation
Title Check ✅ Passed The current title clearly indicates the purpose of the PR as a chore to sync the branches after publishing version 1.107.5, which accurately reflects the automated merge of main into develop without unnecessary detail from the changeset. It concisely captures the main action and release context so that a reviewer can immediately understand the PR’s intent. Although it does not describe individual code modifications, this is acceptable for an automated branch sync PR as it highlights the overarching task.

Tip

👮 Agentic pre-merge checks are now available in preview!

Pro plan users can now enable pre-merge checks in their settings to enforce checklists before merging PRs.

  • Built-in checks – Quickly apply ready-made checks to enforce title conventions, require pull request descriptions that follow templates, validate linked issues for compliance, and more.
  • Custom agentic checks – Define your own rules using CodeRabbit’s advanced agentic capabilities to enforce organization-specific policies and workflows. For example, you can instruct CodeRabbit’s agent to verify that API documentation is updated whenever API schema files are modified in a PR. Note: Upto 5 custom checks are currently allowed during the preview period. Pricing for this feature will be announced in a few weeks.

Please see the documentation for more information.

Example:

reviews:
  pre_merge_checks:
    custom_checks:
      - name: "Undocumented Breaking Changes"
        mode: "warning"
        instructions: |
          Pass/fail criteria: All breaking changes to public APIs, CLI flags, environment variables, configuration keys, database schemas, or HTTP/GraphQL endpoints must be documented in the "Breaking Change" section of the PR description and in CHANGELOG.md. Exclude purely internal or private changes (e.g., code not exported from package entry points or explicitly marked as internal).

Please share your feedback with us on this Discord post.

✨ Finishing Touches
  • 📝 Generate Docstrings
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch main

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@coderabbitai coderabbitai Bot 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.

Actionable comments posted: 0

🧹 Nitpick comments (3)
src/util/eventValidation.js (3)

315-321: AdvanceRulesViolation inclusion looks right; confirm precedence and add a focused test

Adding AdvanceRulesViolation to violationTypesToCheck makes sense given how Ajv maps keywords above. One subtlety: precedence is determined by array order plus whichever handler runs later in the config loop. Here, an event with multiple violations will prefer the first match (UnknownViolation → DatatypeMismatch → RequiredMissing → AdvanceRulesViolation). Please confirm this ordering is intentional for reporting, and add a unit test asserting that:

  • with anyOtherViolation: 'drop' and an AdvanceRulesViolation present, the event is dropped and violationType is Advance-Rules-Violation.

343-349: ESLint (no-prototype-builtins): avoid direct hasOwnProperty on objects

Prefer Object.prototype.hasOwnProperty.call to satisfy common ESLint configs and avoid prototype shadowing.

-  if (handlerMap.hasOwnProperty(key)) {
+  if (Object.prototype.hasOwnProperty.call(handlerMap, key)) {

279-281: Typo in default labels: “Non-determininable” → “Non-determinable”

These appear in logs; fix the spelling.

-    destinationId = 'Non-determininable',
-    destinationType = 'Non-determininable',
+    destinationId = 'Non-determinable',
+    destinationType = 'Non-determinable',
📜 Review details

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between b4c9d50 and f37f925.

⛔ Files ignored due to path filters (4)
  • CHANGELOG.md is excluded by !**/*.md
  • package-lock.json is excluded by !**/package-lock.json, !**/*.json
  • package.json is excluded by !**/*.json
  • test/__tests__/eventValidation.test.js is excluded by !**/test/**
📒 Files selected for processing (1)
  • src/util/eventValidation.js (1 hunks)
🧰 Additional context used
📓 Path-based instructions (1)
**/*.js

⚙️ CodeRabbit configuration file

Focus on ESLint errors (max 3) and warnings (max 5).

Files:

  • src/util/eventValidation.js
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (6)
  • GitHub Check: Code Coverage
  • GitHub Check: test_and_publish
  • GitHub Check: UT Tests
  • GitHub Check: Analyze (javascript-typescript)
  • GitHub Check: Analyze (go)
  • GitHub Check: Analyze (javascript-typescript)

@devops-github-rudderstack

Copy link
Copy Markdown
Contributor Author

Allure Test reports for this run are available at:

@codecov

codecov Bot commented Sep 10, 2025 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 91.78%. Comparing base (d74003b) to head (f37f925).
⚠️ Report is 18 commits behind head on develop.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #4620      +/-   ##
===========================================
- Coverage    91.78%   91.78%   -0.01%     
===========================================
  Files          642      642              
  Lines        33931    33941      +10     
  Branches      8032     8035       +3     
===========================================
+ Hits         31145    31153       +8     
- Misses        2556     2558       +2     
  Partials       230      230              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@sonarqubecloud

Copy link
Copy Markdown

@koladilip
koladilip merged commit ea23516 into develop Sep 12, 2025
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.

6 participants