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

Upgrades: shorter error message when upload dar with invalid upgrade #20254

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

raphael-speyer-da
Copy link
Collaborator

@raphael-speyer-da raphael-speyer-da commented Nov 6, 2024

The message is currently truncated at 512 chars before being returned to the client, which for this error doesn't typically give enough space to actually see the upgrade failure reason at the end.
e.g.

15:35:21.817 #1 D Fiber zio-fiber-4990 did not handle an errorException in thread "zio-fiber-4990" io.grpc.StatusException: INVALID_ARGUMENT: DAR_NOT_VALID_UPGRADE(8,6e4778e2): The uploaded DAR contains a package 8573fd1f5321f746a1707c059966b8340dd0a2e49009f4d990abfe8812c399f8 (com-digitalasset-scribe-features-upgrades-PackageNameSupportSpec-ping v0.0.1), but upgrade checks indicate that new package 8573fd1f5321f746a1707c059966b8340dd0a2e49009f4d990abfe8812c399f8 (com-digitalasset-scribe-features-upgrades-PackageNameSupportSpec-ping v0.0.1) cannot be an upgrade of existing package 0354dc017ec11c1dc7343b27f3e3e1867abd1b026ea459b00d46033f3754d531 (com-digitalasset-scribe-features-up...

The info about the uploaded package (here, 8573fd1f5321f746a1707c059966b8340dd0a2e49009f4d990abfe8812c399f8 (com-digitalasset-scribe-features-upgrades-PackageNameSupportSpec-ping v0.0.1)) is provided twice and takes up a lot of space, so removing the duplication is a simple first step.

@raphael-speyer-da raphael-speyer-da changed the title Upgrades: shorter message on upload of dar with invalid upgrade Upgrades: shorter error message when upload dar with invalid upgrade Nov 6, 2024
Copy link
Contributor

@tudor-da tudor-da left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💯

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants