Skip to content

Commit 41aaadc

Browse files
committed
verbose test
1 parent c02cf48 commit 41aaadc

File tree

3 files changed

+19
-1
lines changed

3 files changed

+19
-1
lines changed

.github/workflows/ci.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,4 +88,16 @@ jobs:
8888
done
8989
cat ${{ github.workspace }}/setup.sql | cockroach sql --insecure
9090
- name: Test
91-
run: bundle exec rake test TESTOPTS='--profile=5'
91+
run: AR_LOG=summary bundle exec rake test TESTOPTS='--profile=5 --verbose'
92+
- name: Upload queries file
93+
uses: actions/upload-artifact@v3
94+
if: always()
95+
with:
96+
name: query_time.json
97+
path: tmp/query_time.json
98+
- name: Upload stackprof dump
99+
uses: actions/upload-artifact@v3
100+
if: always()
101+
with:
102+
name: stackprof.dump
103+
path: tmp/stackprof.dump

Gemfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,8 @@ group :development, :test do
5858
gem "minitest-github_action_reporter", github: "BuonOmo/minitest-github_action_reporter", require: "minitest/github_action_reporter_plugin"
5959
gem "ostruct", "~> 0.6"
6060

61+
gem "stackprof"
62+
6163
# Gems used for tests meta-programming.
6264
gem "parser"
6365

test/cases/helper_cockroachdb.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,3 +222,7 @@ def header(stream)
222222
class BaseCompatibilityTest < ActiveRecord::TestCase
223223
self.use_transactional_tests = false
224224
end
225+
226+
require "stackprof"
227+
StackProf.start(mode: :wall, interval: 1000)
228+
Minitest.after_run { StackProf.stop; StackProf.results("tmp/stackprof.dump") }

0 commit comments

Comments
 (0)