Skip to content

Conversation

@fbac
Copy link
Collaborator

@fbac fbac commented Sep 12, 2025

Bubble up validation results by returning validator error messages from message.Service.validateKeyPackage and populating mlsvalidate.KeyPackageValidationResult.ErrorMessage

  • Update message.Service.validateKeyPackage in service.go to return an InvalidArgument error formatted with the first validation result's ErrorMessage when the result is not OK.
  • Add ErrorMessage to mlsvalidate.KeyPackageValidationResult in interface.go.
  • Populate KeyPackageValidationResult.ErrorMessage from the gRPC response in mlsvalidate.MLSValidationServiceImpl.ValidateKeyPackages in service.go.

📍Where to Start

Start with message.Service.validateKeyPackage in service.go to see how the error message is bubbled up, then review the struct change in interface.go and the population logic in mlsvalidate.MLSValidationServiceImpl.ValidateKeyPackages in service.go.


Macroscope summarized 52f8d85.

@fbac fbac requested a review from a team as a code owner September 12, 2025 12:01
@graphite-app
Copy link

graphite-app bot commented Sep 12, 2025

How to use the Graphite Merge Queue

Add either label to this PR to merge it via the merge queue:

  • Queue - adds this PR to the back of the merge queue
  • Hotfix - for urgent hot fixes, skip the queue and merge this PR next

You must have a Graphite account in order to use the merge queue. Sign up using this link.

An organization admin has enabled the Graphite Merge Queue in this repository.

Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue.

@fbac fbac merged commit 228f761 into main Sep 12, 2025
10 checks passed
@fbac fbac deleted the 09-12-mls_validate_errors branch September 12, 2025 16:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants