RFR: 8293361: GHA: dump config.log in case of configure failure

Magnus Ihse Bursie ihse at openjdk.org
Mon Sep 5 18:51:28 UTC 2022


On Mon, 5 Sep 2022 12:37:47 GMT, Magnus Ihse Bursie <ihse at openjdk.org> wrote:

> If configure fails in GHA it is very hard to debug. Dumping the contents of config.log helps.

I don't know what is your definition of "large". The relevant output is in the top of the file, and in the end all internal variables are dumped -- that is a bit annoying and I've never found it useful. 

Here is an example on how it looks with a failed build: https://github.com/magicus/jdk/runs/8163132267?check_suite_focus=true

If you don't think this is good I can withdraw this PR, but I will not try to upload this as an artifact instead, that is way to much work for me to be bothered to do it. (My personal opinion is also that this is much more helpful, the current implementation of artifacts is very clumsy, and with this solution you can get the configure output and the config.log at the same place)

(A cool addition would rather be to create a "Summary" markdown that exposes both configure output and config.log in collapsible sections, like how test failures are presented)

-------------

PR: https://git.openjdk.org/jdk/pull/10165



More information about the build-dev mailing list