ruby-changes:55801
From: Takashi <ko1@a...>
Date: Fri, 24 May 2019 00:42:53 +0900 (JST)
Subject: [ruby-changes:55801] Takashi Kokubun: 187ef00a41 (trunk): wercker.yml: Commit MJIT debug logs to another repository
https://git.ruby-lang.org/ruby.git/commit/?id=187ef00a41 From 187ef00a41ca28a26ffa0a9399c48335578590bb Mon Sep 17 00:00:00 2001 From: Takashi Kokubun <takashikkbn@g...> Date: Thu, 23 May 2019 08:41:18 -0700 Subject: wercker.yml: Commit MJIT debug logs to another repository because too-large Wercker output is truncated. ruby/mjit-debug is a private repository for now, because the person fixing it is likely to be me or another committer. diff --git a/wercker.yml b/wercker.yml index ae9d3c0..6e810a1 100644 --- a/wercker.yml +++ b/wercker.yml @@ -29,16 +29,26 @@ mjit-test1: https://github.com/ruby/ruby/blob/trunk/wercker.yml#L29 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 + git clone --depth=1 git@g...:ruby/mjit-debug + cd mjit-debug + + debug_dir="$(date '+%F_%T')" + mkdir "$debug_dir" + cp /tmp/_ruby_mjit*.c "$debug_dir" + + git add "$debug_dir" + git commit -m "Debug ${debug_dir}: ${WERCKER_BUILD_URL}" + git push origin master exit 1 fi EOS chmod +x /usr/local/bin/mjit-debug-on-fail + # git push access to ruby/mjit-debug (private repository) + - add-ssh-key: + keyname: MJIT_DEBUG + host: github.com + - add-to-known_hosts: + hostname: github.com # --jit - script: -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/