Skip to content
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

Improve Sentry CLI messages #2307

Closed
bruno-garcia opened this issue Apr 17, 2023 · 10 comments · Fixed by #2386
Closed

Improve Sentry CLI messages #2307

bruno-garcia opened this issue Apr 17, 2023 · 10 comments · Fixed by #2386
Labels
Feature New feature or request

Comments

@bruno-garcia
Copy link
Member

I am trying to upload some debug / source data from a docker build /w NuGet sentry-cli (which I authed with token, logs are OK) and I see a weird ie. non informant msg:

PENDING 8..guid (MyProj.pdb; unknown sources)

From: https://twitter.com/vekzdran/status/1648015516517146656

@bruno-garcia
Copy link
Member Author

@mattjohnsonpint
Copy link
Contributor

Yep. This is normal. I'll reply to the twitter thread.

@mattjohnsonpint mattjohnsonpint changed the title Debug file upload shows PENDING in the output Improve Sentry CLI messages Apr 17, 2023
@mattjohnsonpint
Copy link
Contributor

Breaking this down a bit:

Debug file upload shows PENDING in the output

This means the file upload has succeeded, and is pending processing by Sentry. If desired, one could add <SentryCLIOptions>--wait</SentryCLIOptions> to change this behavior, though I don't recommend it. See https://docs.sentry.io/product/cli/dif/#upload-options

It might be better if Sentry CLI said something like "SENT" or "ACCEPTED", as "PENDING" makes it seem like there's something that wasn't correctly done client-side.

Debug file shows unknown sources

This is normal for .NET assemblies that aren't compiled for a specific architecture. In other words, if you aren't explicitly setting x86, x64, or arm64, then there is no architecture. Visual Studio uses the terminology "Any CPU", but Sentry CLI (via Symbolic) uses the term "unknown". This makes it seem like something is wrong when it isn't. For .NET assemblies and pdbs, that string should probably just be omitted.

"sources" means the source bundle was included. That's controlled by <SentryUploadSources>true</SentryUploadSources>. It's only when strung together as "unknown sources" that it seems like something is wrong. It would be better if Sentry CLI used commas to separate the types of data included in the debug file.

All of these issues are either with Sentry CLI or Symbolic. We can keep this issue open to track how they affect .NET, but ultimately they need to be resolved in those respective projects.

@vaind
Copy link
Collaborator

vaind commented Apr 17, 2023

It might be better if Sentry CLI said something like "SENT" or "ACCEPTED", as "PENDING" makes it seem like there's something that wasn't correctly done client-side.

Sent would make sense, Accepted not really because at the time I think.

There's a --wait option that might be useful exposing.

@mattjohnsonpint
Copy link
Contributor

Right. you can pass that with SentryCLIOptions today. I could add another more-specific MSBuild parameter for it though, if folks would use it.

@vmandic
Copy link

vmandic commented Apr 17, 2023

Thank you so much for clarifying @mattjohnsonpint 🤝 and @bruno-garcia for opening the thread here.

Guess I need to specify the arch in my dotnet publish during my CI build then.

@mattjohnsonpint mattjohnsonpint added the Feature New feature or request label Apr 17, 2023
@mattjohnsonpint
Copy link
Contributor

@vmandic - I wouldn't create an architecture-specific build just for the sake of changing the unknown message in the build logs. That's our problem to fix not yours. 😅

In most cases, .NET defaults to architecture-neutral builds. You should only be more specific when you need to, such as when your app/library bundles a native library compiled for a specific architecture.

@mattjohnsonpint
Copy link
Contributor

Also, feel free to chat with us on Sentry's Discord server any time. We hang out on the #dotnet channel.

@mattjohnsonpint
Copy link
Contributor

Upstream issue: getsentry/sentry-cli#1583

@mattjohnsonpint
Copy link
Contributor

mattjohnsonpint commented May 22, 2023

Fixed in Sentry CLI 2.18.1 with getsentry/sentry-cli#1620.

It should now omit the "unknown" text, and say "UPLOADED" instead of "PENDING".

@mattjohnsonpint mattjohnsonpint linked a pull request May 22, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature New feature or request
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

4 participants