From 049f93010123a64e890b348515c38bd6a54da683 Mon Sep 17 00:00:00 2001 From: Niraj Date: Wed, 21 May 2025 12:01:41 +0545 Subject: [PATCH 1/8] feat: add deployment environment script and integrate into backend workflow --- .github/scripts/set_deployment_environment.sh | 16 ++++++++++++++++ .github/workflows/test_backend.yml | 10 +++++++++- 2 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 .github/scripts/set_deployment_environment.sh diff --git a/.github/scripts/set_deployment_environment.sh b/.github/scripts/set_deployment_environment.sh new file mode 100644 index 000000000..9cb31a912 --- /dev/null +++ b/.github/scripts/set_deployment_environment.sh @@ -0,0 +1,16 @@ +#!/bin/bash + +DEPLOYMENT=${DEPLOYMENT:-"govtool.cardanoapi.io/api"} +GROUP_NAME="qa" + +if [[ "$DEPLOYMENT" == "be.preview.gov.tools" || "$DEPLOYMENT" == "z6b8d2f7a-zca4a4c45-gtw.z937eb260.rustrocks.fr" ]]; then + GROUP_NAME="preview" +elif [[ "$DEPLOYMENT" == "be.gov.tools" ]]; then + GROUP_NAME="mainnet" +else + GROUP_NAME="qa" +fi + +# Set environment variable for GitHub Actions +echo "GROUP_NAME=${GROUP_NAME}" >> $GITHUB_ENV +echo "Setting deployment environment to: ${GROUP_NAME}" diff --git a/.github/workflows/test_backend.yml b/.github/workflows/test_backend.yml index 74b9ca195..7b031ef74 100644 --- a/.github/workflows/test_backend.yml +++ b/.github/workflows/test_backend.yml @@ -59,6 +59,7 @@ jobs: - name: Set pending commit status id: set-pending-status + if: ${{ !github.event.schedule }} run: | echo "timestamp=$(date +%s)" >> $GITHUB_OUTPUT curl -X POST -H "Authorization: Bearer ${{ github.token }}" \ @@ -121,6 +122,12 @@ jobs: repository: ${{vars.GH_PAGES}} ssh-key: ${{ secrets.DEPLOY_KEY }} + - name: Set Deployment Environment + id: set-deployment-url + run: | + chmod +x .github/scripts/set_deployment_environment.sh + .github/scripts/set_deployment_environment.sh + - name: Remove oldest report to save space if: ${{success()}} run: | @@ -186,7 +193,7 @@ jobs: name: allure-results path: allure-results - name: Set Commit Status - if: always() + if: always() && !github.event.schedule run: | chmod +x .github/scripts/set_commit_status.sh .github/scripts/set_commit_status.sh @@ -198,6 +205,7 @@ jobs: env: BASE_URL: https://${{github.event.schedule && 'be.preview.gov.tools' || inputs.deployment || 'govtool.cardanoapi.io/api' }} + DEPLOYMENT: ${{ inputs.deployment || 'govtool.cardanoapi.io/api'}} REPORT_NAME: ${{ github.event.schedule && 'nightly-'}}govtool-backend GH_PAGES: ${{vars.GH_PAGES}} COMMIT_SHA: ${{ github.event.workflow_run.head_sha || github.sha }} From 7e7fc25143d59e02c373b2b42832d1ec3a174880 Mon Sep 17 00:00:00 2001 From: Niraj Date: Wed, 21 May 2025 12:02:47 +0545 Subject: [PATCH 2/8] fix: update report scripts to include GROUP_NAME in paths --- .github/scripts/generate_latest_report_redirect.sh | 2 +- .github/scripts/generate_report_details.sh | 6 +++--- .github/scripts/register_report.sh | 4 ++-- .github/scripts/remove_oldest_report.sh | 4 ++-- .github/scripts/set_commit_status.sh | 6 +++--- 5 files changed, 11 insertions(+), 11 deletions(-) diff --git a/.github/scripts/generate_latest_report_redirect.sh b/.github/scripts/generate_latest_report_redirect.sh index 688e61239..acf5187d7 100644 --- a/.github/scripts/generate_latest_report_redirect.sh +++ b/.github/scripts/generate_latest_report_redirect.sh @@ -11,7 +11,7 @@ cat < build/index.html - + Redirecting... diff --git a/.github/scripts/generate_report_details.sh b/.github/scripts/generate_report_details.sh index bf8131959..dff702fb2 100644 --- a/.github/scripts/generate_report_details.sh +++ b/.github/scripts/generate_report_details.sh @@ -1,12 +1,12 @@ #!/bin/bash -if [[ ! -d "gh-pages/$REPORT_NAME" ]]; then +if [[ ! -d "gh-pages/$GROUP_NAME/$REPORT_NAME" ]]; then latest_number=0 else - gh_pages_content=$(ls "gh-pages/$REPORT_NAME/") + gh_pages_content=$(ls "gh-pages/$GROUP_NAME/$REPORT_NAME/") latest_number=$(echo "$gh_pages_content" | grep -Eo '[0-9]+' | sort -nr | head -n 1) fi echo "report_number=$((latest_number+1))" >> $GITHUB_OUTPUT -echo "report_url=https://$(dirname "$GH_PAGES").github.io/$(basename "$GH_PAGES")/$REPORT_NAME" >> $GITHUB_OUTPUT +echo "report_url=https://$(dirname "$GH_PAGES").github.io/$(basename "$GH_PAGES")/$GROUP_NAME/$REPORT_NAME" >> $GITHUB_OUTPUT diff --git a/.github/scripts/register_report.sh b/.github/scripts/register_report.sh index 959368afb..e071e3e9b 100644 --- a/.github/scripts/register_report.sh +++ b/.github/scripts/register_report.sh @@ -6,10 +6,10 @@ PROJECT_FILE="projects.txt" mkdir -p "$PROJECT_DIR" cp -r gh-pages/* "$PROJECT_DIR" || true -if grep -q "$REPORT_NAME" "$PROJECT_DIR/$PROJECT_FILE"; then +if grep -q "$REPORT_NAME" "$PROJECT_DIR/$GROUP_NAME/$PROJECT_FILE"; then echo "Project already exists" echo "project_exists=true">> $GITHUB_OUTPUT else - echo "\n$REPORT_NAME" >> "$PROJECT_DIR/$PROJECT_FILE" + echo -e "\n$REPORT_NAME" >> "$PROJECT_DIR/$GROUP_NAME/$PROJECT_FILE" echo "project_exists=false">> $GITHUB_OUTPUT fi diff --git a/.github/scripts/remove_oldest_report.sh b/.github/scripts/remove_oldest_report.sh index e0a809604..208f0d9a9 100644 --- a/.github/scripts/remove_oldest_report.sh +++ b/.github/scripts/remove_oldest_report.sh @@ -1,7 +1,7 @@ #!/bin/bash -if [ -d "gh-pages/$REPORT_NAME" ]; then - cd gh-pages/$REPORT_NAME +if [ -d "gh-pages/$GROUP_NAME/$REPORT_NAME" ]; then + cd gh-pages/$GROUP_NAME/$REPORT_NAME # Count the number of numerical directories dir_count=$(find . -maxdepth 1 -type d -regex './[0-9]+' | wc -l) diff --git a/.github/scripts/set_commit_status.sh b/.github/scripts/set_commit_status.sh index f22c4e885..fec4e145b 100644 --- a/.github/scripts/set_commit_status.sh +++ b/.github/scripts/set_commit_status.sh @@ -48,9 +48,9 @@ fi # Determine target URL based on environment case "$GH_PAGES" in - "IntersectMBO/govtool-test-reports") TARGET_URL="https://intersectmbo.github.io/govtool-test-reports/${REPORT_NAME}/${REPORT_NUMBER}" ;; - "cardanoapi/govtool-test-reports") TARGET_URL="https://cardanoapi.github.io/govtool-test-reports/${REPORT_NAME}/${REPORT_NUMBER}" ;; - *) TARGET_URL="https://intersectmbo.github.io/govtool-test-reports/${REPORT_NAME}/${REPORT_NUMBER}" ;; + "IntersectMBO/govtool-test-reports") TARGET_URL="https://intersectmbo.github.io/govtool-test-reports/${GROUP_NAME}/${REPORT_NAME}/${REPORT_NUMBER}" ;; + "cardanoapi/govtool-test-reports") TARGET_URL="https://cardanoapi.github.io/govtool-test-reports/${GROUP_NAME}/${REPORT_NAME}/${REPORT_NUMBER}" ;; + *) TARGET_URL="https://intersectmbo.github.io/govtool-test-reports/${GROUP_NAME}/${REPORT_NAME}/${REPORT_NUMBER}" ;; esac # Determine test result message From c49541ed9c0a57e84d39928a8b6607ff436d602f Mon Sep 17 00:00:00 2001 From: Niraj Date: Wed, 21 May 2025 12:16:08 +0545 Subject: [PATCH 3/8] chore: add set deployment env logic for integration test --- .github/scripts/set_deployment_environment.sh | 26 +++++++++++++++---- 1 file changed, 21 insertions(+), 5 deletions(-) diff --git a/.github/scripts/set_deployment_environment.sh b/.github/scripts/set_deployment_environment.sh index 9cb31a912..63fac5c64 100644 --- a/.github/scripts/set_deployment_environment.sh +++ b/.github/scripts/set_deployment_environment.sh @@ -2,15 +2,31 @@ DEPLOYMENT=${DEPLOYMENT:-"govtool.cardanoapi.io/api"} GROUP_NAME="qa" +HOST_URL=$HOST_URL +BASE_URL=$BASE_URL -if [[ "$DEPLOYMENT" == "be.preview.gov.tools" || "$DEPLOYMENT" == "z6b8d2f7a-zca4a4c45-gtw.z937eb260.rustrocks.fr" ]]; then - GROUP_NAME="preview" -elif [[ "$DEPLOYMENT" == "be.gov.tools" ]]; then - GROUP_NAME="mainnet" +# Determine if running from frontend (HOST_URL is set) or backend (BASE_URL is set) +if [[ "$HOST_URL" != null && -n "$HOST_URL" ]]; then + if [[ "$DEPLOYMENT" == "preview.gov.tools" ]]; then + GROUP_NAME="preview" + elif [[ "$DEPLOYMENT" == "gov.tools" ]]; then + GROUP_NAME="mainnet" + else + GROUP_NAME="qa" + fi +elif [[ -n "$BASE_URL" ]]; then + if [[ "$DEPLOYMENT" == "be.preview.gov.tools" || "$DEPLOYMENT" == "z6b8d2f7a-zca4a4c45-gtw.z937eb260.rustrocks.fr" ]]; then + GROUP_NAME="preview" + elif [[ "$DEPLOYMENT" == "be.gov.tools" ]]; then + GROUP_NAME="mainnet" + else + GROUP_NAME="qa" + fi else + echo "Warning: Neither HOST_URL nor BASE_URL is properly set. Using default QA environment." GROUP_NAME="qa" fi # Set environment variable for GitHub Actions -echo "GROUP_NAME=${GROUP_NAME}" >> $GITHUB_ENV +echo "GROUP_NAME=${GROUP_NAME}" >>$GITHUB_ENV echo "Setting deployment environment to: ${GROUP_NAME}" From d16b35e408c74de3699c943d4c5d2051308e2477 Mon Sep 17 00:00:00 2001 From: Niraj Date: Wed, 21 May 2025 12:19:04 +0545 Subject: [PATCH 4/8] feat: add deployment environment setup for integration test workflow --- .github/workflows/test_backend.yml | 1 + .github/workflows/test_integration_playwright.yml | 10 +++++++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test_backend.yml b/.github/workflows/test_backend.yml index 7b031ef74..8bf128f80 100644 --- a/.github/workflows/test_backend.yml +++ b/.github/workflows/test_backend.yml @@ -192,6 +192,7 @@ jobs: with: name: allure-results path: allure-results + - name: Set Commit Status if: always() && !github.event.schedule run: | diff --git a/.github/workflows/test_integration_playwright.yml b/.github/workflows/test_integration_playwright.yml index 841357529..835c67fbd 100644 --- a/.github/workflows/test_integration_playwright.yml +++ b/.github/workflows/test_integration_playwright.yml @@ -59,6 +59,7 @@ jobs: with: ref: ${{ env.COMMIT_SHA }} - name: Set pending commit status + if: ${{ !github.event.schedule }} id: set-pending-status run: | echo "timestamp=$(date +%s)" >> $GITHUB_OUTPUT @@ -161,6 +162,12 @@ jobs: repository: ${{vars.GH_PAGES}} ssh-key: ${{ secrets.DEPLOY_KEY }} + - name: Set Deployment Environment + id: set-deployment-url + run: | + chmod +x .github/scripts/set_deployment_environment.sh + .github/scripts/set_deployment_environment.sh + - name: Remove oldest report to save space if: ${{success()}} run: | @@ -226,8 +233,9 @@ jobs: with: name: allure-results path: allure-results + - name: Set Commit Status - if: always() + if: always() && !github.event.schedule run: | chmod +x .github/scripts/set_commit_status.sh .github/scripts/set_commit_status.sh From c6256a109932b0fc454fd29a93f8eee4fbfd0088 Mon Sep 17 00:00:00 2001 From: Niraj Date: Wed, 21 May 2025 13:01:01 +0545 Subject: [PATCH 5/8] fix: add group name before reportName on every workflow steps --- .github/scripts/register_report.sh | 5 +++++ .github/scripts/set_deployment_environment.sh | 1 + .github/workflows/test_backend.yml | 8 ++++---- .github/workflows/test_integration_playwright.yml | 6 +++--- 4 files changed, 13 insertions(+), 7 deletions(-) diff --git a/.github/scripts/register_report.sh b/.github/scripts/register_report.sh index e071e3e9b..c3b78a16a 100644 --- a/.github/scripts/register_report.sh +++ b/.github/scripts/register_report.sh @@ -6,6 +6,11 @@ PROJECT_FILE="projects.txt" mkdir -p "$PROJECT_DIR" cp -r gh-pages/* "$PROJECT_DIR" || true +# Create group directory if it doesn't exist +mkdir -p "$PROJECT_DIR/$GROUP_NAME" +# Create project file if it doesn't exist +touch "$PROJECT_DIR/$GROUP_NAME/$PROJECT_FILE" + if grep -q "$REPORT_NAME" "$PROJECT_DIR/$GROUP_NAME/$PROJECT_FILE"; then echo "Project already exists" echo "project_exists=true">> $GITHUB_OUTPUT diff --git a/.github/scripts/set_deployment_environment.sh b/.github/scripts/set_deployment_environment.sh index 63fac5c64..7953c87e2 100644 --- a/.github/scripts/set_deployment_environment.sh +++ b/.github/scripts/set_deployment_environment.sh @@ -29,4 +29,5 @@ fi # Set environment variable for GitHub Actions echo "GROUP_NAME=${GROUP_NAME}" >>$GITHUB_ENV +echo "group_name=${GROUP_NAME}" >>$GITHUB_OUTPUT echo "Setting deployment environment to: ${GROUP_NAME}" diff --git a/.github/workflows/test_backend.yml b/.github/workflows/test_backend.yml index 8bf128f80..19d9ec0f0 100644 --- a/.github/workflows/test_backend.yml +++ b/.github/workflows/test_backend.yml @@ -33,7 +33,7 @@ on: workflow_run: workflows: ["Build and deploy GovTool test stack"] types: [completed] - branches: + branches: - test - infra/test-chores @@ -147,7 +147,7 @@ jobs: ssh-key: ${{ secrets.DEPLOY_KEY }} repository-name: ${{vars.GH_PAGES}} branch: gh-pages - folder: project + folder: project/${{steps.set-deployment-url.outputs.group_name}} - name: Generate report details id: report-details @@ -160,7 +160,7 @@ jobs: id: allure-report with: allure_results: allure-results - gh_pages: gh-pages/${{env.REPORT_NAME}} + gh_pages: gh-pages/${{steps.set-deployment-url.outputs.group_name}}/${{env.REPORT_NAME}} allure_report: allure-report allure_history: allure-history keep_reports: 2000 @@ -179,7 +179,7 @@ jobs: repository-name: ${{vars.GH_PAGES}} branch: gh-pages folder: build - target-folder: ${{ env.REPORT_NAME }} + target-folder: ${{steps.set-deployment-url.outputs.group_name}}/${{ env.REPORT_NAME }} publish-status: runs-on: ubuntu-latest diff --git a/.github/workflows/test_integration_playwright.yml b/.github/workflows/test_integration_playwright.yml index 835c67fbd..f431ad893 100644 --- a/.github/workflows/test_integration_playwright.yml +++ b/.github/workflows/test_integration_playwright.yml @@ -187,7 +187,7 @@ jobs: ssh-key: ${{ secrets.DEPLOY_KEY }} repository-name: ${{vars.GH_PAGES}} branch: gh-pages - folder: project + folder: project/${{steps.set-deployment-url.outputs.group_name}} - name: Generate report details id: report-details @@ -201,7 +201,7 @@ jobs: id: allure-report with: allure_results: allure-results - gh_pages: gh-pages/${{env.REPORT_NAME}} + gh_pages: gh-pages/${{steps.set-deployment-url.outputs.group_name}}/${{env.REPORT_NAME}} allure_report: allure-report allure_history: allure-history keep_reports: 2000 @@ -220,7 +220,7 @@ jobs: repository-name: ${{vars.GH_PAGES}} branch: gh-pages folder: build - target-folder: ${{ env.REPORT_NAME }} + target-folder: ${{steps.set-deployment-url.outputs.group_name}}/${{ env.REPORT_NAME }} publish-status: runs-on: ubuntu-latest From 415b1bdb449b976787d795c61a1e4ee6986a3264 Mon Sep 17 00:00:00 2001 From: Niraj Date: Wed, 21 May 2025 13:09:02 +0545 Subject: [PATCH 6/8] chore: remove report registration step from backend and integration workflows --- .github/scripts/register_report.sh | 20 ------------------- .github/workflows/test_backend.yml | 15 -------------- .../workflows/test_integration_playwright.yml | 15 -------------- 3 files changed, 50 deletions(-) delete mode 100644 .github/scripts/register_report.sh diff --git a/.github/scripts/register_report.sh b/.github/scripts/register_report.sh deleted file mode 100644 index c3b78a16a..000000000 --- a/.github/scripts/register_report.sh +++ /dev/null @@ -1,20 +0,0 @@ -#!/bin/bash - -PROJECT_DIR="project" -PROJECT_FILE="projects.txt" - -mkdir -p "$PROJECT_DIR" -cp -r gh-pages/* "$PROJECT_DIR" || true - -# Create group directory if it doesn't exist -mkdir -p "$PROJECT_DIR/$GROUP_NAME" -# Create project file if it doesn't exist -touch "$PROJECT_DIR/$GROUP_NAME/$PROJECT_FILE" - -if grep -q "$REPORT_NAME" "$PROJECT_DIR/$GROUP_NAME/$PROJECT_FILE"; then - echo "Project already exists" - echo "project_exists=true">> $GITHUB_OUTPUT -else - echo -e "\n$REPORT_NAME" >> "$PROJECT_DIR/$GROUP_NAME/$PROJECT_FILE" - echo "project_exists=false">> $GITHUB_OUTPUT -fi diff --git a/.github/workflows/test_backend.yml b/.github/workflows/test_backend.yml index 19d9ec0f0..4acbf9ced 100644 --- a/.github/workflows/test_backend.yml +++ b/.github/workflows/test_backend.yml @@ -134,21 +134,6 @@ jobs: chmod +x .github/scripts/remove_oldest_report.sh .github/scripts/remove_oldest_report.sh - - name: Register report - id: register-project - if: ${{success()}} - run: | - chmod +x .github/scripts/register_report.sh - .github/scripts/register_report.sh - - - if: steps.register-project.outputs.project_exists != 'true' - uses: JamesIves/github-pages-deploy-action@v4 - with: - ssh-key: ${{ secrets.DEPLOY_KEY }} - repository-name: ${{vars.GH_PAGES}} - branch: gh-pages - folder: project/${{steps.set-deployment-url.outputs.group_name}} - - name: Generate report details id: report-details run: | diff --git a/.github/workflows/test_integration_playwright.yml b/.github/workflows/test_integration_playwright.yml index f431ad893..0891bca70 100644 --- a/.github/workflows/test_integration_playwright.yml +++ b/.github/workflows/test_integration_playwright.yml @@ -174,21 +174,6 @@ jobs: chmod +x .github/scripts/remove_oldest_report.sh .github/scripts/remove_oldest_report.sh - - name: Register report - id: register-project - if: ${{success()}} - run: | - chmod +x .github/scripts/register_report.sh - .github/scripts/register_report.sh - - - if: steps.register-project.outputs.project_exists != 'true' - uses: JamesIves/github-pages-deploy-action@v4 - with: - ssh-key: ${{ secrets.DEPLOY_KEY }} - repository-name: ${{vars.GH_PAGES}} - branch: gh-pages - folder: project/${{steps.set-deployment-url.outputs.group_name}} - - name: Generate report details id: report-details run: | From 6e77b725efabd63f2ea2401ed5b02611e8a3c014 Mon Sep 17 00:00:00 2001 From: Niraj Date: Wed, 21 May 2025 13:22:48 +0545 Subject: [PATCH 7/8] fix: correct environment variable name for faucet stake private key --- .github/workflows/test_integration_playwright.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test_integration_playwright.yml b/.github/workflows/test_integration_playwright.yml index 0891bca70..f2eaffda3 100644 --- a/.github/workflows/test_integration_playwright.yml +++ b/.github/workflows/test_integration_playwright.yml @@ -137,7 +137,7 @@ jobs: FAUCET_ADDRESS: ${{vars.FAUCET_ADDRESS}} CARDANOAPI_METADATA_URL: ${{vars.CARDANOAPI_METADATA_URL}} FAUCET_PAYMENT_PRIVATE: ${{secrets.FAUCET_PAYMENT_PRIVATE}} - FAUCET_STAKE_PKH: ${{secrets.FAUCET_STAKE_PKH}} + FAUCET_STAKE_PRIVATE: ${{secrets.FAUCET_STAKE_PRIVATE}} publish-report: runs-on: ubuntu-latest From bc96e674bc5d7f4022bf8559b7d4e4e557007755 Mon Sep 17 00:00:00 2001 From: Niraj Date: Wed, 21 May 2025 15:53:50 +0545 Subject: [PATCH 8/8] chore: remove unnecessary condition for group name --- .github/scripts/set_deployment_environment.sh | 26 +++++-------------- 1 file changed, 6 insertions(+), 20 deletions(-) diff --git a/.github/scripts/set_deployment_environment.sh b/.github/scripts/set_deployment_environment.sh index 7953c87e2..8c9495a57 100644 --- a/.github/scripts/set_deployment_environment.sh +++ b/.github/scripts/set_deployment_environment.sh @@ -2,28 +2,14 @@ DEPLOYMENT=${DEPLOYMENT:-"govtool.cardanoapi.io/api"} GROUP_NAME="qa" -HOST_URL=$HOST_URL -BASE_URL=$BASE_URL -# Determine if running from frontend (HOST_URL is set) or backend (BASE_URL is set) -if [[ "$HOST_URL" != null && -n "$HOST_URL" ]]; then - if [[ "$DEPLOYMENT" == "preview.gov.tools" ]]; then - GROUP_NAME="preview" - elif [[ "$DEPLOYMENT" == "gov.tools" ]]; then - GROUP_NAME="mainnet" - else - GROUP_NAME="qa" - fi -elif [[ -n "$BASE_URL" ]]; then - if [[ "$DEPLOYMENT" == "be.preview.gov.tools" || "$DEPLOYMENT" == "z6b8d2f7a-zca4a4c45-gtw.z937eb260.rustrocks.fr" ]]; then - GROUP_NAME="preview" - elif [[ "$DEPLOYMENT" == "be.gov.tools" ]]; then - GROUP_NAME="mainnet" - else - GROUP_NAME="qa" - fi +if [[ "$DEPLOYMENT" == "preview.gov.tools" || "$DEPLOYMENT" == "be.preview.gov.tools" || "$DEPLOYMENT" == "z6b8d2f7a-zca4a4c45-gtw.z937eb260.rustrocks.fr" ]]; then + GROUP_NAME="preview" +elif [[ "$DEPLOYMENT" == "gov.tools" || "$DEPLOYMENT" == "be.gov.tools" ]]; then + GROUP_NAME="mainnet" +elif [[ "$DEPLOYMENT" == "p80-z78acf3c2-zded6a792-gtw.z937eb260.rustrocks.fr" || "$DEPLOYMENT" == "z78acf3c2-z5575152b-gtw.z937eb260.rustrocks.fr" ]]; then + GROUP_NAME="dev" else - echo "Warning: Neither HOST_URL nor BASE_URL is properly set. Using default QA environment." GROUP_NAME="qa" fi