File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -115,8 +115,10 @@ jobs:
115115 ruby -ne 'raise "Disassembly seems broken in dev build (output has too few lines)" unless $_.to_i > 10'
116116 if : ${{ contains(matrix.configure, 'jit=dev') }}
117117
118- - name : Enable YJIT through ENV
119- run : echo "RUBY_YJIT_ENABLE=1" >> $GITHUB_ENV
118+ - name : Set ENV for YJIT
119+ run : |
120+ echo "RUBY_YJIT_ENABLE=1" >> $GITHUB_ENV
121+ echo "RUBY_CRASH_REPORT=$(pwd)/rb_crash_%p.txt" >> $GITHUB_ENV
120122
121123 - name : Set test options for skipped tests
122124 run : |
@@ -166,6 +168,10 @@ jobs:
166168 if : ${{ matrix.test_task == 'check' && matrix.skipped_tests }}
167169 continue-on-error : ${{ matrix.continue-on-skipped_tests || false }}
168170
171+ - if : ${{ failure() }}
172+ continue-on-error : true
173+ run : tail --verbose --lines=+1 rb_crash_*.txt
174+
169175 - uses : ./.github/actions/slack
170176 with :
171177 label : ${{ matrix.test_task }} ${{ matrix.configure }} ${{ matrix.yjit_opts }}
Original file line number Diff line number Diff line change @@ -169,7 +169,9 @@ jobs:
169169 if : ${{ contains(matrix.configure, 'jit=dev') }}
170170
171171 - name : Enable YJIT through ENV
172- run : echo "RUBY_YJIT_ENABLE=1" >> $GITHUB_ENV
172+ run : |
173+ echo "RUBY_YJIT_ENABLE=1" >> $GITHUB_ENV
174+ echo "RUBY_CRASH_REPORT=$(pwd)/rb_crash_%p.txt" >> $GITHUB_ENV
173175
174176 # Check that the binary was built with YJIT
175177 - name : Check YJIT enabled
@@ -208,6 +210,11 @@ jobs:
208210 LAUNCHABLE_STDERR : ${{ steps.launchable.outputs.stderr_report_path }}
209211 continue-on-error : ${{ matrix.continue-on-test_task || false }}
210212
213+ - name : Dump crash logs
214+ if : ${{ failure() }}
215+ continue-on-error : true
216+ run : tail --verbose --lines=+1 rb_crash_*.txt
217+
211218 - uses : ./.github/actions/slack
212219 with :
213220 label : ${{ matrix.test_task }} ${{ matrix.configure }}
You can’t perform that action at this time.
0 commit comments