File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -135,6 +135,7 @@ jobs:
135135 # AR_LOG: "on"
136136 RAILS_MINITEST_PLUGIN : " 1" # Make sure that we use the minitest plugin for profiling.
137137 - name : Archive culprits list
138+ if : always()
138139 uses : actions/upload-artifact@v4
139140 with :
140141 name : culprits-${{ matrix.number }}-${{ github.run_started_at }}.txt
Original file line number Diff line number Diff line change @@ -120,20 +120,20 @@ module ListTestsBefore
120120 module_function
121121
122122 def teardown
123- p instance_variable_names
124123 return unless @@before_the_test
125124
126125 if name == "test_create_with_query_cache"
127126 @@before_the_test = false
128127 @@passed = passed?
128+ raise Interrupt
129129 else
130130 @@tests_before . push name
131131 end
132132 end
133133
134134 def after_run
135135 is = @@passed ? "innocent" : "culprit"
136- File . write ( "tmp/culprits.txt" , @@tests_before . map { "#{ _1 } #{ is } " } . join ( "\n " ) )
136+ File . write ( "tmp/culprits.txt" , @@tests_before . map { "#{ _1 } #{ is } " } . join ( "\n " ) + " \n " )
137137 end
138138end
139139
You can’t perform that action at this time.
0 commit comments