add telemetry to docker_dev_update

Add the ability to track command status and duration of
docker_dev_update

refs DE-550
flag = none

test-plan:
- ensure docker_dev_update work on Mac and Linux
without the telemetry. Using multiple combination
no flags, update-code, skip-canvas, skip-plugins etc.
- ensure the above is true also when telemetry is
enabled

Change-Id: I5d6f8185dd7d344c783e302deb6597e95692e44a
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/261026
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: James Butters <jbutters@instructure.com>
QA-Review: Andrea Cirulli <andrea.cirulli@instructure.com>
Product-Review: Andrea Cirulli <andrea.cirulli@instructure.com>
This commit is contained in:
Andrea Cirulli
2021-03-18 11:02:37 -06:00
parent f5a4bfb3f2
commit d1ccb225bf
5 changed files with 54 additions and 33 deletions

View File

@ -54,7 +54,7 @@ done
function rebase_canvas {
echo_console_and_log "Rebasing canvas-lms on HEAD ..."
if ! git pull --rebase origin master 2>&1 | tee -a "$LOG"; then
if ! _canvas_lms_track git pull --rebase origin master 2>&1 | tee -a "$LOG"; then
FAILED_REPOS+=("canvas-lms")
fi
echo ""
@ -66,7 +66,7 @@ function rebase_plugins {
function rebase_plugin {
echo_console_and_log "Rebasing plugin $1 ..."
if ! git pull --rebase origin master 2>&1 | tee -a "$LOG"; then
if ! _canvas_lms_track git pull --rebase origin master 2>&1 | tee -a "$LOG"; then
FAILED_REPOS+=("$1")
fi
echo ""
@ -162,4 +162,4 @@ create_log_file
intro_message "Rebase Canvas and Plugins"
check_for_changes
[[ -n "$SKIP_CANVAS" ]] || rebase_canvas
[[ -n "$SKIP_PLUGINS" ]] || rebase_plugins
[[ -n "$SKIP_PLUGINS" ]] || rebase_plugins