Skip to content

fix: update dp builder#34203

Merged
pratapaprasanna merged 2 commits intoreleasefrom
gp/update/dp/helmcharts
Jun 13, 2024
Merged

fix: update dp builder#34203
pratapaprasanna merged 2 commits intoreleasefrom
gp/update/dp/helmcharts

Conversation

@pratapaprasanna
Copy link
Contributor

@pratapaprasanna pratapaprasanna commented Jun 12, 2024

Summary by CodeRabbit

  • Chores
    • Updated deployment script to use the latest Helm chart version (3.1.1).
    • Changed database URI environment variable for better clarity and consistency.

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Jun 12, 2024

Walkthrough

The deploy_preview.sh script has been updated to enhance deployment configurations. The HELMCHART_VERSION has been upgraded from "3.0.7" to "3.1.1" for better performance and features. Additionally, the database connection string environment variable has been renamed from APPSMITH_MONGODB_URI to APPSMITH_DB_URL for improved clarity and consistency.

Changes

File Change Summary
scripts/deploy_preview.sh Updated HELMCHART_VERSION from "3.0.7" to "3.1.1". Renamed APPSMITH_MONGODB_URI to APPSMITH_DB_URL.

Poem

In the code, a change so bright,
Helmchart's version takes its flight,
From three point oh seven to one one three,
With a new DB URL for clarity.
Deployments now smoother, oh what a sight,
CodeRabbit cheers, with delight! 🐇🚀


Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

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>.
    • Generate unit testing code for this file.
    • 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 generate unit testing code for this file.
    • @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 generate interesting stats about this repository and render them as a table.
    • @coderabbitai show all the console.log statements in this repository.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @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.

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 as 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 resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Additionally, you can add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.

CodeRabbit Configration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

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.

@pratapaprasanna pratapaprasanna changed the title Update deploy_preview.sh fix: update dp builder Jun 12, 2024
Copy link
Contributor

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

Actionable comments posted: 1

Outside diff range and nitpick comments (1)
scripts/deploy_preview.sh (1)

Line range hint 30-32: Consider declaring and assigning these environment variables separately to avoid masking return values.

- export AWS_ACCESS_KEY_ID=$(echo $sts_output | jq -r '.Credentials''.AccessKeyId');\
- export AWS_SECRET_ACCESS_KEY=$(echo $sts_output | jq -r '.Credentials''.SecretAccessKey');\
- export AWS_SESSION_TOKEN=$(echo $sts_output | jq -r '.Credentials''.SessionToken');
+ AWS_ACCESS_KEY_ID=$(echo $sts_output | jq -r '.Credentials''.AccessKeyId')
+ AWS_SECRET_ACCESS_KEY=$(echo $sts_output | jq -r '.Credentials''.SecretAccessKey')
+ AWS_SESSION_TOKEN=$(echo $sts_output | jq -r '.Credentials''.SessionToken')
+ export AWS_ACCESS_KEY_ID AWS_SECRET_ACCESS_KEY AWS_SESSION_TOKEN
Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

Commits

Files that changed from the base of the PR and between 69b63fa and db1c7ed.

Files selected for processing (1)
  • scripts/deploy_preview.sh (2 hunks)
Additional context used
Shellcheck
scripts/deploy_preview.sh

[warning] 30-30: Declare and assign separately to avoid masking return values. (SC2155)


[warning] 31-31: Declare and assign separately to avoid masking return values. (SC2155)


[warning] 32-32: Declare and assign separately to avoid masking return values. (SC2155)

Additional comments not posted (1)
scripts/deploy_preview.sh (1)

41-41: Update of HELMCHART_VERSION to "3.1.1" is noted.

Ensure that this version of the Helm chart is compatible with the rest of your deployment specifications.

--set applicationConfig.APPSMITH_SENTRY_DSN="https://abf15a075d1347969df44c746cca7eaa@o296332.ingest.sentry.io/1546547" \
--set applicationConfig.APPSMITH_SENTRY_ENVIRONMENT="$NAMESPACE" \
--set applicationConfig.APPSMITH_MONGODB_URI="mongodb+srv://$DB_USERNAME:$DB_PASSWORD@$DB_URL/$DBNAME?retryWrites=true&minPoolSize=1&maxPoolSize=10&maxIdleTimeMS=900000&authSource=admin" \
--set applicationConfig.APPSMITH_DB_URL="mongodb+srv://$DB_USERNAME:$DB_PASSWORD@$DB_URL/$DBNAME?retryWrites=true&minPoolSize=1&maxPoolSize=10&maxIdleTimeMS=900000&authSource=admin" \
Copy link
Contributor

Choose a reason for hiding this comment

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

Tip

Codebase Verification

There are still references to APPSMITH_MONGODB_URI in the following files:

  • scripts/build_dp_from_branch.sh
  • deploy/docker/fs/opt/appsmith/run-with-env.sh
  • deploy/docker/fs/opt/appsmith/entrypoint.sh

Please update these references to use the new environment variable name APPSMITH_DB_URL.

Analysis chain

Change of environment variable from APPSMITH_MONGODB_URI to APPSMITH_DB_URL.

Verify that all references to the MongoDB URI in the application have been updated to use the new environment variable name.

Scripts executed

The following scripts were executed for the analysis:


Script:

#!/bin/bash
# Description: Verify all references to the MongoDB URI have been updated.

# Test: Search for the old environment variable name. Expect: No occurrences.
rg --type sh $'APPSMITH_MONGODB_URI'

Length of output: 682

@github-actions github-actions bot added the Bug Something isn't working label Jun 12, 2024
@pratapaprasanna pratapaprasanna merged commit d53fdc7 into release Jun 13, 2024
@pratapaprasanna pratapaprasanna deleted the gp/update/dp/helmcharts branch June 13, 2024 10:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant