Skip to content

commented aws for rag_ingestion action#269

Merged
rootflo-hardik merged 1 commit intodevelopfrom
fix_comment_aws_rag_ingestion_action
Apr 4, 2026
Merged

commented aws for rag_ingestion action#269
rootflo-hardik merged 1 commit intodevelopfrom
fix_comment_aws_rag_ingestion_action

Conversation

@rootflo-hardik
Copy link
Copy Markdown
Contributor

@rootflo-hardik rootflo-hardik commented Apr 4, 2026

Summary by CodeRabbit

  • Chores
    • Disabled automated container publishing to AWS in the build pipeline

@coderabbitai
Copy link
Copy Markdown

coderabbitai bot commented Apr 4, 2026

📝 Walkthrough

Walkthrough

This change disables AWS ECR publishing functionality in the GitHub Actions workflow by commenting out AWS-related environment variables and corresponding build, push, and cleanup steps. GCP Artifact Registry and Azure ACR operations remain unchanged and active.

Changes

Cohort / File(s) Summary
GitHub Actions Workflow Configuration
.github/workflows/build-rag-ingestion-develop.yaml
Disabled AWS ECR publishing logic by commenting out environment variables (AWS_REGION, ECR_REGISTRY, ECR_REPOSITORY) and related steps for AWS credential configuration, ECR login, Docker image tagging/pushing, and ECR image cleanup. GCP and Azure container registry operations remain active.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

Possibly related PRs

Suggested reviewers

  • vizsatiz
  • vishnurk6247

Poem

🐰 AWS paths we've combed and combed,
Now paused, the ECR steps go silent at home,
GCP and Azure still march with cheer—
A workflow simplified, crystal clear! 🎭

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The PR title accurately describes the main change: disabling AWS/ECR publishing in the RAG ingestion workflow by commenting out related configurations and steps.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix_comment_aws_rag_ingestion_action

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

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Copy Markdown

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🧹 Nitpick comments (2)
.github/workflows/build-rag-ingestion-develop.yaml (2)

12-14: Prefer an explicit AWS publish toggle over commented env keys.

Using commented env entries makes the workflow harder to reason about. Keep env keys active and gate behavior with a boolean flag.

♻️ Proposed refactor
 env:
   PROJECT_ID: aesy-330511
   GCP_REGION: asia-south1
   GAR_LOCATION: asia-south1-docker.pkg.dev/aesy-330511/root-hub
   IMAGE_NAME: auraflo-rag-ingestion
-
-  # AWS_REGION: ap-south-1
-  # ECR_REGISTRY: 025066241490.dkr.ecr.ap-south-1.amazonaws.com
-  # ECR_REPOSITORY: rootflo/auraflo-rag-ingestion
+  ENABLE_AWS_ECR_PUBLISH: "false"
+  AWS_REGION: ap-south-1
+  ECR_REGISTRY: 025066241490.dkr.ecr.ap-south-1.amazonaws.com
+  ECR_REPOSITORY: rootflo/auraflo-rag-ingestion
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In @.github/workflows/build-rag-ingestion-develop.yaml around lines 12 - 14,
Replace the commented AWS env keys with an explicit boolean toggle and gate
publish steps on it: add an env var PUBLISH_TO_AWS (default "false") alongside
active AWS_REGION, ECR_REGISTRY and ECR_REPOSITORY entries, and update the
publish job/step condition to run only when PUBLISH_TO_AWS == "true" (use the
GitHub Actions if: condition referencing env.PUBLISH_TO_AWS). Ensure the AWS_*
variables are present in the env scope used by the publish steps and remove the
commented lines to avoid confusion.

72-86: Use conditional steps instead of commented-out AWS publish/cleanup blocks.

Commented executable steps become stale quickly. Keep the steps live and guard them with if: so AWS can be toggled safely per env.

♻️ Proposed refactor
-      # - name: Configure AWS credentials
-      #   uses: aws-actions/configure-aws-credentials@v1
-      #   with:
-      #     aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
-      #     aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
-      #     aws-region: ${{ env.AWS_REGION }}
+      - name: Configure AWS credentials
+        if: env.ENABLE_AWS_ECR_PUBLISH == 'true'
+        uses: aws-actions/configure-aws-credentials@v1
+        with:
+          aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
+          aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
+          aws-region: ${{ env.AWS_REGION }}

