sentry-cli icon indicating copy to clipboard operation
sentry-cli copied to clipboard

Improve error message when previous release sha could not be found.

Open leonard84 opened this issue 1 year ago • 1 comments

The error message is devoid of helpful information to diagnose this problem.

Please add the previous release and the hash that Sentry is trying to locate to the error message. Even setting the log level to debug does not seem to log that information.

error: Could not find the SHA of the previous release in the git history. If you limit the clone depth, try to increase it. Otherwise, it means the commit we are looking for was amended or squashed and cannot be retrieved. Use --ignore-missing flag to skip it and create a new release with the default commits count.

leonard84 avatar Jun 20 '24 11:06 leonard84

@leonard84, can you please provide the exact command that you tried to run, and also describe what you were trying to accomplish? And, do you have any suggestions for how we could improve the error message? From what I can tell, the current message seems to be providing some helpful tips on how to fix the problem, so could you please help me understand what you think is missing from the message?

szokeasaurusrex avatar Jun 24 '24 08:06 szokeasaurusrex

This issue has gone three weeks without activity. In another week, I will close it.

But! If you comment or otherwise update it, I will reset the clock, and if you remove the label Waiting for: Community, I will leave it alone ... forever!


"A weed is but an unloved flower." ― Ella Wheeler Wilcox 🥀

getsantry[bot] avatar Jul 16 '24 07:07 getsantry[bot]

what should be there in set-commits? I'm providing a custom SENTRY_RELEASE env var, and it tries to set it into set-commits, but it's not a commit SHA.

alexbuznik-stark avatar Sep 17 '24 09:09 alexbuznik-stark