Erlang 27: ct_logs:custom_stylesheet_header/1 runs into an exception when the provided path does not exist #8911
Labels
bug
Issue is reported as a bug
priority:low
stalled
waiting for input by the Erlang/OTP team
team:PS
Assigned to OTP team PS
In RabbitMQ test suites that pass on Erlang 26.2, on Erlang 27 I observe the following exception in
ct_logs
:which makes the run fail even though all tests have succeeded.
How to Reproduce
So far I was unable to pin down this phenomenon to a particular test suite. It does not affect the vast majority of suites, only two are affected:
deps/rabbitmq_mqtt
deps/rabbit
suitesEach group of suites in the examples above is executed in parallel.
ct_logs:custom_stylesheet_header/1
accepts an argument that's either a path, anundefined
orunknown
but it does not handle{error, _}
cases.The custom stylesheet argument is passed to
ct_logs
fromct_run:refresh_logs/2
.The value passed in can be coming from
erlang.mk
or RabbitMQ's own code but exactly the same parameters are used on Erlang 26.2 which does not run into this exception.Possible Solutions
If making
ct_logs:custom_stylesheet_header/1
more defensive by handling{error, _}
or specifically{error, does_not_exist}
would be considered acceptable,I'd be happy to submit a PR.
The text was updated successfully, but these errors were encountered: