-
Notifications
You must be signed in to change notification settings - Fork 607
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] build-cache ignores allowWarningsInSuccessfulBuild #2803
Comments
I'm not very familiar with this logic but it seems like
allowWarningsInSuccessfulBuild
|
Agreed, this seems like a bug. |
It seems related #1402 |
@relm923 Try let this
|
I have encountered the same issue. |
That would be great! If you have questions about the approach, #contributor-helpline is the quickest way to get unblocked. |
Summary
The new build-cache system does not write to the cache when the command writes to STDERR even when
allowWarningsInSuccessfulBuild: true
is used in the command config.This is easiest to see when running
rush test
and usingjest
since Jest regularly writes to STDERR (jestjs/jest#5064). But will occur with any command that writes to STDERRI would expect the build-cache logic to respect the
allowWarningsInSuccessfulBuild
so we can still take advantage of caching even when third parties use STDERR incorrectly.Repro steps
Add global command that triggers something to write to STDERR
Expected result:
rush test
. No cache hits - all tests run (printing warnings) and cache is updatedrush test
again. All cache hits - no tests runActual result:
rush test
. No cache hits - all tests run (printing warnings) and cache is NOT updatedrush test
again. No cache hits - all tests run (printing warnings) and cache is NOT updatedDetails
Standard questions
Please answer these questions to help us investigate your issue more quickly:
@microsoft/rush
globally installed version?rushVersion
from rush.json?useWorkspaces
from rush.json?node -v
)?The text was updated successfully, but these errors were encountered: