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

[rush] allowWarningsInSuccessfulBuild stopped working in v5.59.0 #3165

Closed
gesiu opened this issue Jan 18, 2022 · 2 comments · Fixed by #3166
Closed

[rush] allowWarningsInSuccessfulBuild stopped working in v5.59.0 #3165

gesiu opened this issue Jan 18, 2022 · 2 comments · Fixed by #3166

Comments

@gesiu
Copy link

gesiu commented Jan 18, 2022

Summary

In command-line.json, the following config allows a successful build when a test writes to stderr:

{
      "commandKind": "bulk",
      "name": "test",
      "summary": "Tests each of the projects",
      "description": "Tests each of the projects",
      "enableParallelism": false,
      "allowWarningsInSuccessfulBuild": true
    }

When upgrading from 5.58.0 to 5.59.0, the build fails.

Repro steps

https://github.com/gesiu/rush-warnings

npm install
npm run test

Expected: Succeeds with return code 0

Actual:
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] test: node common/scripts/install-run-rush.js test
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] test script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm WARN Local package.json exists, but node_modules missing, did you mean to install?

This succeeds if the rush version is reverted to 5.58.0 in
https://github.com/gesiu/rush-warnings/blob/main/rush.json

Details

This commit translates bulk commands to phased commands. Phased commands don't support allowWarningsInSuccessfulBuild, so that parameter has no effect anymore.

Standard questions

Please answer these questions to help us investigate your issue more quickly:

Question Answer
@microsoft/rush globally installed version? N/A
rushVersion from rush.json? 5.58.0 works; 5.59.0+ doesn't work
useWorkspaces from rush.json? No
Operating system? Windows
Would you consider contributing a PR? Not at this time
Node.js version (node -v)? 14.16.1
@isc30
Copy link
Contributor

isc30 commented Jan 18, 2022

facing the same issue, please this is a critical bug

@isc30
Copy link
Contributor

isc30 commented Jan 18, 2022

@iclanton

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

2 participants