Repository navigation
chore: run ingestion svc test after artefacts build - #4196
Conversation
Summary by CodeRabbit
Summary by CodeRabbit
WalkthroughThe workflow configuration for the Ingestion Service Test has been revised, removing previous triggers for Changes
Sequence Diagram(s)📜 Recent review detailsConfiguration used: .coderabbit.yaml 📥 CommitsReviewing files that changed from the base of the PR and between d4fcc76751c6d859451821d513742a0a9f7a42c7 and e128d19. 📒 Files selected for processing (2)
🚧 Files skipped from review as they are similar to previous changes (2)
⏰ Context from checks skipped due to timeout of 90000ms (9)
🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
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)
Other keywords and placeholders
Documentation and Community
|
There was a problem hiding this comment.
Actionable comments posted: 0
🧹 Nitpick comments (3)
.github/workflows/ingestion-service-test.yml (3)
4-7: Workflow Trigger Update: Ensure Correct Dependency on Build Artifacts Workflow
The workflow now triggers on aworkflow_runevent for the "Build Artifacts for PRs" workflow with typecompleted, which aligns with the PR objective. Please verify that the upstream workflow reliably produces the expected artifacts and completes successfully before these tests run.
34-35: Environment Variable Assignment: Verify Branch Reference Context
The environment variableTRANSFORMER_IMAGE_TAG_FOR_TESTis set using${{ github.head_ref }}. Note that in the context of aworkflow_runevent,github.head_refmay not hold the intended branch reference value. Consider using${{ github.event.workflow_run.head_branch }}to ensure the correct branch information is passed for testing purposes.
27-32: Cloning and Dependency Installation Steps: Confirm Robustness and Security
The steps to clone the ingestion service repository and download Go modules appear standard. Please ensure that:
- The use of
${{ secrets.PAT }}in the clone URL is secure and has the necessary permission scopes.- Any potential issues (e.g., network errors during cloning or dependency resolution) are handled gracefully downstream (if needed).
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📥 Commits
Reviewing files that changed from the base of the PR and between b7be28f and 1e9440edfd799f93b962d9e94a738bf5d4440fda.
📒 Files selected for processing (1)
.github/workflows/ingestion-service-test.yml(2 hunks)
⏰ Context from checks skipped due to timeout of 90000ms (8)
- 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: test_and_publish
- GitHub Check: UT Tests
- GitHub Check: Analyze (javascript-typescript)
🔇 Additional comments (1)
.github/workflows/ingestion-service-test.yml (1)
36-39: Test Execution Command Verification
The "Run tests" step callsmake testwith specific package and exclude filters. Confirm that these arguments (package=internal/gatewayandexclude='internal/gateway/.+') accurately target the intended test suites of the ingestion service. If there are any recent changes in the test organization, the command might need adjustment.
|
Allure Test reports for this run are available at:
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #4196 +/- ##
===========================================
+ Coverage 91.17% 91.21% +0.04%
===========================================
Files 632 632
Lines 33079 33057 -22
Branches 7831 7832 +1
===========================================
- Hits 30160 30154 -6
+ Misses 2674 2658 -16
Partials 245 245 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Actionable comments posted: 0
🧹 Nitpick comments (2)
.github/workflows/ingestion-service-test.yml (2)
10-15: Clarify Commented-Out Workflow TriggerThe commented-out block for the
workflow_runtrigger provides context for a potential future scenario (i.e., running tests after "Build Artifacts for PRs" completes). Consider adding an inline comment that describes under which conditions or why this trigger should be enabled. This will help future maintainers understand its intended usage without ambiguity.
41-42: Review Hardcoded Environment Variable ValueThe new
TRANSFORMER_IMAGE_TAG_FOR_TESTenvironment variable is hardcoded to1.95.0, which currently meets the testing requirements. For better long-term maintainability, consider either parameterizing this value or adding an explanatory comment regarding why this specific image tag is used. This will simplify updates if the image version needs to change in the future.
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📥 Commits
Reviewing files that changed from the base of the PR and between 1e9440edfd799f93b962d9e94a738bf5d4440fda and 84f8b622d8732cde3c3c162ce19407f386f82491.
📒 Files selected for processing (1)
.github/workflows/ingestion-service-test.yml(2 hunks)
⏰ Context from checks skipped due to timeout of 90000ms (9)
- 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: 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: ingestion-service-test
- GitHub Check: Analyze (javascript-typescript)
|
Allure Test reports for this run are available at:
|
1 similar comment
|
Allure Test reports for this run are available at:
|
There was a problem hiding this comment.
Actionable comments posted: 0
🧹 Nitpick comments (1)
.github/workflows/ingestion-service-test.yml (1)
19-19: Environment Variable Enhancement: Consider Fallback for Head Reference
UpdatingTRANSFORMER_IMAGE_TAG_FOR_TESTto use${{ github.head_ref }}improves context for the tests. However, sincegithub.head_refcan be empty in non-PR scenarios, consider adding a fallback to${{ github.sha }}to ensure the variable always has a valid value. For instance:- TRANSFORMER_IMAGE_TAG_FOR_TEST: ${{ github.head_ref }} + TRANSFORMER_IMAGE_TAG_FOR_TEST: ${{ github.head_ref || github.sha }}If this workflow is exclusively executed in a PR context, the current change is acceptable.
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📥 Commits
Reviewing files that changed from the base of the PR and between 3bf92f31a800bf16f3b1fdd13588387789296c52 and e06df61bf44e086e6aef03cddcdd10e18fc3eb90.
📒 Files selected for processing (1)
.github/workflows/ingestion-service-test.yml(2 hunks)
⏰ Context from checks skipped due to timeout of 90000ms (8)
- 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: 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: Code Coverage
- GitHub Check: UT Tests
- GitHub Check: test_and_publish
- GitHub Check: Analyze (javascript-typescript)
🔇 Additional comments (1)
.github/workflows/ingestion-service-test.yml (1)
4-8: Workflow Trigger Update: Verify Test Execution Timing
The newworkflow_runtrigger configured on lines 4–8 to kick off upon the completion of "Build Artifacts for PRs" is well aligned with the PR objective. This change ensures that ingestion service tests execute right after artefacts are built, reducing unnecessary runs from direct pushes or PR changes.Please double-check that there are no edge cases where the intended artifacts workflow might not properly trigger this job.
|
Allure Test reports for this run are available at:
|
1 similar comment
|
Allure Test reports for this run are available at:
|
There was a problem hiding this comment.
Actionable comments posted: 0
🧹 Nitpick comments (1)
.github/workflows/ingestion-service-test.yml (1)
18-19: Dynamic Environment Variable UpdateUpdating
TRANSFORMER_IMAGE_TAG_FOR_TESTto use${{ github.head_ref }}is a good move toward dynamic branch tagging. However, note that in the context of aworkflow_runtrigger,${{ github.head_ref }}might not always be populated (since it is typically set for pull request events). If the intended behavior is to capture the branch from which the build artifacts were generated, consider validating that this variable is indeed available; otherwise, you might explore using${{ github.event.workflow_run.head_branch }}as an alternative.
📜 Review details
Configuration used: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
📥 Commits
Reviewing files that changed from the base of the PR and between 88cc20ec62053311c5a970576edae3a7e7956a9b and b06d99c0bd60ebd6bbd7beaa0ae96262b8b77190.
📒 Files selected for processing (1)
.github/workflows/ingestion-service-test.yml(2 hunks)
⏰ Context from checks skipped due to timeout of 90000ms (7)
- 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: Analyze (javascript-typescript)
🔇 Additional comments (2)
.github/workflows/ingestion-service-test.yml (2)
4-7: Streamline Workflow Trigger ConfigurationThe new
workflow_runtrigger correctly aligns with the PR objective by ensuring that ingestion service tests run after the "Build Artifacts for PRs" workflow completes. This approach simplifies the triggering conditions compared to the earlier multiple event triggers. Please double-check that no legacy trigger conditions (likepushorpull_request) are required elsewhere.
9-17: Concurrency and Job Setup VerificationThe concurrency configuration is solid, using the dynamic group expression to prevent overlapping run instances. Additionally, the overall job setup including checkout, Go setup, and dependency installation is organized and clear. No issues detected here.
|
Allure Test reports for this run are available at:
|
|
Allure Test reports for this run are available at:
|
There was a problem hiding this comment.
Actionable comments posted: 0
🧹 Nitpick comments (1)
.github/workflows/ingestion-service-test.yml (1)
18-19: Dynamic Image Tag Assignment
The environment variableTRANSFORMER_IMAGE_TAG_FOR_TESTis now set using${{ github.head_ref }}, which dynamically reflects the current branch reference as intended. Consider adding a fallback (e.g.,${{ github.head_ref || github.sha }}) to handle cases wheregithub.head_refmight be empty.
📜 Review details
Configuration used: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
📥 Commits
Reviewing files that changed from the base of the PR and between b06d99c0bd60ebd6bbd7beaa0ae96262b8b77190 and be50eb746267bd4044ecf1b0b4497a6a8d70aa5a.
📒 Files selected for processing (1)
.github/workflows/ingestion-service-test.yml(2 hunks)
⏰ Context from checks skipped due to timeout of 90000ms (6)
- GitHub Check: Code Coverage
- 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: test_and_publish
🔇 Additional comments (3)
.github/workflows/ingestion-service-test.yml (3)
4-7: Streamlined Trigger Configuration
The workflow now triggers on aworkflow_runevent for the "Build Artifacts for PRs" workflow upon its completion. This design aligns well with the objective of ensuring ingestion service tests run after artefacts are built. Please verify that the "Build Artifacts for PRs" workflow reliably completes before this workflow executes.
27-29: Enhanced Go Setup with Version File
Switching toactions/setup-go@v5with thego-version-fileset torudder-ingestion-svc/go.modimproves maintainability by relying on the module’s declared Go version. Ensure that the referencedgo.modfile exists and properly specifies the desired Go version.
31-34: Additional Dependency Logging
The inclusion of thego versioncommand in the "Install dependencies" step provides valuable logging information about the Go environment, which can aid in troubleshooting. This is a useful enhancement with no further modifications needed.
79d7745
There was a problem hiding this comment.
Actionable comments posted: 1
📜 Review details
Configuration used: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
📥 Commits
Reviewing files that changed from the base of the PR and between be50eb746267bd4044ecf1b0b4497a6a8d70aa5a and fb7c2ba64403ad0d34165e10b0e797a51c89839a.
📒 Files selected for processing (2)
.github/workflows/build-pr-artifacts.yml(1 hunks).github/workflows/ingestion-service-test.yml(2 hunks)
🧰 Additional context used
🪛 actionlint (1.7.4)
.github/workflows/build-pr-artifacts.yml
79-79: property "generate-tag-names" is not defined in object type {build-transformer-image: {outputs: {}; result: string}}
(expression)
⏰ Context from checks skipped due to timeout of 90000ms (8)
- GitHub Check: Code Coverage
- 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 ARM64
- GitHub Check: test_and_publish
- GitHub Check: UT Tests
- GitHub Check: Analyze (javascript-typescript)
- GitHub Check: Analyze (go)
🔇 Additional comments (3)
.github/workflows/ingestion-service-test.yml (3)
4-8: Define Workflow Call Trigger with Required InputThe addition of the
workflow_calltrigger along with thebuild_taginput is a solid enhancement. This change facilitates passing dynamic build tag values when invoking the workflow. Ensure that all calling workflows supply a valid string forbuild_tagto prevent runtime issues.
18-20: Set Environment Variable for Image ReferenceThe environment variable
TRANSFORMER_IMAGE_NAME_FOR_TESTis now assigned using the inputbuild_tag, which increases the consistency of image tagging in the tests. For clarity and maintainability, consider adding a brief inline comment explaining that this variable is used to reference the specific transformer image built for testing.
27-31: Update Go Setup for Flexible Version ManagementSwitching to the
go-version-fileconfiguration in the Go setup step is a welcome improvement. This method allows the workflow to dynamically pick up the Go version specified inrudder-ingestion-svc/go.mod, thereby enhancing version management flexibility. Ensure that the referencedgo.modaccurately reflects the desired Go version.
|
Allure Test reports for this run are available at:
|
3 similar comments
|
Allure Test reports for this run are available at:
|
|
Allure Test reports for this run are available at:
|
|
Allure Test reports for this run are available at:
|
d4fcc76 to
e128d19
Compare
|
Allure Test reports for this run are available at:
|
|
There was a problem hiding this comment.
Pull Request Overview
This PR updates the CI workflows to run the ingestion service tests after the artifacts build.
- Updates the ingestion service test workflow to use workflow_call with required inputs and secrets.
- Adds a new build workflow job that calls the ingestion service test workflow with a build tag input.
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| .github/workflows/ingestion-service-test.yml | Updated to use workflow_call, with new input parameters and env vars. |
| .github/workflows/build-pr-artifacts.yml | Added new job to trigger the ingestion service tests post artefacts build. |
Comments suppressed due to low confidence (1)
.github/workflows/ingestion-service-test.yml:21
- [nitpick] The environment variable name TRANSFORMER_IMAGE_NAME_FOR_TEST might be misleading given that the workflow clones the rudder-ingestion-svc repository. Consider renaming it to reflect the ingestion service context, e.g., INGESTION_SERVICE_IMAGE_NAME_FOR_TEST, if appropriate.
TRANSFORMER_IMAGE_NAME_FOR_TEST: ${{ inputs.build_tag }}
* chore(docs): update README on how to configure secrets in tests (#4242) * chore: remove conplexity issue and redundant comments (#4250) * chore: remove conplexity issue and redundant comments * chore: address comment * chore(deps): bump rudderlabs/build-scan-push-action from 1.5.2 to 1.5.3 (#4236) chore(deps): bump build scan push action to 1.5.3 Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(pyroscope): use forked pyroscope middleware with latest updates * chore(pyroscope): use forked pyroscope middleware with latest updates * chore(pyroscope): use rudderstack scoped pyroscope nodejs * chore(pyroscope): scope and version change * chore: run ingestion svc test after artefacts build (#4196) * chore: run ingestion svc test after artefacts build * fix: test * fix: test * fix: test * chore: test * chore: test * chore: use go version file * chore: use transformer image * chore: misc * chore: review comment * chore: misc * chore: pass secrets * chore: fix workflow * chore: add docker login * chore: pull image * chore: misc * chore: misc * chore: misc * chore: cleanup * chore: remmove env * chore: remove branch * chore: bump actions/setup-node from 4.0.4 to 4.4.0 (#4262) chore(deps): bump actions/setup-node from 4.0.4 to 4.4.0 Bumps [actions/setup-node](https://github.com/actions/setup-node) from 4.0.4 to 4.4.0. - [Release notes](https://github.com/actions/setup-node/releases) - [Commits](actions/setup-node@v4.0.4...v4.4.0) --- updated-dependencies: - dependency-name: actions/setup-node dependency-version: 4.4.0 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps): bump codecov/codecov-action from 5.4.0 to 5.4.2 (#4264) Bumps [codecov/codecov-action](https://github.com/codecov/codecov-action) from 5.4.0 to 5.4.2. - [Release notes](https://github.com/codecov/codecov-action/releases) - [Changelog](https://github.com/codecov/codecov-action/blob/main/CHANGELOG.md) - [Commits](codecov/codecov-action@v5.4.0...v5.4.2) --- updated-dependencies: - dependency-name: codecov/codecov-action dependency-version: 5.4.2 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore: convert necessary fields to string for pinterest (#4272) * feat: onboarding new destination loops (#3976) (#4235) * feat: identify and track for loops (#3976) * feat: identify and track for loops * feat: test for mailing lists * Update src/cdk/v2/destinations/loops/procWorkflow.yaml Co-authored-by: Yashasvi Bajpai <[email protected]> * fix: added response step; updated tests * fix: better way to get email and userId * feat: some changes * feat: use type --------- Co-authored-by: Yashasvi Bajpai <[email protected]> * fix: minor issues * chore: added test * feat: identify and track for loops (#3976) * feat: identify and track for loops * feat: test for mailing lists * Update src/cdk/v2/destinations/loops/procWorkflow.yaml Co-authored-by: Yashasvi Bajpai <[email protected]> * fix: added response step; updated tests * fix: better way to get email and userId * feat: some changes * feat: use type --------- Co-authored-by: Yashasvi Bajpai <[email protected]> * fix: minor issues * chore: added test * chore: update test to new structure * chore: minor change * chore: minor change --------- Co-authored-by: Dan <[email protected]> Co-authored-by: Yashasvi Bajpai <[email protected]> * feat: onboarding snapchat v3 (#4052) * feat: snapchat v3 * chore: added mappings for v3 * chore: small fix * chore: updated files * feat: onboarding snapchat capi v3 * feat: refactoring and some changes * chore: minor changes * chore: added tests and minor refactoring * fix: minor change * chore: minor changes --------- Co-authored-by: Manish Kumar <[email protected]> Co-authored-by: Manish Kumar <[email protected]> * fix(dynamicConfigParser): fix cloning issue in getdynamicconfig method (#4278) fix(dynamic config): fix cloning issue in getdynamicconfig method Resolves INT-3571 - Fix bug where original event was being modified instead of cloned event - Add comprehensive tests to verify the fix works correctly - Implement table-driven tests for better maintainability * feat(mixpanel): add support for partial batch failure handling (#4260) * feat(mixpanel): add support for partial batch failure handling * chore: misc * fix: handler * fix: handler * fix: review comments * fix: review comments * chore: review comments * chore: review comments * chore: review comments * chore: review comments * chore: review comments * chore: remove unused code * chore: table test case * chore: table test case * fix: test * chore: improve test * chore: upgrade salesforce api version from v50.0 to v63.0 (#4116) Co-authored-by: Manish Kumar <[email protected]> Co-authored-by: Manish Kumar <[email protected]> * chore: return error when gzip compression fails (#4283) chore: return error when gzip compression fails for mp * chore: revert "chore: upgrade salesforce api version from v50.0 to v63.0" (#4285) Revert "chore: upgrade salesforce api version from v50.0 to v63.0 (#4116)" This reverts commit c600f53. * chore: improving code coverage of snapchat conversion (#4284) * chore: improving code coverage of snapchat conversion * chore: minor change * fix: timestamp duration in v2 api * chore(release): 1.98.0 --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: Dilip Kola <[email protected]> Co-authored-by: Yashasvi Bajpai <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Vinay Teki <[email protected]> Co-authored-by: Mahesh Kutty <[email protected]> Co-authored-by: Manish Kumar <[email protected]> Co-authored-by: Dan <[email protected]> Co-authored-by: Aanshi Lahoti <[email protected]> Co-authored-by: Manish Kumar <[email protected]> Co-authored-by: GitHub Actions <[email protected]>



What are the changes introduced in this PR?
Write a brief explainer on your code changes.
What is the related Linear task?
Resolves INT-2926
Please explain the objectives of your changes below
Put down any required details on the broader aspect of your changes. If there are any dependent changes, mandatorily mention them here
Any changes to existing capabilities/behaviour, mention the reason & what are the changes ?
N/A
Any 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?
N/A
@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.