ruby-changes:55676
From: Takashi <ko1@a...>
Date: Wed, 8 May 2019 16:26:26 +0900 (JST)
Subject: [ruby-changes:55676] Takashi Kokubun: 60869ebd00 (trunk): Wrap mjit-debug-on-fail for Wercker failure
https://git.ruby-lang.org/ruby.git/commit/?id=60869ebd00 From 60869ebd005dc21e03e5f3cf9b517ff761781e80 Mon Sep 17 00:00:00 2001 From: Takashi Kokubun <takashikkbn@g...> Date: Wed, 8 May 2019 16:25:25 +0900 Subject: Wrap mjit-debug-on-fail for Wercker failure for debugging failure like https://app.wercker.com/ruby/ruby/runs/mjit-test1/5cc98936ab79a30008eb86fa?step=5cc990d73d81fb0007bb04c3 https://app.wercker.com/ruby/ruby/runs/mjit-test1/5cd18efa23fcb70008ddfd45?step=5cd1908603f4460007076c5a diff --git a/wercker.yml b/wercker.yml index 08e2844..bfd1311 100644 --- a/wercker.yml +++ b/wercker.yml @@ -23,6 +23,21 @@ mjit-test1: https://github.com/ruby/ruby/blob/trunk/wercker.yml#L23 - script: name: make all install code: /usr/bin/sudo -H -u test -- make -j$(nproc) all install + - script: + name: install mjit-debug-on-fail + code: | + cat <<'EOS' > /usr/local/bin/mjit-debug-on-fail + #!/bin/bash + if ! $@; then + for f in $(find /tmp -type f -name "ruby_mjit*.c"); do + echo "[${f}]===" + cat "$f" + echo "===" + echo + done + exit 1 + fi + EOS # --jit - script: @@ -33,7 +48,7 @@ mjit-test1: https://github.com/ruby/ruby/blob/trunk/wercker.yml#L48 code: /usr/bin/sudo -H -u test -- make test-spec RUN_OPTS="--disable-gems --jit --jit-warnings" - script: name: make test-all (JIT) - code: /usr/bin/sudo -H -u test -- make test-all RUN_OPTS="--disable-gems --jit --jit-warnings" TESTOPTS="-v --color=never --job-status=normal --longest 10 --subprocess-timeout-scale=3.0 --excludes=test/excludes/_wercker/jit" + code: /usr/local/bin/mjit-debug-on-fail /usr/bin/sudo -H -u test -- make test-all RUN_OPTS="--disable-gems --jit-verbose=1 --jit-save-temps --jit-warnings" TESTOPTS="-v --color=never --job-status=normal --longest 10 --subprocess-timeout-scale=3.0 --excludes=test/excludes/_wercker/jit" # --jit-wait (test, test-spec) - script: -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/