From d5c1fb99978d37a7eec28e969fe1195e7f8a762f Mon Sep 17 00:00:00 2001 From: Brian Gough Date: Tue, 10 May 2016 10:10:01 +0100 Subject: [PATCH] fix logic excluding smoke test in metric --- services/clsi/app/coffee/CompileManager.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/clsi/app/coffee/CompileManager.coffee b/services/clsi/app/coffee/CompileManager.coffee index dcd1a98b78..54a6a7ebdc 100644 --- a/services/clsi/app/coffee/CompileManager.coffee +++ b/services/clsi/app/coffee/CompileManager.coffee @@ -34,7 +34,7 @@ module.exports = CompileManager = timer = new Metrics.Timer("run-compile") # find the image tag to log it as a metric, e.g. 2015.1 (convert . to - for graphite) tag = request.imageName?.match(/:(.*)/)?[1]?.replace(/\./g,'-') or "default" - tag = "other" if project_id?.match(/^[0-9a-f]{24}$/) # exclude smoke test + tag = "other" if not request.project_id.match(/^[0-9a-f]{24}$/) # exclude smoke test Metrics.inc("compiles") Metrics.inc("compiles-with-image.#{tag}") LatexRunner.runLatex request.project_id, {