From a4daa56fe86a4fdcbfdff7354a35ea636bc8f2ff Mon Sep 17 00:00:00 2001 From: Xavier Coulon Date: Tue, 19 Apr 2022 22:14:48 +0200 Subject: [PATCH] add logs Signed-off-by: Xavier Coulon --- .github/workflows/ci-bench.yml | 1 + make/bench.mk | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci-bench.yml b/.github/workflows/ci-bench.yml index 0a5c439b..a6cb2207 100644 --- a/.github/workflows/ci-bench.yml +++ b/.github/workflows/ci-bench.yml @@ -42,6 +42,7 @@ jobs: go install golang.org/x/perf/cmd/benchstat@latest make bench-diff OUTPUT=$(make print-bench-diff) + echo "output: $OUTPUT" echo "::set-output name=summary::$OUTPUT" - name: Comment Benchmark Diffs diff --git a/make/bench.mk b/make/bench.mk index 10bca942..9d144b93 100644 --- a/make/bench.mk +++ b/make/bench.mk @@ -34,7 +34,7 @@ bench-diff: clean generate-optimized check-git-status | tee $(REPORTS_DIR)/v0.7.0.bench @echo "generated $(REPORTS_DIR)/v0.7.0.bench" @git checkout $(GITHUB_SHA) - @echo "HEAD is now at $(git rev-parse --abbrev-ref HEAD) (expecting $(GITHUB_SHA))" + @echo "HEAD is now at $(shell git log -1 --format='%h') (expecting $(GITHUB_SHA))" @echo "Comparing with 'master' branch" @$(GOPATH)/bin/benchstat $(REPORTS_DIR)/$(GITHUB_SHA)-$(GIT_COMMIT_ID_SHORT).bench $(REPORTS_DIR)/master.bench @echo ""