To build Console plugin SDK: $ cd frontend/packages/console-dynamic-plugin-sdk $ yarn build This generates multiple distributable SDK packages: $ ls dist core internal internal-kubevirt webpack However, if one of these dist packages has build errors, the `yarn build` command may still exit with code 0 (OK result). Steps to Reproduce: 1. edit tsconfig-internal.json and introduce an error, for example: - "extends": "./tsconfig-base.json", + "extends": "./tsconfig-base.json1", 2. run `yarn build ; echo $?` 3. exit code is 0, other dist packages are still built Expected results: Repeat steps 1. and 2. above. Exit code should be non-zero, build should stop immediately after encountering errors.
1. edit tsconfig-internal.json and introduce an error, for example: - "extends": "./tsconfig-base.json", + "extends": "./tsconfig-base.json1", 2. run `yarn build ; echo $?` .............. ~~~~~~~~~~~~~ tsconfig-internal.json:2:14 - error TS6053: File './tsconfig-base.json1' not found. 2 "extends": "./tsconfig-base.json1", ~~~~~~~~~~~~~~~~~~~~~~~ Found 78 errors. error Command failed with exit code 2. info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command. error Command failed with exit code 2. info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command. 2 the return code is 2 and `yarn build` stop immediately when error occurs
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (Moderate: OpenShift Container Platform 4.12.0 bug fix and security update), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2022:7399