-      # - name: Login to Amazon ECR
-      #   id: login-ecr
-      #   uses: aws-actions/amazon-ecr-login@v1
+      - name: Login to Amazon ECR
+        if: env.ENABLE_AWS_ECR_PUBLISH == 'true'
+        id: login-ecr
+        uses: aws-actions/amazon-ecr-login@v1

-      # - name: Tag and push image to Amazon ECR
-      #   run: |
-      #     docker tag rootflo:${{ env.IMAGE_TAG }} ${{ env.ECR_REGISTRY }}/${{ env.ECR_REPOSITORY }}:${{ env.IMAGE_TAG }}
-      #     docker push ${{ env.ECR_REGISTRY }}/${{ env.ECR_REPOSITORY }}:${{ env.IMAGE_TAG }}
+      - name: Tag and push image to Amazon ECR
+        if: env.ENABLE_AWS_ECR_PUBLISH == 'true'
+        run: |
+          docker tag rootflo:${{ env.IMAGE_TAG }} ${{ env.ECR_REGISTRY }}/${{ env.ECR_REPOSITORY }}:${{ env.IMAGE_TAG }}
+          docker push ${{ env.ECR_REGISTRY }}/${{ env.ECR_REPOSITORY }}:${{ env.IMAGE_TAG }}

-          # docker rmi ${{ env.ECR_REGISTRY }}/${{ env.ECR_REPOSITORY }}:${{ env.IMAGE_TAG }} || true
+          if [ "${{ env.ENABLE_AWS_ECR_PUBLISH }}" = "true" ]; then
+            docker rmi ${{ env.ECR_REGISTRY }}/${{ env.ECR_REPOSITORY }}:${{ env.IMAGE_TAG }} || true
+          fi

Also applies to: 106-106

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In @.github/workflows/build-rag-ingestion-develop.yaml around lines 72 - 86,
Un-comment the three AWS-related steps and convert them into conditional steps
guarded by an `if:` expression (e.g., `if: env.AWS_PUBLISH == 'true'`) so they
only run when publishing is desired; specifically update the steps named
"Configure AWS credentials", "Login to Amazon ECR", and "Tag and push image to
Amazon ECR" to remove the comment markers and add the `if:` guard, keep the
original `with:` keys (aws-access-key-id, aws-secret-access-key, aws-region) and
the docker tag/push commands intact, and ensure the workflow uses the
`aws-actions/configure-aws-credentials@v1` and `aws-actions/amazon-ecr-login@v1`
actions as before so toggling via the AWS_PUBLISH env variable enables/disables
publishing without leaving commented-out code.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Nitpick comments:
In @.github/workflows/build-rag-ingestion-develop.yaml:
- Around line 12-14: Replace the commented AWS env keys with an explicit boolean
toggle and gate publish steps on it: add an env var PUBLISH_TO_AWS (default
"false") alongside active AWS_REGION, ECR_REGISTRY and ECR_REPOSITORY entries,
and update the publish job/step condition to run only when PUBLISH_TO_AWS ==
"true" (use the GitHub Actions if: condition referencing env.PUBLISH_TO_AWS).
Ensure the AWS_* variables are present in the env scope used by the publish
steps and remove the commented lines to avoid confusion.
- Around line 72-86: Un-comment the three AWS-related steps and convert them
into conditional steps guarded by an `if:` expression (e.g., `if:
env.AWS_PUBLISH == 'true'`) so they only run when publishing is desired;
specifically update the steps named "Configure AWS credentials", "Login to
Amazon ECR", and "Tag and push image to Amazon ECR" to remove the comment
markers and add the `if:` guard, keep the original `with:` keys
(aws-access-key-id, aws-secret-access-key, aws-region) and the docker tag/push
commands intact, and ensure the workflow uses the
`aws-actions/configure-aws-credentials@v1` and `aws-actions/amazon-ecr-login@v1`
actions as before so toggling via the AWS_PUBLISH env variable enables/disables
publishing without leaving commented-out code.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: abaeae29-2ef6-45c4-9319-04ff197193c4

📥 Commits

Reviewing files that changed from the base of the PR and between 0631d6c and 8c45bbf.

📒 Files selected for processing (1)
  • .github/workflows/build-rag-ingestion-develop.yaml

@rootflo-hardik rootflo-hardik merged commit da41526 into develop Apr 4, 2026
9 checks passed
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.

2 participants