From d780ecba452f288bca25c97efccb633d4840cd50 Mon Sep 17 00:00:00 2001 From: Vemparala Surya Vamsi <121419957+vsvamsi1@users.noreply.github.com> Date: Wed, 31 Jul 2024 15:23:08 +0530 Subject: [PATCH] chore: reverted client profiled build (#35306) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## Description Reverted client profiled build script, we will instead generate a docker custom image. Fixes https://github.com/appsmithorg/appsmith/issues/35184 > [!WARNING] > _If no issue exists, please create an issue first, and check with the maintainers if the issue is valid._ ## Automation /ok-to-test tags="@tag.Sanity" ### :mag: Cypress test results > [!TIP] > 🟢 🟢 🟢 All cypress tests have passed! 🎉 🎉 🎉 > Workflow run: > Commit: 3ff5d304aacb08cabb529b6553b2319d688000ff > Cypress dashboard. > Tags: `@tag.Sanity` > Spec: >
Wed, 31 Jul 2024 09:52:14 UTC ## Communication Should the DevRel and Marketing teams inform users about this change? - [ ] Yes - [ ] No ## Summary by CodeRabbit - **Bug Fixes** - Removed the dependency on the `APPSMITH_CLOUD_HOSTING` environment variable during the build process, streamlining the workflow and build script. --- .github/workflows/client-build.yml | 1 - app/client/build.sh | 9 +-------- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/.github/workflows/client-build.yml b/.github/workflows/client-build.yml index 703f9f6ef06..d37853acca8 100644 --- a/.github/workflows/client-build.yml +++ b/.github/workflows/client-build.yml @@ -162,7 +162,6 @@ jobs: export REACT_APP_SEGMENT_CE_KEY="${{ secrets.APPSMITH_SEGMENT_CE_KEY_RELEASE }}" fi REACT_APP_ENVIRONMENT=${{steps.vars.outputs.REACT_APP_ENVIRONMENT}} \ - APPSMITH_CLOUD_HOSTING=${{ secrets.APPSMITH_CLOUD_HOSTING }} \ REACT_APP_FUSIONCHARTS_LICENSE_KEY=${{ secrets.APPSMITH_FUSIONCHARTS_LICENSE_KEY }} \ SENTRY_AUTH_TOKEN=${{ secrets.SENTRY_AUTH_TOKEN }} \ REACT_APP_VERSION_EDITION="Community" \ diff --git a/app/client/build.sh b/app/client/build.sh index 035c47e9cdf..146c6d355f0 100755 --- a/app/client/build.sh +++ b/app/client/build.sh @@ -18,13 +18,6 @@ export REACT_APP_SENTRY_RELEASE=$GIT_SHA export REACT_APP_CLIENT_LOG_LEVEL=ERROR # Disable CRA built-in ESLint checks since we have our own config and a separate step for this export DISABLE_ESLINT_PLUGIN=true -echo "debug client build setting $APPSMITH_CLOUD_HOSTING" -if [ "$APPSMITH_CLOUD_HOSTING" == "true" ]; then - echo "Building profiled build" - craco --max-old-space-size=7168 build --profile --config craco.build.config.js --verbose -else - craco --max-old-space-size=7168 build --config craco.build.config.js -fi - +craco --max-old-space-size=7168 build --config craco.build.config.js echo "build finished"