From 64fb396b73e9974b47fadfc580fdf0e50c6d13cd Mon Sep 17 00:00:00 2001 From: Ed Morley <501702+edmorley@users.noreply.github.com> Date: Fri, 18 Sep 2020 19:04:28 +0100 Subject: [PATCH] Remove duplicate pipenv metric event (#1070) Since the `tool.pipenv` event is being emitted twice per pipenv build, inflating its usage. This whole file could do with a massive refactor (4 levels deep of conditionals is never a good sign), but that can wait until a later PR. In the future it would also be great to have testing of metrics events. Closes @W-8094963@. --- CHANGELOG.md | 1 + bin/steps/pipenv | 3 --- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f0421aa..c94b934 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,7 @@ ## Unreleased +- Remove duplicate pipenv metric event (#1070). - Emit metrics for how the Python version was chosen for an app (#1069). - Emit Python version metric events for all builds, not just clean installs (#1066). diff --git a/bin/steps/pipenv b/bin/steps/pipenv index c799c7d..d5a5ba1 100755 --- a/bin/steps/pipenv +++ b/bin/steps/pipenv @@ -9,9 +9,6 @@ set -e if [[ -f Pipfile.lock ]]; then if [[ -f .heroku/python/Pipfile.lock.sha256 ]]; then if [[ $(openssl dgst -sha256 Pipfile.lock) == $(cat .heroku/python/Pipfile.lock.sha256) ]]; then - # Measure that we're using Pipenv. - mcount "tool.pipenv" - # Don't skip installation of there are git deps. if ! grep -q 'git' Pipfile.lock; then echo "Skipping installation, as Pipfile.lock hasn't changed since last deploy." | indent