Repository navigation
chore: add slack notification for UT deployment PRs - #4546
Conversation
Summary by CodeRabbit
WalkthroughCaptures URLs of three created Helm chart PRs in the deployment workflow and adds a Slack notification step to post those links; additionally pins the Slack GitHub Action to a specific commit SHA in two other workflows for reproducibility. (46 words) Changes
Sequence Diagram(s)sequenceDiagram
participant Workflow as GitHub Actions Workflow
participant GitHub as GitHub
participant Slack as Slack Channel
Workflow->>GitHub: Create PR for shared Helm chart
Workflow->>GitHub: Create PR for hosted Helm chart
Workflow->>GitHub: Create PR for dedicated Helm chart
Workflow->>Workflow: Capture PR URLs as env variables
Workflow->>Slack: Send message with PR links and deployment version
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes Possibly related PRs
Suggested reviewers
Suggestions for improvement: consider centralizing Slack notification formatting (shared reusable step or composite action) and add a short comment explaining why the action is pinned to the specific commit SHA for future maintainers. ✨ 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. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. CodeRabbit Commands (Invoked using PR/Issue comments)Type Other keywords and placeholders
Status, Documentation and Community
|
There was a problem hiding this comment.
Actionable comments posted: 0
🔭 Outside diff range comments (1)
.github/workflows/prepare-for-prod-ut-deploy.yml (1)
99-134:yqis used before being installed – job will fail on a clean runner
ubuntu-latestimages do not includeyqby default, so all edit commands will exit with 127. Add an explicit install step before first use.@@ - name: Checkout uses: actions/[email protected] with: fetch-depth: 1 + + - name: Install yq + run: | + sudo wget -qO /usr/local/bin/yq https://github.com/mikefarah/yq/releases/latest/download/yq_linux_amd64 + sudo chmod +x /usr/local/bin/yq
🧹 Nitpick comments (3)
.github/workflows/publish-new-release.yml (1)
169-169: Inline comment can drift from the pinned SHA
The code pins the action to a commit, but the inline comment still says# v2.1.1. If you later bump the action to a different commit, the comment may become misleading. Consider either removing the version note or updating it together with the SHA..github/workflows/prepare-for-prod-ut-deploy.yml (2)
138-140: Reuse of temporaryPR_URLvar is harmless but hurts log clarity
Each block re-uses the same shell variable namePR_URL. While scoped to the individual script, future refactors may inadvertently reference the wrong value. Consider distinct names (SHARED_PR,HOSTED_PR,DEDICATED_PR) to keep log output unambiguous.Also applies to: 156-158, 193-195
211-211: YAML-lint trailing-space warning
Line 211 contains trailing spaces, flagged by YAML-lint. Trim to keep the workflow lint-clean.- "type": "plain_text", + "type": "plain_text",
📜 Review details
Configuration used: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
📥 Commits
Reviewing files that changed from the base of the PR and between 65868f6 and 7a25c87b0f87b5bee62b7aaf646f360031393a7b.
📒 Files selected for processing (3)
.github/workflows/prepare-for-prod-ut-deploy.yml(3 hunks).github/workflows/publish-new-release.yml(1 hunks).github/workflows/slack-notify.yml(1 hunks)
🧰 Additional context used
🪛 YAMLlint (1.37.1)
.github/workflows/prepare-for-prod-ut-deploy.yml
[error] 211-211: trailing spaces
(trailing-spaces)
⏰ 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). (8)
- GitHub Check: Build User Transformer Docker Image - PR / Build Transformer Docker Image AMD64
- GitHub Check: Build Transformer Docker Image - PR / Build Transformer Docker Image ARM64
- GitHub Check: Build Transformer Docker Image - PR / Build Transformer Docker Image AMD64
- GitHub Check: Code Coverage
- GitHub Check: UT Tests
- GitHub Check: test_and_publish
- GitHub Check: Analyze (go)
- GitHub Check: Analyze (javascript-typescript)
🔇 Additional comments (2)
.github/workflows/slack-notify.yml (1)
25-25: Pinned Slack action SHA – solid supply-chain hardening
Moving from a version tag to the exact commit SHA improves reproducibility and defends against tag-hijacking attacks. Looks good..github/workflows/prepare-for-prod-ut-deploy.yml (1)
218-220: Slack message showstag_name_utbut dedicated PR usesTAG_NAME
For dedicated transformers you branch and version with${{ env.TAG_NAME }}, yet the Slack payload advertises${{ needs.generate-tag-names.outputs.tag_name_ut }}. If these diverge (e.g.,ut-x.y.zvsx.y.z) the message will mis-lead reviewers. Please verify which tag should be surfaced.
|
Allure Test reports for this run are available at:
|
- Add PR URL capture for shared, hosted, and dedicated transformers - Add Slack notification step with PR links for Control Plane team - Update all Slack actions to use specific commit hash for security
7a25c87 to
2ce9414
Compare
|
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 #4546 +/- ##
===========================================
+ Coverage 91.63% 91.79% +0.16%
===========================================
Files 643 642 -1
Lines 34020 33886 -134
Branches 8048 8017 -31
===========================================
- Hits 31174 31107 -67
+ Misses 2588 2549 -39
+ Partials 258 230 -28 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
There was a problem hiding this comment.
Actionable comments posted: 3
🧹 Nitpick comments (1)
.github/workflows/prepare-for-prod-ut-deploy.yml (1)
196-223: Fix trailing whitespace flagged by yamllint and verify Slack mention format.
- Lint: Remove trailing spaces (Line 211) to satisfy YAML linting.
- Mentions:
@control-plane-on-callmay not notify in Slack unless formatted as a user group or user mention token. Consider using a subteam mention token.Apply this minimal lint fix:
- "type": "plain_text", + "type": "plain_text",Optionally, update the mention to a subteam token (requires a secret with the subteam ID):
- "text": "*UT Deployment PRs Created*\nCC: @control-plane-on-call", + "text": "*UT Deployment PRs Created*\nCC: <!subteam^${{ secrets.SLACK_CP_ONCALL_SUBTEAM_ID }}|control-plane-on-call>",Follow-up:
- Confirm that
@control-plane-on-callcurrently results in a proper mention in your Slack workspace; if not, switch to the subteam token format above.- If you want to guarantee notification even when the Slack action transiently fails, the current
continue-on-error: trueis correct. If you also want to always post when PRs are created across sub-steps, consider making this step dependent only on success of the three PR steps, or explicitly document that it won’t run if those fail.
📜 Review details
Configuration used: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
📥 Commits
Reviewing files that changed from the base of the PR and between 7a25c87b0f87b5bee62b7aaf646f360031393a7b and 2ce9414.
📒 Files selected for processing (3)
.github/workflows/prepare-for-prod-ut-deploy.yml(3 hunks).github/workflows/publish-new-release.yml(1 hunks).github/workflows/slack-notify.yml(1 hunks)
🚧 Files skipped from review as they are similar to previous changes (2)
- .github/workflows/publish-new-release.yml
- .github/workflows/slack-notify.yml
🧰 Additional context used
🪛 YAMLlint (1.37.1)
.github/workflows/prepare-for-prod-ut-deploy.yml
[error] 211-211: trailing spaces
(trailing-spaces)
⏰ 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). (8)
- GitHub Check: Build 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 User Transformer Docker Image - PR / Build Transformer Docker Image AMD64
- GitHub Check: Code Coverage
- GitHub Check: test_and_publish
- GitHub Check: UT Tests
- GitHub Check: Analyze (javascript-typescript)
- GitHub Check: Analyze (go)



What are the changes introduced in this PR?
Added Slack notification functionality to the UT deployment workflow to notify the Control Plane team when DevOps PRs are created.
What is the related Linear task?
Resolves INT-3976
Please explain the objectives of your changes below
This PR implements Slack notifications for UT deployment as requested in the Linear issue. The changes include:
Any changes to existing capabilities/behaviour, mention the reason & what are the changes ?
Any new dependencies introduced with this change?
N/A - Uses existing Slack action with security update
Any new generic utility introduced or modified. Please explain the changes.
N/A
Any technical or performance related pointers to consider with the change?
Developer checklist