Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8065576

Enable pipefail in the shell used by make to better detect build errors

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 9
    • 9
    • infrastructure
    • b49

        In JDK-8065138 it was discovered that non zero return values of sed was ignored if the result of sed was piped to another process, which in turn had a zero return value. Having the build fail in this case would have been preferred. A way to achieve this would be to change the SHELL used by make to bash and enable the option pipefail. We should experiment with this and see if it can be done.

        Note that we already require bash to build so it is already present on all build platforms, and it is used to run the log wrapper script.

        It's quite possible that this will uncover other build failures that would then need to be fixed or handled appropriately.

              erikj Erik Joelsson
              erikj Erik Joelsson
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: