Repository navigation
fix: correct tag variable usage in UT deploy workflow - #4623
Conversation
- Use UT_TAG_NAME instead of TAG_NAME for shared services - Fix yq path for hosted transformer image properties - Fix yq path for dedicated transformer enabled check - Use UT_TAG_NAME for dedicated transformer image version
Summary by CodeRabbit
WalkthroughThe workflow updates switch all TAG_NAME references to UT_TAG_NAME and adjust YAML paths to new schema (kebab-case keys and .spec nesting) across hosted/dedicated/multi-tenant Helm chart edits, including config-be-rudder-transformer. Enabled checks and PR creation steps are aligned to the updated paths and UT tag convention. Changes
Sequence Diagram(s)sequenceDiagram
autonumber
actor GH as GitHub Actions Runner
participant Repo as helm-charts repos
participant YQ as yq
participant PR as GitHub PR API
Note over GH: Start prepare-for-prod-ut-deploy
GH->>GH: Read UT_TAG_NAME
GH->>Repo: Checkout helm-charts (prod/enterprise/multi-tenant)
loop Update YAML paths
GH->>YQ: Set .spec.user-transformer.image.version = UT_TAG_NAME
GH->>YQ: Set .spec.user-transformer.image.repository = <repo>
GH->>YQ: Check .spec.user-transformer.enabled
end
GH->>Repo: Update config-be-* path\n(config-be-user-transformer.image.tag)
GH->>PR: Create PRs with UT changes
Note right of PR: PR titles/paths reflect UT schema/tag updates
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Suggested reviewers
Pre-merge checks (3 passed)✅ Passed checks (3 passed)
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.
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 unit tests
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. Comment |
|
Allure Test reports for this run are available at:
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #4623 +/- ##
========================================
Coverage 91.78% 91.78%
========================================
Files 642 642
Lines 33941 33941
Branches 8045 8035 -10
========================================
Hits 31152 31152
Misses 2559 2559
Partials 230 230 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Actionable comments posted: 1
🧹 Nitpick comments (2)
.github/workflows/prepare-for-prod-ut-deploy.yml (2)
131-132: Minor: prefer pushd/popd over cd - for clarity.
cd -works but prints the path and relies on shell dir stack semantics;pushd/popdmakes the intent explicit. Optional.
186-187: Align dedicated branch name and commit message with UT tag variable.You bumped image.version to
UT_TAG_NAME; keep branch name and commit message consistent to reduce confusion.Apply:
- git checkout -b dedicated-user-transformer-$TAG_NAME + git checkout -b dedicated-user-transformer-$UT_TAG_NAME @@ - git commit -m "chore: upgrade dedicated user transformers to $TAG_NAME" - git push -u origin dedicated-user-transformer-$TAG_NAME + git commit -m "chore: upgrade dedicated user transformers to $UT_TAG_NAME" + git push -u origin dedicated-user-transformer-$UT_TAG_NAMEAlso applies to: 191-193, 165-165
📜 Review details
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
.github/workflows/prepare-for-prod-ut-deploy.yml(4 hunks)
⏰ 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). (9)
- GitHub Check: Build User Transformer Docker Image - PR / Build Transformer Docker Image ARM64
- GitHub Check: Build User Transformer Docker Image - PR / Build Transformer Docker Image AMD64
- 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: Analyze (go)
- GitHub Check: Analyze (javascript-typescript)
🔇 Additional comments (3)
.github/workflows/prepare-for-prod-ut-deploy.yml (3)
150-151: Confirm file path and YAML schema
Verify thatcustomer-objects/multi-tenant-us/hostedmtedmt.yamlis present in the checkout and that it defines.spec.user-transformer.image.versionand.spec.user-transformer.image.repositorybefore applying the yq updates.
169-181: Schema preflight and tool availability
- Add a preflight check to fail fast on schema drift, e.g.:
yq eval '.spec.user-transformer.enabled' "$f" >/dev/null \ || { echo "Schema mismatch in $f"; exit 1; }- Verify your CI runner installs
yqv4+ (soyq evalis available) and update any bulk-verification script to use the correctcustomer-objectsdirectory paths in this repo.
119-119: Confirm shared-services key path in target YAMLs
The CI script couldn’t locate or clone therudder-devopsrepo, so please manually verify that in
•helm-charts/shared-services/per-az/environment/production/production.yaml
•helm-charts/shared-services/per-az/environment/production/enterprise/enterprise.yaml
•helm-charts/shared-services/per-az/environment/production/multi-tenant/multi-tenant.yaml
the keys.user-transformer.image.tagand.user-transformer.image.repositoryare defined and used. This ensures theyq evalcommand isn’t a no-op.
|



What are the changes introduced in this PR?
Fixed inconsistent tag variable usage in the prepare-for-prod-ut-deploy.yml workflow file to ensure proper UT (User Transformer) deployment.
What is the related Linear task?
Resolves https://linear.app/rudderstack/issue/INT-4108/on-call-sep-10-16-dilip-progress-on-following-tasks
Please explain the objectives of your changes below
This PR fixes several inconsistencies in the UT deployment workflow:
Any changes to existing capabilities/behaviour, mention the reason & what are the changes ?
TAG_NAMEtoUT_TAG_NAMEfor proper UT-specific tagging.user-transformer.image.tagto.spec.user-transformer.image.version.spec.user_transformer.enabledto.spec.user-transformer.enabledand updated image version to useUT_TAG_NAMEAny new dependencies introduced with this change?
N/A
Any new generic utility introduced or modified. Please explain the changes.
N/A
Any technical or performance related pointers to consider with the change?
This ensures that UT deployments use the correct tag naming convention and proper YAML paths, preventing deployment failures.
@coderabbitai review
Developer checklist
Reviewer checklist