Merge pull request #70412 from rhcs-dashboard/disable-telemetry

mgr/dashboard: disable ibm telemetry on CI env

Reviewed-by: Afreen Misbah <afreen@ibm.com>
This commit is contained in:
Afreen Misbah 2026-07-22 13:04:07 +05:30 committed by GitHub
commit 37a9e87bfc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 4 additions and 2 deletions

View File

@ -137,7 +137,7 @@ build_dashboard_frontend() {
cd src/pybind/mgr/dashboard/frontend
. $TEMP_DIR/bin/activate
NG_CLI_ANALYTICS=false timeout 1h npm ci
NG_CLI_ANALYTICS=false IBM_TELEMETRY_DISABLED=true timeout 1h npm ci
echo "Building ceph-dashboard frontend with build:localize script";
# we need to use "--" because so that "--configuration production"
# survives accross all scripts redirections inside package.json

View File

@ -76,6 +76,7 @@ CYPRESS_BASE_URL=$(ceph mgr services | jq -r .dashboard)
export CYPRESS_BASE_URL
cd $DASHBOARD_FRONTEND_DIR
export IBM_TELEMETRY_DISABLED=true
# This is required for Cypress to understand typescript
npm ci --unsafe-perm

View File

@ -49,6 +49,7 @@ with_libvirt "kcli delete plan -y ceph || true"
# Build dashboard frontend (required to start the module).
cd ${CEPH_DEV_FOLDER}/src/pybind/mgr/dashboard/frontend
export NG_CLI_ANALYTICS=false
export IBM_TELEMETRY_DISABLED=true
if [[ -n "$JENKINS_HOME" ]]; then
npm cache clean --force
fi

View File

@ -93,7 +93,7 @@ endif(WITH_SYSTEM_NPM)
add_npm_command(
OUTPUT "${CMAKE_CURRENT_SOURCE_DIR}/node_modules"
COMMAND CYPRESS_CACHE_FOLDER=${CMAKE_SOURCE_DIR}/build/src/pybind/mgr/dashboard/cypress NG_CLI_ANALYTICS=false npm ci -f ${mgr-dashboard-userconfig}
COMMAND CYPRESS_CACHE_FOLDER=${CMAKE_SOURCE_DIR}/build/src/pybind/mgr/dashboard/cypress NG_CLI_ANALYTICS=false IBM_TELEMETRY_DISABLED=true npm ci -f ${mgr-dashboard-userconfig}
DEPENDS package.json
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
COMMENT "dashboard frontend dependencies are being installed"