mirror of
https://github.com/ceph/ceph
synced 2026-08-02 07:03:18 +00:00
mgr/dashboard: disable ibm telemetry on CI env
looks like ibm telemetry is being run when you do `npm install` on CI env. here's disabling that Signed-off-by: Nizamudeen A <nia@redhat.com>
This commit is contained in:
parent
8c69d4fde8
commit
0690deaa34
@ -137,7 +137,7 @@ build_dashboard_frontend() {
|
|||||||
cd src/pybind/mgr/dashboard/frontend
|
cd src/pybind/mgr/dashboard/frontend
|
||||||
|
|
||||||
. $TEMP_DIR/bin/activate
|
. $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";
|
echo "Building ceph-dashboard frontend with build:localize script";
|
||||||
# we need to use "--" because so that "--configuration production"
|
# we need to use "--" because so that "--configuration production"
|
||||||
# survives accross all scripts redirections inside package.json
|
# survives accross all scripts redirections inside package.json
|
||||||
|
|||||||
@ -76,6 +76,7 @@ CYPRESS_BASE_URL=$(ceph mgr services | jq -r .dashboard)
|
|||||||
export CYPRESS_BASE_URL
|
export CYPRESS_BASE_URL
|
||||||
|
|
||||||
cd $DASHBOARD_FRONTEND_DIR
|
cd $DASHBOARD_FRONTEND_DIR
|
||||||
|
export IBM_TELEMETRY_DISABLED=true
|
||||||
|
|
||||||
# This is required for Cypress to understand typescript
|
# This is required for Cypress to understand typescript
|
||||||
npm ci --unsafe-perm
|
npm ci --unsafe-perm
|
||||||
|
|||||||
@ -49,6 +49,7 @@ with_libvirt "kcli delete plan -y ceph || true"
|
|||||||
# Build dashboard frontend (required to start the module).
|
# Build dashboard frontend (required to start the module).
|
||||||
cd ${CEPH_DEV_FOLDER}/src/pybind/mgr/dashboard/frontend
|
cd ${CEPH_DEV_FOLDER}/src/pybind/mgr/dashboard/frontend
|
||||||
export NG_CLI_ANALYTICS=false
|
export NG_CLI_ANALYTICS=false
|
||||||
|
export IBM_TELEMETRY_DISABLED=true
|
||||||
if [[ -n "$JENKINS_HOME" ]]; then
|
if [[ -n "$JENKINS_HOME" ]]; then
|
||||||
npm cache clean --force
|
npm cache clean --force
|
||||||
fi
|
fi
|
||||||
|
|||||||
@ -93,7 +93,7 @@ endif(WITH_SYSTEM_NPM)
|
|||||||
|
|
||||||
add_npm_command(
|
add_npm_command(
|
||||||
OUTPUT "${CMAKE_CURRENT_SOURCE_DIR}/node_modules"
|
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
|
DEPENDS package.json
|
||||||
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
|
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
|
||||||
COMMENT "dashboard frontend dependencies are being installed"
|
COMMENT "dashboard frontend dependencies are being installed"
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user