Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AIX build process and bash side-effects when using process substitution #2536

Open
aixtools opened this issue Mar 19, 2021 · 1 comment
Open
Labels
aix Issues that affect or relate to the AIX OS bug Issues that are problems in the code as reported by the community

Comments

@aixtools
Copy link
Contributor

What are you trying to do?
Standard build (on AIX) - manual or automated

Expected behaviour:
Build completes without 7500-8000 left over special files in /tmp
Observed behaviour:
Build completes (success or fail, not relevant, except that success has most leftover files):
roughly 7800 /tmp/sh-np* files>
e.g: see adoptium/infrastructure#2029 for a proposed treatment - a cronjob to daily scan /tmp for stale (jenkins) files left-over from the build process

Also see: adoptium/infrastructure#2029 (comment) for an explanation of what is happening - and perhaps a solution
Any other comments:

  • While the current build-process is not directly at fault - it does suffer from a bash-bug. The bug is known, but not resolved.
  • The way process substitution is being used in most, if not all, cases might be resolved by using traditional pipes and output re-direction.
  • In short: healing might be much more effective than treatment
@M-Davies M-Davies added aix Issues that affect or relate to the AIX OS bug Issues that are problems in the code as reported by the community labels Mar 19, 2021
@aixtools
Copy link
Contributor Author

aixtools commented Mar 20, 2021

Basically, why use something such as:

/usr/bin/printf "Building targets 'product-images legacy-jre-image test-image' in configuration 'aix-ppc64-normal-server-release'\n" > >(/usr/bin/tee -a /home/aixtools/openjdk-build/build-farm/workspace/build/src/build/aix-ppc64-normal-server-release/build.log) 2> >(/usr/bin/tee -a /home/aixtools/openjdk-build/build-farm/workspace/build/src/build/aix-ppc64-normal-server-release/build.log >&2)

rather than:

/usr/bin/printf "Building targets 'product-images legacy-jre-image test-image' in configuration 'aix-ppc64-normal-server-release'\n" 2>&1 | tee -a /usr/bin/tee -a /home/aixtools/openjdk-build/build-farm/workspace/build/src/build/aix-ppc64-normal-server-release/build.log

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
aix Issues that affect or relate to the AIX OS bug Issues that are problems in the code as reported by the community
Projects
Status: Todo
Development

No branches or pull requests

2 participants