From bde5fa0fc03211651766941f54820bf57192f1dd Mon Sep 17 00:00:00 2001 From: "Austin S. Hemmelgarn" Date: Tue, 15 Jun 2021 07:08:01 -0400 Subject: Disable telemetry in CI. (#11233) It skews our data in (probably) strange ways. --- .github/dockerfiles/Dockerfile.build_test | 1 + .github/scripts/run_install_with_dist_file.sh | 1 + .github/workflows/build-and-install.yml | 4 +++- .github/workflows/checks.yml | 2 ++ .github/workflows/coverity.yml | 2 ++ .github/workflows/dashboard-pr.yml | 3 +++ .github/workflows/docker.yml | 2 ++ .github/workflows/docs.yml | 2 ++ .github/workflows/labeler.yml | 2 ++ .github/workflows/packaging.yml | 4 +++- .github/workflows/review.yml | 1 + .github/workflows/tests.yml | 2 ++ .github/workflows/updater.yml | 5 ++++- packaging/Dockerfile.packager | 2 ++ 14 files changed, 30 insertions(+), 3 deletions(-) diff --git a/.github/dockerfiles/Dockerfile.build_test b/.github/dockerfiles/Dockerfile.build_test index 1dc3e303d6..3e6ecd187c 100644 --- a/.github/dockerfiles/Dockerfile.build_test +++ b/.github/dockerfiles/Dockerfile.build_test @@ -4,6 +4,7 @@ FROM ${BASE} ARG PRE ENV PRE=${PRE} +ENV DO_NOT_TRACK=1 COPY . /netdata diff --git a/.github/scripts/run_install_with_dist_file.sh b/.github/scripts/run_install_with_dist_file.sh index 9453dff359..a8a598522e 100755 --- a/.github/scripts/run_install_with_dist_file.sh +++ b/.github/scripts/run_install_with_dist_file.sh @@ -29,6 +29,7 @@ printf >&2 "Entering %s and starting docker run ..." "${distdir}" pushd "${distdir}" || exit 1 docker run \ + -e DO_NOT_TRACK=1 \ -v "${PWD}:/netdata" \ -w /netdata \ "ubuntu:latest" \ diff --git a/.github/workflows/build-and-install.yml b/.github/workflows/build-and-install.yml index 86ce6f9af9..702be56a5e 100644 --- a/.github/workflows/build-and-install.yml +++ b/.github/workflows/build-and-install.yml @@ -5,6 +5,8 @@ on: branches: - master pull_request: +env: + DO_NOT_TRACK: 1 jobs: static-build: name: Build (x86_64) @@ -207,5 +209,5 @@ jobs: ./build-kinesis.sh && ./netdata-installer.sh --dont-wait --dont-start-it --enable-backend-kinesis run: | - docker run -w /netdata test \ + docker run -e DO_NOT_TRACK=1 -w /netdata test \ /bin/sh -c "$RUNCMD" diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml index e4025dd207..5b5239218b 100644 --- a/.github/workflows/checks.yml +++ b/.github/workflows/checks.yml @@ -5,6 +5,8 @@ on: branches: - master pull_request: +env: + DO_NOT_TRACK: 1 jobs: checksum-checks: name: Checksums diff --git a/.github/workflows/coverity.yml b/.github/workflows/coverity.yml index 766275ed96..ac99d918f0 100644 --- a/.github/workflows/coverity.yml +++ b/.github/workflows/coverity.yml @@ -8,6 +8,8 @@ on: paths: - .github/workflows/coverity.yml - coverity-scan.sh +env: + DO_NOT_TRACK: 1 jobs: coverity: if: github.repository == 'netdata/netdata' diff --git a/.github/workflows/dashboard-pr.yml b/.github/workflows/dashboard-pr.yml index 8f5a40f2be..a1e068285b 100644 --- a/.github/workflows/dashboard-pr.yml +++ b/.github/workflows/dashboard-pr.yml @@ -11,6 +11,9 @@ on: name: Dashboard Version required: true +env: + DO_NOT_TRACK: 1 + jobs: dashboard-pr: name: Generate Dashboard Version Bump PR diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 4f18ce5b68..6a823ccc66 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -11,6 +11,8 @@ on: name: Version Tag default: nightly required: true +env: + DO_NOT_TRACK: 1 jobs: docker-build: name: Docker Build diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 9f7234f92d..73bcc87734 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -9,6 +9,8 @@ on: pull_request: paths: - '**.md' +env: + DO_NOT_TRACK: 1 jobs: markdown-link-check: name: Broken Links diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml index 24842e73d3..582a104049 100644 --- a/.github/workflows/labeler.yml +++ b/.github/workflows/labeler.yml @@ -4,6 +4,8 @@ name: Pull Request Labeler on: schedule: - cron: '*/5 * * * *' +env: + DO_NOT_TRACK: 1 jobs: labeler: runs-on: ubuntu-latest diff --git a/.github/workflows/packaging.yml b/.github/workflows/packaging.yml index df3818cf2e..7b386e6cfa 100644 --- a/.github/workflows/packaging.yml +++ b/.github/workflows/packaging.yml @@ -15,6 +15,8 @@ on: version: name: Package version required: false +env: + DO_NOT_TRACK: 1 jobs: build: name: Build @@ -112,7 +114,7 @@ jobs: shell: bash run: | mkdir -p artifacts - docker run --platform ${{ matrix.platform }} -v $PWD/artifacts:/artifacts local/package-builder:${{ matrix.distro }}${{ matrix.version }} + docker run -e DO_NOT_TRACK=1 --platform ${{ matrix.platform }} -v $PWD/artifacts:/artifacts local/package-builder:${{ matrix.distro }}${{ matrix.version }} - name: Upload if: github.event_name == 'workflow_dispatch' shell: bash diff --git a/.github/workflows/review.yml b/.github/workflows/review.yml index a267fea3f4..9b400aceb7 100644 --- a/.github/workflows/review.yml +++ b/.github/workflows/review.yml @@ -8,6 +8,7 @@ env: run_hadolint: 0 run_shellcheck: 0 run_yamllint: 0 + DO_NOT_TRACK: 1 jobs: eslint: name: eslint diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 72c789582a..7bcce25da9 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -14,6 +14,8 @@ on: - 'CMakeLists.txt' - '**.c' - '**.h' +env: + DO_NOT_TRACK: 1 jobs: unit-tests-legacy: name: Unit Tests (legacy) diff --git a/.github/workflows/updater.yml b/.github/workflows/updater.yml index 5f8d77c4a2..2da71de6cd 100644 --- a/.github/workflows/updater.yml +++ b/.github/workflows/updater.yml @@ -8,6 +8,9 @@ on: branches: - master +env: + DO_NOT_TRACK: 1 + jobs: source-build: name: Install, Build & Update @@ -79,7 +82,7 @@ jobs: run: | echo $PRE > ./prep-cmd.sh docker build . -f .github/dockerfiles/Dockerfile.build_test -t test --build-arg BASE=${{ matrix.distro }} - docker run --network host -w /netdata test \ + docker run -e DO_NOT_TRACK=1 --network host -w /netdata test \ /bin/sh -c '/netdata/packaging/installer/kickstart.sh --dont-wait \ && /netdata/packaging/installer/netdata-updater.sh --not-running-from-cron --no-updater-self-update \ && bash /netdata/.github/scripts/check-updater.sh' diff --git a/packaging/Dockerfile.packager b/packaging/Dockerfile.packager index 4c90f14fd8..c4e6c54c64 100644 --- a/packaging/Dockerfile.packager +++ b/packaging/Dockerfile.packager @@ -15,6 +15,7 @@ ENV ARCH=$ARCH ENV DISTRO=$DISTRO ENV DISTRO_VERSION=$DISTRO_VERSION ENV VERSION=$PKG_VERSION +ENV DO_NOT_TRACK=1 WORKDIR /netdata COPY . . @@ -32,6 +33,7 @@ ENV ARCH=$ARCH ENV DISTRO=$DISTRO ENV DISTRO_VERSION=$DISTRO_VERSION ENV VERSION=$PKG_VERSION +ENV DO_NOT_TRACK=1 COPY ./packaging/scripts/install.sh /install.sh COPY ./packaging/scripts/test.sh /test.sh -- cgit v1.2.3