rollbar-sourcemap-webpack-plugin
rollbar-sourcemap-webpack-plugin copied to clipboard
Retry if fail to upload
Is it possible to add a retry up to say 3-4 times to upload the source maps to rollbar. I've noticed that my build will sporadically fail due to an upload failing.
Sporadically ? My deployments systematically fail 3 times out of 4 because of Rollbar source maps uploads with the following error:
ERROR in RollbarSourceMapPlugin: failed to upload blah.js.map to Rollbar: write EPIPE
RollbarSourceMapPlugin: failed to upload foo.js.map to Rollbar: There was an internal error processing your request. Please try again. If you'd like to contact us about this issue, email [email protected] . For system status, visit http://status.rollbar.com
I am also getting sporadically failed builds that will succeed after a rebuild. It's a shame that I have to re-run my entire build process just to kick off the rollbar upload step. A retry option would be superb!
This is also a huge issue for my team. One failed upload causes our entire build to fail. This morning, every single Dependabot update branch build has failed twice so far. That's 20 builds I've had to restart already.
I honestly don't even care about a retry. I'd be more interested in setting an "acceptable failure threshold" - maybe 5 files by default. 1 failed upload is a much smaller deal than tons of failed builds.
I would definitely help out if we could come to a consensus on the behavior.
@pjaws thanks for the input.
As short term workaround, you might want to use ignoreErrors: true config option.
that short term workaround is permanent solution it seem :)
I've created a PR for adding a retry option to the plugin... https://github.com/thredup/rollbar-sourcemap-webpack-plugin/pull/392
The best scenario would be that rollbar wouldn't fail sporadically, but until then, this might help you out