Skip to content

Commit 7f069f2

Browse files
committed
correct stackprof
1 parent fe3c598 commit 7f069f2

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ jobs:
8888
done
8989
cat ${{ github.workspace }}/setup.sql | cockroach sql --insecure
9090
- name: Test
91-
run: AR_LOG=summary bundle exec rake test TESTOPTS='--profile=5 --verbose'
91+
run: AR_LOG=summary bundle exec rake test TESTOPTS='--stackprof=tmp/stackprof.dump --profile-setup --profile=5 --verbose'
9292
- name: Upload test information
9393
uses: actions/upload-artifact@v4
9494
if: always()

Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ 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"
61+
gem "minitest-stackprof"
6262

6363
# Gems used for tests meta-programming.
6464
gem "parser"

test/cases/helper_cockroachdb.rb

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,8 @@ class BaseCompatibilityTest < ActiveRecord::TestCase
223223
self.use_transactional_tests = false
224224
end
225225

226-
require "stackprof"
227226
FileUtils.mkdir_p("tmp")
228-
StackProf.start(mode: :wall, interval: 1000, out: "tmp/stackprof.dump", raw: true)
229-
Minitest.after_run { StackProf.stop; StackProf.results("tmp/stackprof.dump") }
227+
228+
# require "stackprof"
229+
# StackProf.start(mode: :wall, interval: 1000, out: "tmp/stackprof.dump", raw: true)
230+
# Minitest.after_run { StackProf.stop; StackProf.results("tmp/stackprof.dump") }

0 commit comments

Comments
 (0)