Skip to content

chore(release): pull main into develop post release v1.95.2 - #4212

Merged
maheshkutty merged 3 commits into
developfrom
main
Mar 27, 2025
Merged

maheshkutty merged 3 commits into
developfrom
main

Conversation

@devops-github-rudderstack

@devops-github-rudderstack devops-github-rudderstack commented Mar 27, 2025 •

Copy link
Copy Markdown
Contributor

👑 An automated PR

@coderabbitai

coderabbitai Bot commented Mar 27, 2025 •

Copy link
Copy Markdown
Contributor

Walkthrough

This update introduces version 1.95.2 of the rudder-transformer project. The changes include a bug fix for the Airship destination that adds an empty check for the timestamp. The update also modifies the logic in the getAttributeValue function by importing and using a helper method to ensure that timestamp values are defined, not null, and non-empty. Additionally, tests have been updated to include two new timestamp attributes in the Airship destination configuration.

Changes

File(s) Change Summary
CHANGELOG.md, package.json Updated version to 1.95.2; CHANGELOG and package.json now reflect the new release along with the bug fix for empty timestamp in Airship destination.
src/v0/destinations/airship/utils.ts Added import of isDefinedNotNullNotEmpty and enhanced the getAttributeValue logic to check that the timestamp value is defined, not null, and not empty before conversion.
test/integrations/destinations/airship/processor/business.ts Added two new timestamp attributes (current_trip_date and end_trip_date) to the test configuration and updated the expected output accordingly.

Sequence Diagram(s)

sequenceDiagram
    participant Caller as Airship Processor
    participant Func as getAttributeValue
    participant Util as isDefinedNotNullNotEmpty

    Caller->>Func: Call with (key, value, timestampAttributes)
    Func->>Func: Check if key is in timestampAttributes?
    Func->>Util: Validate value (defined, not null, not empty)
    Util-->>Func: Return validity result
    alt Value is valid
        Func->>Caller: Return converted timestamp for Airship
    else Value is invalid
        Func->>Caller: Return original/null value
    end
Loading

Possibly related PRs

Suggested reviewers

  • sivashanmukh
  • maheshkutty
  • krishna2020

Poem

I hop with joy through lines of code,
A bunny celebrating fixes bestowed.
Timestamps secured with care so neat,
Bugs retreat in this rhythmic beat.
Carrots & code make a jolly treat! 🥕🐰

Happy hops into version upgrade!


📜 Recent review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 52f4e0c and 078dca8.

⛔ Files ignored due to path filters (1)
  • package-lock.json is excluded by !**/package-lock.json
📒 Files selected for processing (4)
  • CHANGELOG.md (1 hunks)
  • package.json (1 hunks)
  • src/v0/destinations/airship/utils.ts (2 hunks)
  • test/integrations/destinations/airship/processor/business.ts (3 hunks)
🧰 Additional context used
🪛 markdownlint-cli2 (0.17.2)
CHANGELOG.md

5-5: Heading levels should only increment by one level at a time
Expected: h2; Actual: h3

(MD001, heading-increment)

⏰ Context from checks skipped due to timeout of 90000ms (6)
  • GitHub Check: Code Coverage
  • GitHub Check: ingestion-service-test
  • GitHub Check: UT Tests
  • GitHub Check: test_and_publish
  • GitHub Check: Analyze (javascript-typescript)
  • GitHub Check: Analyze (javascript-typescript)
🔇 Additional comments (7)
package.json (1)

3-3: Version Bump Verified.
The package version has been correctly updated to "1.95.2" in line 3 to reflect the new release. Please ensure that the changelog and release documentation are updated accordingly if they haven't been already.

CHANGELOG.md (1)

5-10: Properly formatted changelog entry for new version.

The new changelog entry follows the project's established format and convention, clearly documenting the bug fix for the Airship destination that adds an empty check for the timestamp value. The information is correctly categorized under "Bug Fixes" with the appropriate version number, release date, and commit reference.

🧰 Tools
🪛 markdownlint-cli2 (0.17.2)

5-5: Heading levels should only increment by one level at a time
Expected: h2; Actual: h3

(MD001, heading-increment)

test/integrations/destinations/airship/processor/business.ts (3)

27-32: Enhanced timestamp attribute configuration for improved testing coverage.

Adding 'current_trip_date' and 'end_trip_date' to the timestampAttributes array provides better test coverage for edge cases with empty or null timestamp values. This change aligns with the bug fix for handling empty timestamps in the Airship destination.


53-54: Good test case coverage for edge cases.

Setting 'current_trip_date' to an empty string and 'end_trip_date' to null creates excellent test coverage for the bug fix that ensures timestamps are not empty when sending events to Airship.


136-147: Complete test case with proper expected output.

The expected output is correctly defined to match the test input values, ensuring proper validation of the timestamp handling logic for empty string and null values. This completes the test coverage for the bug fix related to handling empty timestamps.

src/v0/destinations/airship/utils.ts (2)

3-3: Important utility import for robust value validation.

Added the isDefinedNotNullNotEmpty function from the integrations library to improve the reliability of timestamp validation.


168-168: Critical bug fix for timestamp handling.

Added a check to verify that timestamp values are defined, not null, and not empty before attempting conversion. This prevents potential issues when processing invalid timestamp values and directly addresses the bug mentioned in the changelog.

- if (extractTimestampAttributes.includes(key)) {
+ if (extractTimestampAttributes.includes(key) && isDefinedNotNullNotEmpty(value)) {

This change ensures that only valid timestamp values are processed, preventing potential errors when sending events to Airship with empty timestamp values.

✨ Finishing Touches
  • 📝 Generate Docstrings

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
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai plan to trigger planning for file edits and PR creation.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@devops-github-rudderstack

Copy link
Copy Markdown
Contributor Author

Allure Test reports for this run are available at:

@codecov

codecov Bot commented Mar 27, 2025 •

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 91.06%. Comparing base (3a86a75) to head (078dca8).
Report is 7 commits behind head on develop.

Additional details and impacted files
@@           Coverage Diff            @@
##           develop    #4212   +/-   ##
========================================
  Coverage    91.06%   91.06%           
========================================
  Files          635      635           
  Lines        33172    33172           
  Branches      7832     7836    +4     
========================================
  Hits         30208    30208           
+ Misses        2747     2716   -31     
- Partials       217      248   +31     

☔ 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

@maheshkutty
maheshkutty merged commit 59c5d1e into develop Mar 27, 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.

4 participants