Skip to content

chore(release): pull main into develop post release v1.105.1 - #4524

Merged
manish339k merged 4 commits into
developfrom
main
Jul 23, 2025
Merged

manish339k merged 4 commits into
developfrom
main

Conversation

@devops-github-rudderstack

Copy link
Copy Markdown
Contributor

👑 An automated PR

@coderabbitai

coderabbitai Bot commented Jul 23, 2025 •

Copy link
Copy Markdown
Contributor

Summary by CodeRabbit

  • Chores

    • Updated workflow to explicitly set a required environment variable for deployment automation.
  • Refactor

    • Simplified application profiling configuration by removing detailed environment-based settings.
  • Tests

    • Removed tests related to deprecated profiling configuration and environment variable parsing.

Walkthrough

This change removes all detailed Pyroscope profiling configuration and related environment variable parsing from the codebase. The Pyroscope initialization is simplified, and all associated constants, helper functions, and their tests are deleted. Additionally, a GitHub Actions workflow step is updated to explicitly set the GITHUB_TOKEN environment variable.

Changes

File(s) Change Summary
.github/workflows/prepare-for-prod-dt-deploy.yml Adds GITHUB_TOKEN environment variable using secret PAT in a workflow step.
src/middleware.js Removes all Pyroscope profiling configuration constants, parseEnvInt helper, and explicit start call.
src/middleware.test.js Deletes tests for removed constants and helper, updates Pyroscope initialization test accordingly.

Sequence Diagram(s)

sequenceDiagram
    participant GitHub Actions
    participant Shell Script
    participant GitHub API

    GitHub Actions->>Shell Script: Run update & PR script with GITHUB_TOKEN from PAT
    Shell Script->>GitHub API: Authenticate using GITHUB_TOKEN
    Shell Script->>GitHub API: Perform git operations and create PR
Loading

Estimated code review effort

2 (~15 minutes)

Possibly related PRs

Suggested reviewers

  • sivashanmukh
  • vinayteki95
  • koladilip
  • ItsSudip

Suggestions for improvement:

  • Ensure that the simplified Pyroscope configuration still meets profiling requirements for production.
  • Consider documenting the rationale for removing detailed profiling parameters in the repository or PR description for future reference.
  • Verify that the workflow change does not inadvertently affect permissions or automation reliability.

📜 Recent review details

Configuration used: .coderabbit.yaml
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 040290a and 5d4372a.

⛔ Files ignored due to path filters (3)
  • CHANGELOG.md is excluded by !**/*.md
  • package-lock.json is excluded by !**/package-lock.json, !**/*.json
  • package.json is excluded by !**/*.json
📒 Files selected for processing (3)
  • .github/workflows/prepare-for-prod-dt-deploy.yml (1 hunks)
  • src/middleware.js (1 hunks)
  • src/middleware.test.js (1 hunks)
📓 Path-based instructions (1)
**/*.js

⚙️ CodeRabbit Configuration File

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

Files:

  • src/middleware.js
  • src/middleware.test.js
🧠 Learnings (1)
src/middleware.test.js (1)

Learnt from: anantjain45823
PR: #2842
File: src/v1/sources/shopify/identifierEventsLayer.test.js:5-40
Timestamp: 2024-07-27T07:02:57.329Z
Learning: The processIdentifierEvent function in identifierEventsLayer.test.js is designed to succeed for any input, hence no negative test cases are required.

🧰 Additional context used
📓 Path-based instructions (1)
**/*.js

⚙️ CodeRabbit Configuration File

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

Files:

  • src/middleware.js
  • src/middleware.test.js
🧠 Learnings (1)
src/middleware.test.js (1)

Learnt from: anantjain45823
PR: #2842
File: src/v1/sources/shopify/identifierEventsLayer.test.js:5-40
Timestamp: 2024-07-27T07:02:57.329Z
Learning: The processIdentifierEvent function in identifierEventsLayer.test.js is designed to succeed for any input, hence no negative test cases are required.

⏰ 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: UT Tests
  • GitHub Check: test_and_publish
  • GitHub Check: Analyze (javascript-typescript)
  • GitHub Check: Analyze (go)
  • GitHub Check: Analyze (javascript-typescript)
🔇 Additional comments (3)
.github/workflows/prepare-for-prod-dt-deploy.yml (1)

158-159: Good addition for consistency and authentication.

Adding the GITHUB_TOKEN environment variable ensures the gh pr create --fill command has proper authentication. This change aligns with similar steps in the workflow that already set this variable.

src/middleware.js (1)

9-9: Clear and descriptive comment improvement.

The updated comment clearly explains the purpose of the collectCpuTime: true configuration, enhancing code readability.

src/middleware.test.js (1)

36-36: Consistent comment update maintains test clarity.

The comment update matches the corresponding change in src/middleware.js, ensuring consistency between implementation and test documentation.

✨ 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.
    • Explain this complex logic.
    • 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 explain this code block.
    • @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 explain its main purpose.
    • @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.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

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 generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @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.

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 Jul 23, 2025 •

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 91.44%. Comparing base (bf8007e) to head (5d4372a).
Report is 6 commits behind head on develop.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #4524      +/-   ##
===========================================
- Coverage    91.44%   91.44%   -0.01%     
===========================================
  Files          639      639              
  Lines        33786    33774      -12     
  Branches      7989     7978      -11     
===========================================
- Hits         30897    30885      -12     
- Misses        2627     2655      +28     
+ Partials       262      234      -28     

☔ 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

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.

5 participants