Skip to content

fix: seperate dt and ut devops prs - #4223

Merged
vinayteki95 merged 1 commit into
developfrom
chore.ut-dt-devops-pr-workflow
Apr 3, 2025
Merged

vinayteki95 merged 1 commit into
developfrom
chore.ut-dt-devops-pr-workflow

Conversation

@vinayteki95

Copy link
Copy Markdown
Contributor

What are the changes introduced in this PR?

Git workflows are fixed to create separate devops PRs for UT and DT

What is the related Linear task?

Resolves INT-3439

Please explain the objectives of your changes below

Clean up of devops git workflows

Any changes to existing capabilities/behaviour, mention the reason & what are the changes ?

No

Any new dependencies introduced with this change?

No

Any new generic utility introduced or modified. Please explain the changes.

No

Any technical or performance related pointers to consider with the change?

No

@coderabbitai review


Developer checklist

  • My code follows the style guidelines of this project

  • No breaking changes are being introduced.

  • All related docs linked with the PR?

  • All changes manually tested?

  • Any documentation changes needed with this change?

  • Is the PR limited to 10 file changes?

  • Is the PR limited to one linear task?

  • Are relevant unit and component test-cases added in new readability format?

Reviewer checklist

  • Is the type of change in the PR title appropriate as per the changes?

  • Verified that there are no credentials or confidential data exposed with the changes.

@vinayteki95
vinayteki95 requested a review from a team April 1, 2025 11:24
@coderabbitai

coderabbitai Bot commented Apr 1, 2025 •

Copy link
Copy Markdown
Contributor

Summary by CodeRabbit

  • Chores
    • Removed redundant image update configurations for an older component.
    • Revised deployment workflows to update image settings and adjust configuration paths consistently.

Walkthrough

This pull request updates two deployment workflow files. In the DT deployment workflow, lines that update the user-transformer image tag and repository in the environment YAML files were removed, leaving only the rudder-transformer updates intact. In the UT deployment workflow, the helm charts directory path has been changed and additional yq commands were introduced to update the image tag and repository (using the $TAG_NAME and $TF_IMAGE_REPOSITORY variables) in several YAML files before staging the changes. No modifications were made to the declarations of exported or public entities.

Changes

Files Change Summary
.github/workflows/prepare-for-prod-dt-deploy.yml (affects production.yaml, enterprise.yaml, multi-tenant.yaml) Removed lines that update user-transformer image tag and repository, retaining updates for rudder-transformer.
.github/workflows/prepare-for-prod-ut-deploy.yml (affects production.yaml, enterprise/…/enterprise.yaml, multi-tenant/…/multi-tenant.yaml, base.yaml) Updated helm charts directory from helm-charts/config-be-rudder-transformer/environment/prod to .../shared-services/per-az/environment/production; added yq commands to update image tag and repository using environment variables; staged changes and updated base.yaml after returning to the original directory.

Sequence Diagram(s)

sequenceDiagram
    autonumber
    participant CI as CI Workflow
    participant Prod as Production YAML
    participant Ent as Enterprise YAML
    participant Multi as Multi-Tenant YAML
    participant Base as Base YAML

    CI ->> CI: Change directory to updated helm charts path
    CI ->> Prod: Update image tag & repository using yq
    CI ->> Ent: Update image tag & repository using yq
    CI ->> Multi: Update image tag & repository using yq
    CI ->> CI: Stage changes for updated YAML files
    CI ->> Base: Return to original directory and update base.yaml
Loading

Suggested reviewers

  • sandeepdsvs

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.

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.

@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 (4)
.github/workflows/prepare-for-prod-ut-deploy.yml (4)

113-116: Helm Chart Update for Production YAML

The change updates the working directory to helm-charts/shared-services/per-az/environment/production and then uses yq to modify production.yaml by setting .user-transformer.image.tag to $TAG_NAME and .user-transformer.image.repository to $TF_IMAGE_REPOSITORY. Please verify that this new path and the intended file update align with your UT deployment configuration.


118-120: Enterprise YAML Update Verification

The commands for enterprise/enterprise.yaml correctly update the image tag and repository using the supplied variables. Ensure these values reflect the expected settings for your enterprise environment modifications.


122-124: Multi-Tenant YAML Update Check

The update for multi-tenant/multi-tenant.yaml follows the same pattern as the previous YAML files. Confirm that the modified .user-transformer.image.tag and .user-transformer.image.repository are the correct parameters for the multi-tenant configuration.


126-127: Return to Config-BE Directory and Tag Consistency

After updating the shared-services helm charts, the workflow changes directory back to ../../../../config-be-rudder-transformer/environment/prod to update base.yaml using .config-be-user-transformer.image.tag with the $UT_TAG_NAME variable. There is a mix of tag variables here—$TAG_NAME is used for the shared-services files while $UT_TAG_NAME is used in base.yaml. Please confirm that this distinction is intentional and consistent with your UT deployment strategy.

📜 Review details

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

📥 Commits

Reviewing files that changed from the base of the PR and between c03829d and 97c7675.

📒 Files selected for processing (2)
  • .github/workflows/prepare-for-prod-dt-deploy.yml (0 hunks)
  • .github/workflows/prepare-for-prod-ut-deploy.yml (1 hunks)
💤 Files with no reviewable changes (1)
  • .github/workflows/prepare-for-prod-dt-deploy.yml
⏰ Context from checks skipped due to timeout of 90000ms (9)
  • GitHub Check: Build User Transformer Docker Image - PR / Build Transformer Docker Image AMD64
  • GitHub Check: Build User Transformer Docker Image - PR / Build Transformer Docker Image ARM64
  • GitHub Check: Build Transformer Docker Image - PR / Build Transformer Docker Image AMD64
  • GitHub Check: Build Transformer Docker Image - PR / Build Transformer Docker Image ARM64
  • GitHub Check: Code Coverage
  • GitHub Check: test_and_publish
  • GitHub Check: UT Tests
  • GitHub Check: ingestion-service-test
  • GitHub Check: Analyze (javascript-typescript)

@devops-github-rudderstack

Copy link
Copy Markdown
Contributor

Allure Test reports for this run are available at:

@codecov

codecov Bot commented Apr 1, 2025 •

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 91.06%. Comparing base (078dca8) to head (97c7675).
Report is 18 commits behind head on develop.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #4223      +/-   ##
===========================================
- Coverage    91.06%   91.06%   -0.01%     
===========================================
  Files          635      635              
  Lines        33172    33175       +3     
  Branches      7836     7833       -3     
===========================================
+ Hits         30208    30210       +2     
- Misses        2716     2748      +32     
+ Partials       248      217      -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

sonarqubecloud Bot commented Apr 1, 2025

Copy link
Copy Markdown

@vinayteki95
vinayteki95 merged commit c82d934 into develop Apr 3, 2025
@vinayteki95
vinayteki95 deleted the chore.ut-dt-devops-pr-workflow branch April 3, 2025 04:14
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