-
Notifications
You must be signed in to change notification settings - Fork 341
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
NullReferenceException from PublishArtifactsInManifest in ASP.NET Core build #7924
Comments
tossing into FR since this is customer pain from code exposed by Arcade that impacts day-to-day operations. Looking at the call stack:
... everything except the bottom of the stack is actually in external code (Microsoft.SymbolUploader) so we should consult with @mikem8361 to ask about this, but I think in all cases we could simply retry from PublishSymbolsHelper.PublishAsync. |
It looks like it is attempting to retry an http request, logging the error and something in the log formatting is null. The only thing I can see from inspecting the code that dereferences something is the "activity" parameter. Which means the static property VssTraceActivity.Current is null. I could make changes to this logging/tracing code to make it more resilient if needed. /cc: @hoyosjs |
Another failure that looks like an instance of this: https://dev.azure.com/dnceng/internal/_build/results?buildId=1384845&view=results |
This would definitely be the preferable fix... it might even end up successfully retrying if so. If that's not feasible to do soon though, can you comment about whether outer code catching the null ref and retrying would be an acceptable workaround? |
We already have some fixes in PR (and approved) #7964 |
I believe #7964 is already out to fix this. |
The ASP.NET Core build at https://dev.azure.com/dnceng/internal/_build/results?buildId=1373561&view=logs&j=226748d0-f812-5437-d3f0-2dd291f5666e&t=bad11196-972e-5d03-45a8-9db526506073&l=51 failed with the following error:
This only happened once, so it seems to be an intermittent issue. There are binlogs at https://dev.azure.com/dnceng/internal/_build/results?buildId=1373689&view=artifacts&pathAsName=false&type=publishedArtifacts, in which I see the following:
So, it looks like the underlying issue is that the endpoint to which we're trying to publish didn't respond, or there was some other network issue.
Ideally,
PublishArtifactsInManifest
would report the underlying issue instead of throwing theNullReferenceException
, so that we don't risk blamingPublishArtifactsInManifest
for this and can more directly get to the cause without going through binlogs.The text was updated successfully, but these errors were encountered: