Skip to content

chore: ing-svc workflow takes latest go tests - #4530

Merged
vinayteki95 merged 5 commits into
developfrom
chore.ing-svc-gitworkflow
Jul 28, 2025
Merged

vinayteki95 merged 5 commits into
developfrom
chore.ing-svc-gitworkflow

Conversation

@vinayteki95

@vinayteki95 vinayteki95 commented Jul 24, 2025 •

Copy link
Copy Markdown
Contributor

What are the changes introduced in this PR?

This PR improves the integration between rudder-transformer and rudder-ingestion-svc by enhancing existing workflows and adding automated dependency management.

Changes:
.github/workflows/ingestion-service-test.yml:
• Added local module replacement - Uses go mod edit -replace to point to local transformer code during testing

.github/workflows/prepare-for-prod-dt-deploy.yml:
• Added new workflow job update-ingestion-service that automatically updates ingestion service dependencies
• Dynamic Go version detection - Reads Go version from ingestion service's go.mod instead of hardcoding
• Automated dependency updates - Uses go get to update rudder-transformer/go to latest commit SHA on every push to main
• Auto PR creation - Creates standardized PRs in rudder-ingestion-svc repo with consistent titles and descriptions

What is the related Linear task?

Resolves INT-3911

Please explain the objectives of your changes below

Currently, manual intervention is required on any change to source-transformer in multiple repositories to manage integration tests between ingestion service and rudder transformer.

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 July 24, 2025 15:32
@coderabbitai

coderabbitai Bot commented Jul 24, 2025 •

Copy link
Copy Markdown
Contributor

Summary by CodeRabbit

  • Chores
    • Added a new workflow to automate updating the ingestion service with the latest transformer version.
    • Enhanced testing workflow to ensure the ingestion service uses the current local transformer module during tests.
    • Updated deployment workflow to trigger the new ingestion service update process.

Walkthrough

A new step was added to the ingestion-service-test GitHub Actions workflow to update the Go module in the rudder-ingestion-svc repository to use a local version of the rudder-transformer module. Additionally, a new job was introduced in the prepare-for-prod-dt-deploy workflow to automate updating the ingestion service’s transformer dependency to the latest commit and create a pull request if changes occur.

Changes

Cohort / File(s) Change Summary
Ingestion Service Test Workflow
.github/workflows/ingestion-service-test.yml
Added a step to update the Go module to use the local rudder-transformer module, run go mod tidy, and output the updated go.mod.
Prepare for Prod Deployment Workflow
.github/workflows/prepare-for-prod-dt-deploy.yml
Added a new job update-ingestion-service that calls a reusable workflow to update the ingestion service’s transformer dependency and create a pull request if updates are detected.
Update Ingestion Service Workflow
.github/workflows/update-ingestion-service.yml
Introduced a new reusable workflow that clones the ingestion service repo, sets up Go, updates the transformer dependency to the latest commit SHA, runs go mod tidy, commits and pushes changes, and creates a pull request if necessary.

Sequence Diagram(s)

sequenceDiagram
    participant GitHub Actions
    participant Ingestion Service Repo
    participant Local Transformer Module
    participant Remote Transformer Repo

    GitHub Actions->>Ingestion Service Repo: Checkout repository
    GitHub Actions->>Ingestion Service Repo: Set up Go environment
    GitHub Actions->>Ingestion Service Repo: Add 'replace' directive in go.mod to use ../go (local)
    GitHub Actions->>Ingestion Service Repo: Run 'go mod tidy'
    Ingestion Service Repo->>Local Transformer Module: Resolve dependency from local path
    GitHub Actions->>Ingestion Service Repo: Output go.mod for verification

    Note over GitHub Actions: New job for dependency update
    GitHub Actions->>Remote Transformer Repo: Get latest commit SHA
    GitHub Actions->>Ingestion Service Repo: Clone repository
    GitHub Actions->>Ingestion Service Repo: Checkout new branch
    GitHub Actions->>Ingestion Service Repo: Update transformer dependency to latest SHA
    GitHub Actions->>Ingestion Service Repo: Run 'go mod tidy'
    GitHub Actions->>Ingestion Service Repo: Commit and push changes if any
    GitHub Actions->>Ingestion Service Repo: Create pull request targeting main branch
Loading

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~20 minutes

Possibly related PRs

  • chore: run ingestion svc test after artefacts build #4196: Modifies the ingestion-service-test workflow to trigger on workflow_call with additional inputs and environment variables, and adjusts Go setup to use the version from the ingestion service's go.mod file; overlaps in modifying the ingestion-service-test workflow but focuses on different configuration aspects.

Suggested reviewers

  • sivashanmukh
  • koladilip

Suggestions for improvement:

  • Add validation in the ingestion-service-test workflow step to verify that the local path ../go exists before running go mod tidy to prevent potential failures.
  • Include error handling or notifications in the new update job to alert maintainers if the pull request creation fails or if no changes are detected.
  • Document these workflow changes and their purpose in the repository’s contributing guide or README to assist future developers in understanding the CI/CD process.

Note

⚡️ Unit Test Generation is now available in beta!

Learn more here, or try it out under "Finishing Touches" below.

✨ Finishing Touches
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch chore.ing-svc-gitworkflow

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 generate unit tests to generate unit tests for 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.

@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 (1)
.github/workflows/ingestion-service-test.yml (1)

37-44: Relative replace path may break if job changes working-directory expectations

go mod edit -replace github.com/rudderlabs/rudder-transformer/go=../go relies on:

  1. The transformer repo being checked-out at $GITHUB_WORKSPACE (root)
  2. The ingestion-svc clone living at $GITHUB_WORKSPACE/rudder-ingestion-svc
  3. The step running from inside rudder-ingestion-svc

If any of those assumptions change (e.g. another step alters working-directory, or actions/checkout uses a custom path:), the relative path resolves incorrectly and tests will silently pull the remote module.

Consider using an absolute path derived from the workspace to make the link robust:

- go mod edit -replace github.com/rudderlabs/rudder-transformer/go=../go
+go mod edit -replace \
+  github.com/rudderlabs/rudder-transformer/go=$GITHUB_WORKSPACE/go

$GITHUB_WORKSPACE is set by the runner and is stable across steps.

Alternatively, switch to a Go 1.22 workspace (go work init) to avoid per-repo replace directives entirely.

📜 Review details

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

📥 Commits

Reviewing files that changed from the base of the PR and between a59ef91 and 7570329.

📒 Files selected for processing (1)
  • .github/workflows/ingestion-service-test.yml (1 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 Transformer Docker Image - PR / Build Transformer Docker Image AMD64
  • GitHub Check: Build Transformer Docker Image - PR / Build Transformer Docker Image ARM64
  • 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: UT Tests
  • GitHub Check: test_and_publish
  • GitHub Check: Analyze (javascript-typescript)
  • GitHub Check: Analyze (go)

@devops-github-rudderstack

Copy link
Copy Markdown
Contributor

Allure Test reports for this run are available at:

@codecov

codecov Bot commented Jul 24, 2025 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 91.57%. Comparing base (5d4372a) to head (7149e3b).
⚠️ Report is 19 commits behind head on develop.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #4530      +/-   ##
===========================================
+ Coverage    91.44%   91.57%   +0.12%     
===========================================
  Files          639      639              
  Lines        33774    33774              
  Branches      7978     7986       +8     
===========================================
+ Hits         30885    30928      +43     
+ Misses        2655     2588      -67     
- Partials       234      258      +24     

☔ 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.

@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: 3

🧹 Nitpick comments (2)
.github/workflows/prepare-for-prod-dt-deploy.yml (2)

196-199: Add --depth 1 to the ingestion-svc clone to cut runner time and bandwidth
A full history fetch is unnecessary for dependency bumping. A shallow clone keeps the step < 1 s and avoids surprising rate-limit hits.

-git clone https://${{secrets.PAT}}@github.com/rudderlabs/rudder-ingestion-svc.git
+git clone --depth 1 https://${{secrets.PAT}}@github.com/rudderlabs/rudder-ingestion-svc.git

230-236: go get is deprecated from Go 1.20+ – switch to go work sync or go mod edit
Future Go releases will drop go get for editing go.mod. Replace with:

go mod edit -require=github.com/rudderlabs/rudder-transformer/go@${LATEST_SHA}
go mod tidy

This keeps the workflow future-proof.

📜 Review details

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

📥 Commits

Reviewing files that changed from the base of the PR and between 7570329 and 070ca1972457e223a9eda8f7b2a8dd6d45b12f32.

📒 Files selected for processing (1)
  • .github/workflows/prepare-for-prod-dt-deploy.yml (1 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 Transformer Docker Image - PR / Build Transformer Docker Image AMD64
  • GitHub Check: Build Transformer Docker Image - PR / Build Transformer Docker Image ARM64
  • 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)

@devops-github-rudderstack

Copy link
Copy Markdown
Contributor

Allure Test reports for this run are available at:

@vinayteki95
vinayteki95 force-pushed the chore.ing-svc-gitworkflow branch from 070ca19 to 02287c7 Compare July 28, 2025 08:46
@vinayteki95
vinayteki95 force-pushed the chore.ing-svc-gitworkflow branch from 02287c7 to d4a8e7d Compare July 28, 2025 08:50
@devops-github-rudderstack

Copy link
Copy Markdown
Contributor

Allure Test reports for this run are available at:

@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

♻️ Duplicate comments (2)
.github/workflows/prepare-for-prod-dt-deploy.yml (2)

217-235: Add set -euo pipefail for fail-fast behaviour

The shell continues after silent errors (network hiccups on go get, failed git push, etc.).
Guarding the script with strict mode surfaces failures early and avoids half-done updates.

-        run: |
+        run: |
+          set -euo pipefail
           cd rudder-ingestion-svc

221-229: Static branch name → race condition across parallel runs

Multiple workflow instances will all attempt to reuse chore.update-transformer-go-tests, leading to deletion/push races. Incorporate a unique token (e.g. short SHA or github.run_id) in the branch name.

-          branch_name="chore.update-transformer-go-tests"
+          branch_name="chore.update-transformer-go-tests-${{ github.run_id }}"

Remember to propagate the variable to the PR step.

🧹 Nitpick comments (2)
.github/workflows/prepare-for-prod-dt-deploy.yml (2)

174-177: Add an explicit if: to avoid double-running on pull_request events

Unlike the other jobs in this workflow, update-ingestion-service has no event guard.
As written, it will also run on pull_request → closed (merge) events because those are in the global on: block, resulting in the same update logic executing twice (push + PR-close). This is unnecessary load and increases the chance of race conditions.

  update-ingestion-service:
    if: github.event_name == 'push'   # <- guard

258-267: Prefer secrets.GITHUB_TOKEN over a long-lived PAT

The job still injects the personal access token (PAT) into gh commands. GitHub’s automatic GITHUB_TOKEN is scoped to the repo, rotates automatically, and is masked in logs. Switching reduces secret-management overhead and risk of accidental leak.

-        env:
-          GITHUB_TOKEN: ${{ secrets.PAT }}
+        env:
+          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Afterward, remove other explicit PAT usages (git clone, git push) by running gh auth setup-git or configuring the remote with https://x-access-token:${GITHUB_TOKEN}@github.com/....

📜 Review details

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

📥 Commits

Reviewing files that changed from the base of the PR and between 02287c7cfb648c5f9abb96ba90753fd011dc4159 and d4a8e7d.

📒 Files selected for processing (2)
  • .github/workflows/ingestion-service-test.yml (1 hunks)
  • .github/workflows/prepare-for-prod-dt-deploy.yml (1 hunks)
🚧 Files skipped from review as they are similar to previous changes (1)
  • .github/workflows/ingestion-service-test.yml
⏰ 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: Code Coverage
  • GitHub Check: Build Transformer Docker Image - PR / Build Transformer Docker Image AMD64
  • 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: test_and_publish
  • GitHub Check: UT Tests
  • GitHub Check: Analyze (go)
  • GitHub Check: Analyze (javascript-typescript)
🔇 Additional comments (1)
.github/workflows/prepare-for-prod-dt-deploy.yml (1)

255-267: Step separation looks good

Creating the PR in a dedicated step conditioned on has_changes makes logs clearer and avoids unnecessary gh invocations. Nice improvement over the earlier combined step.

@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: 3

🧹 Nitpick comments (2)
.github/workflows/update-ingestion-service.yml (2)

45-49: Enable the Go cache to speed up repeated runs

actions/setup-go supports a built-in cache for modules and build outputs. Enabling it can shave minutes off the job without extra maintenance.

      - name: Setup Go
        uses: actions/setup-go@v5
        with:
          go-version: ${{ steps.get_go_version.outputs.go_version }}
+         cache: true

98-98: Remove trailing whitespace to satisfy yamllint

There is an extra space on this blank line that breaks strict linters.

-           
+
📜 Review details

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

📥 Commits

Reviewing files that changed from the base of the PR and between d4a8e7d and 9f6b960.

📒 Files selected for processing (2)
  • .github/workflows/prepare-for-prod-dt-deploy.yml (1 hunks)
  • .github/workflows/update-ingestion-service.yml (1 hunks)
✅ Files skipped from review due to trivial changes (1)
  • .github/workflows/prepare-for-prod-dt-deploy.yml
🧰 Additional context used
🪛 GitHub Check: CodeQL
.github/workflows/update-ingestion-service.yml

[warning] 12-104: Workflow does not contain permissions
Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {{contents: read}}

🪛 YAMLlint (1.37.1)
.github/workflows/update-ingestion-service.yml

[error] 98-98: 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). (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: UT Tests
  • GitHub Check: test_and_publish
  • GitHub Check: Analyze (javascript-typescript)
  • GitHub Check: Analyze (go)
🔇 Additional comments (1)
.github/workflows/update-ingestion-service.yml (1)

92-104: Ensure GitHub CLI Auth and Non-Interactive PR Creation

To confirm that gh picks up GITHUB_TOKEN and never prompts interactively, please:

  • Add an explicit auth check in the workflow:
    - name: Verify GH auth
      run: gh auth status
      env:
        GITHUB_TOKEN: ${{ secrets.PAT }}
  • Supply all required gh pr create flags and explicitly target the repo:
    gh pr create \
      --repo ${{ github.repository }} \
      --title "chore: update transformer-go to latest version" \
      --body "This PR updates the rudder-transformer/go dependency to the latest version from the main branch." \
      --head ${{ steps.update.outputs.branch_name }} \
      --base main
  • Execute the workflow against a fork or test branch to verify it completes without hanging or awaiting input.

@devops-github-rudderstack

Copy link
Copy Markdown
Contributor

Allure Test reports for this run are available at:

@devops-github-rudderstack

Copy link
Copy Markdown
Contributor

Allure Test reports for this run are available at:

@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

♻️ Duplicate comments (2)
.github/workflows/update-ingestion-service.yml (2)

55-91: Harden the update script: strict shell options & safe push
Same concern flagged previously – still unresolved.

Add set -euo pipefail at the top of the run block to fail fast, and push with --force-with-lease to avoid clobbering remote updates unexpectedly.

-        run: |
-          cd rudder-ingestion-svc
+        run: |
+          set -euo pipefail
+          cd rudder-ingestion-svc
@@
-          git push -u origin $branch_name
+          git push --force-with-lease -u origin $branch_name

37-40: Avoid leaking the PAT – switch to actions/checkout for the ingestion-svc clone

Embedding the secret directly in the clone URL risks accidental exposure (e.g. via git remote -v, audit logs, or error messages). Use actions/checkout with the token input to keep the PAT masked and gain shallow-clone optimisation.

-      - name: Clone Ingestion Service Repo
-        run: |
-          git clone https://${{secrets.PAT}}@github.com/rudderlabs/rudder-ingestion-svc.git
+      - name: Clone Ingestion Service Repo
+        uses: actions/[email protected]
+        with:
+          repository: rudderlabs/rudder-ingestion-svc
+          token: ${{ secrets.PAT }}
+          path: rudder-ingestion-svc
+          fetch-depth: 1
🧹 Nitpick comments (1)
.github/workflows/update-ingestion-service.yml (1)

101-102: Trailing whitespace – clean up for YAML lint

Line 102 contains superfluous spaces, tripping YAML-lint (trailing-spaces rule). Delete them to keep CI green.

-          cd rudder-ingestion-svc␠␠
+          cd rudder-ingestion-svc
📜 Review details

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

📥 Commits

Reviewing files that changed from the base of the PR and between 9f6b960 and 6b81796.

📒 Files selected for processing (1)
  • .github/workflows/update-ingestion-service.yml (1 hunks)
🧰 Additional context used
🪛 YAMLlint (1.37.1)
.github/workflows/update-ingestion-service.yml

[error] 102-102: 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). (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: Analyze (javascript-typescript)
  • GitHub Check: Analyze (go)

@devops-github-rudderstack

Copy link
Copy Markdown
Contributor

Allure Test reports for this run are available at:

@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: 1

🧹 Nitpick comments (4)
.github/workflows/update-ingestion-service.yml (4)

58-99: Add concurrency control & cache for quicker, safer runs

  1. Multiple pushes to main can trigger overlapping runs. Two jobs racing to force-push the same branch or open the same PR will create flakes.
    Add a concurrency block at the job level:
concurrency:
  group: update-ingestion-service-${{ github.ref }}
  cancel-in-progress: true
  1. Installing modules from scratch every run adds minutes and bandwidth. A one-liner cache step speeds things up dramatically:
- name: Cache Go modules
  uses: actions/cache@v4
  with:
    path: |
      ~/.cache/go-build
      ${{ steps.get_go_version.outputs.go_version }}
    key: ${{ runner.os }}-go-${{ steps.get_go_version.outputs.go_version }}-${{ hashFiles('**/go.sum') }}
    restore-keys: |
      ${{ runner.os }}-go-${{ steps.get_go_version.outputs.go_version }}-

70-75: Remote branch deletion is fragile & unnecessary

git push origin --delete $branch_name fails if an open PR pins the branch (GitHub blocks deletion), yet that failure is swallowed. A subsequent git checkout -b / force-push already guarantees the remote branch matches local state, so the deletion dance can be dropped:

-# Delete the branch if it exists (both locally and remotely)
-git branch -D $branch_name 2>/dev/null || true
-git push origin --delete $branch_name 2>/dev/null || true
-
-# Create a new branch
-git checkout -b $branch_name
+# Re-create/update branch locally
+git checkout -B $branch_name

101-113: YAML-lint: trailing spaces trigger pipeline linter error

Line 107 ends with superfluous whitespace. Remove it to keep yamllint / CodeQL quiet.

-          cd rudder-ingestion-svc␠
+          cd rudder-ingestion-svc

10-13: Tighten token scope further (optional)

Because the workflow uses a personal access token (secrets.PAT) for all write operations, the GITHUB_TOKEN only needs pull-requests: read. Dropping write eliminates an unused capability and aligns with least-privilege.

permissions:
  contents: read
-  pull-requests: write
+  pull-requests: read
📜 Review details

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

📥 Commits

Reviewing files that changed from the base of the PR and between 6b81796 and 7149e3b.

📒 Files selected for processing (1)
  • .github/workflows/update-ingestion-service.yml (1 hunks)
🧰 Additional context used
🪛 YAMLlint (1.37.1)
.github/workflows/update-ingestion-service.yml

[error] 107-107: 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). (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 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 (javascript-typescript)
  • GitHub Check: Analyze (go)

@sonarqubecloud

Copy link
Copy Markdown

@vinayteki95
vinayteki95 merged commit fc5fab0 into develop Jul 28, 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.

5 participants