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
Compilation problem does not report correctly when running in Teamcity (& likely other CIs) #5951
Comments
Thanks for your contribution to Nuxt.js!
Issues that are labeled as |
This issue still occurs. To reiterate reproduce steps:
Build status returns 0 and no errors are reported, instead of failing as supposed to. |
This should not be a stale issue. More time was spent on this than should have been necessary to figure out |
Thanks for your contribution to Nuxt.js!
Issues that are labeled as |
BUMP. Reproduction is above. This is not a stale issue. The same issue still exists, nothing has changed. There needs to be one (or more) of the following in place:
Either one is sufficient. This is still the same issue in edge. |
Could someone from Nuxt team comment on this at least? There is a workaround, but it's not enabled by default. This issue needs to be fixed (IMO quiet should only impact verbosity of the logging, not build status reporting), or if that's too difficult/too low priority, at least the default could be changed so that CI works with default settings. |
Thanks for reporting! #6075 should've fixed that. |
Ahhh, good news :) Thanks, didn't notice the other issue. |
NP and sorry for the delay 👍 Closing here as it'll be fixed in the upcoming v2.9 (should be already present in |
Version
v2.8.1
Reproduction link
https://codesandbox.io/s/codesandbox-nuxt-hvv2n
Steps to reproduce
Create a default nuxt project and create a broken component - for example importing non-existing component (or download linked CodeSandbox project)
Run to check for expected behaviour
yarn install && yarn build && echo "should not see this"
You will get nuxt fatal error and "should not see this" will not be printed.
You can run same project in Teamcity to see build would succeed and no logs printed, but easier is to simulate this by setting env variable, e.g.
export BUILD_NUMBER=123
Clean up the directory and run the same command as 2. Rather than seeing build errors and skipped last command, the build will return 0 and will not print that it failed.
What is expected ?
What is actually happening?
build quietly fails and returns 0 ("should not see this" is printed)
Additional comments?
As a current workaround, setting quiet:false in build section in nuxt.config.js enforces the behaviour in Teamcity to be same as usual, i.e. reports issues correctly in logs and with error code.
The text was updated successfully, but these errors were encountered: