boulder icon indicating copy to clipboard operation
boulder copied to clipboard

Reduce logging in integration tests

Open aarongable opened this issue 2 years ago • 1 comments
trafficstars

Ideas:

  • shorten log line prefix (esp the rsyslog-added prefix)
  • lower log level overall, esp in the CA
  • when tests fail, send sigkill instead of sigterm for less-graceful and less-verbose shutdown

aarongable avatar May 15 '23 17:05 aarongable

We could condition the different logging code on the integration build tag.

One possible stumbling block: we do have code that collects log output and parses it (e.g. test-caa-log-checker). We would have to make sure it accepts both prod and dev style logs.

Another item for the list:

  • In the integration test, don't print stack traces on errors. Or rather catch exceptions and render them as a plain error (plus maybe the single line that originated it).
  • Also when the Go integration tests fail, don't print additional output from the Python orchestrator.

jsha avatar May 15 '23 17:05 jsha