<div dir="ltr"><div>That error is due to <a href="https://github.com/ferd/cth_readable/">https://github.com/ferd/cth_readable/</a>, a CT hook that rebar3 bundles to make CT output look nicer. <br></div><div><br></div><div>Usually this is stable stuff that worked well for multiple versions, and the only broken one I'm aware of is OTP-21-rc2 (the fix is in master, but hasn't been put in an official release yet). The error makes it look like the following code is being called:</div><div><br></div><div><a href="https://github.com/ferd/cth_readable/blob/master/src/cthr.erl#L74-L75">https://github.com/ferd/cth_readable/blob/master/src/cthr.erl#L74-L75</a></div><div><br></div><div>This is dynamic detection of the logger module in OTP-21, which requires output to be redirected in another place than the default error logger. If your own project happens to also include a module named 'logger', then you're getting into a clash with code that attempts to support a newer version of Erlang.<br></div><div><br></div><div>If that is what happens, I can only advise to:</div><div><ul><li>possibly disable the pretty output by adding --readable=false to your command, or {ct_readable, false} to your rebar.config file</li><li>switch to an older rebar3 version that will support only the older logging interface</li><li>explicitly disable ct_readable, manually include an older version of cth_readable and use that one instead by specifying CT hooks in {ct_opts, [{hooks, [...]}]}</li></ul><div>If you do not have a logger module in your OTP-19 version, then I'm going to need more details to figure that one out.<br></div></div><div><div><br></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jun 8, 2018 at 9:56 AM, Attila Rajmund Nohl <span dir="ltr"><<a href="mailto:attila.r.nohl@gmail.com" target="_blank">attila.r.nohl@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Recently our common_test suites started to fail in our (gitlab-runner)<br>
CI environment with errors like this:<br>
<br>
{dir_SUITE,init_per_testcase,<br>
{{noproc,<br>
 {gen_event,call,<br>
 [cth_readable_logger,cth_<wbr>readable_failonly,<br>
{ct_pal,<br>
[10,45,45,45,45,45,45,45,45,<wbr>45,45,45,45,45,45,45,45,<br>
 45,45,45,45,45,45,45,45,45,45,<wbr>45,45,45,45,45,45,45,<br>
 45,45,45,45,45,45,45,45,45,45,<wbr>45,45,45,45,45,45,45,<br>
 45,45,10,"2018-06-06 19:41:49.002",10,116,101,115,<br>
 116,32,105,110,105,116,32,39,"<wbr>bic",39,58,32,68,101,<br>
 108,101,116,101,100,32,107,<wbr>101,121,115,32,"[]",10,<br>
 10]}]}},<br>
 [{gen_event,call1,3,[{file,"<wbr>gen_event.erl"},{line,207}]},<br>
{cthr,pal,4,<br>
[{file,<br>
<br>
"/usr/src/rebar3-src/_build/<wbr>default/lib/cth_readable/src/<wbr>cthr.erl"},<br>
 {line,74}]},<br>
<br>
As far as I understand the gitlab CI environment and our setup, the CI<br>
job fetches the erlang:19 Docker image:<br>
<br>
Using docker image<br>
sha256:<wbr>2ea95f0c3147e50b79b4fcd28c955c<wbr>80c2e57eb20fb8ff61bb8ed1873d0b<wbr>6957<br>
for erlang:19<br>
<br>
and executes our test suite in that image. Our code did not change,<br>
but it looks like the image did change, at least at the latest<br>
successful test I see this in the logs:<br>
<br>
Using docker image<br>
sha256:<wbr>e36b5300c4cf2f504f0222ea66bbf8<wbr>1fb2e514ad88cb93f111b5e85e7893<wbr>b99a<br>
for erlang:19<br>
<br>
Do you know what could cause this problem?<br>
______________________________<wbr>_________________<br>
erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a><br>
<a href="http://erlang.org/mailman/listinfo/erlang-questions" rel="noreferrer" target="_blank">http://erlang.org/mailman/<wbr>listinfo/erlang-questions</a><br>
</blockquote></div><br></div>