-
Notifications
You must be signed in to change notification settings - Fork 149
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
RemoteRefUpdate Status is not populated to exception logger #684
Comments
hi, nice idea! would you like to make a PR?:) |
Of course, already in progress :) |
VicenteJankowski
pushed a commit
to VicenteJankowski/axion-release-plugin
that referenced
this issue
Nov 30, 2023
…, to ScmPushResult and including this status in logger.error (allegro#684)
VicenteJankowski
pushed a commit
to VicenteJankowski/axion-release-plugin
that referenced
this issue
Nov 30, 2023
…, to ScmPushResult and including this status in logger.error (allegro#684)
VicenteJankowski
pushed a commit
to VicenteJankowski/axion-release-plugin
that referenced
this issue
Nov 30, 2023
…, to ScmPushResult and including this status in logger.error (allegro#684)
VicenteJankowski
pushed a commit
to VicenteJankowski/axion-release-plugin
that referenced
this issue
Nov 30, 2023
…, to ScmPushResult and including this status in logger.error (allegro#684)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
GitRepository.class has
verifyPushResults
method, which looks forRemoteRefUpdate
instance of packageorg.eclipse.jgit.transport
with status different thanOK
. As a result ofverifyPushResults
there is created newScmPushResult
instance in which there is only populated value of message of theRemoteRefUpdate
, but not status. As documentation ofRemoteRefUpdate
states, message is present only if it is "needed/possible".As consequence, there are cases in which push results in self-explaining failure status with no message - this happens for example for
REJECTED_NONFASTFORWARD
status.Because of the above, if push will be rejected with status, which does not include message, we then get gradle task failure with exception
ReleaseFailedException
with no error message:This is hard to quickly understand the reason of the problem and to debug.
Improvement suggestion:
The code should populate
RemoteRefUpdate.Status
toScmPushResult.class
and then status should be included in exception logger. Example of possible stdout:The text was updated successfully, but these errors were encountered: