Closed zhming0 closed 2 days ago
I'm not super keen on this, since it will cause people's builds to fail if the upload API is down. I always thought of the test collectors as a best-effort service.
What do you think about making this a configuration option so people could turn it on if they so wished? How does this behaviour compare to the other collectors? Do they raise an issue if the data cannot be sent?
I'm not super keen on this, since it will cause people's builds to fail if the upload API is down. I always thought of the test collectors as a best-effort service.
@wooly and @nprizal
It won't fail people's build. Our uploader has logic capturing the error.
It was just previously, the error reporting was never working, so we were completely in the dark about what happen in the collector.
@zhming0 ah yep I see it now, sorry for the noise!
@gchan I added some tests. 👍🏿
part of PIE-2813
Fix uploader so it will throw a runtime error if backend does not return 2xx. This will result in a log message if any upload fails.
Note it will not fail a build if the upload fails.