Closed jeffposnick closed 7 years ago
If a gulp
task returns a rejected promise, and that promise rejection doesn't include a rejection value, then gulp
won't consider that an error.
Which... I know ☹️
I actually bumped up into this previously, and filed https://github.com/gulpjs/gulp/issues/1642, and was told that it was fixed in gulp
4. But it's still not fixed with
$ gulp -v
[14:31:53] CLI version 1.3.0
[14:31:53] Local version 4.0.0-alpha.2
I'm going to follow-up with my original bug against gulp
, but in the meantime, I'll file a PR to reject those promises with a value so that the build pipeline will properly terminate.
I just had a bad experience during my first attempt at running
npm run deploy
locally, and I wanted to document the errors first, and then think about how we can change the deployment pipeline to prevent it from happening again.Here's what I was seeing:
I'm assuming that the build failed due to that
error. Ideally, a failure in that step of the build pipeline should be treated as a fatal error, and stopping the chain. Failing that, the Firebase deploy step ideally would have treated the
as a fatal condition, and also refused to deploy.