Skip to content
This repository was archived by the owner on Sep 30, 2024. It is now read-only.

gitserver: Clean up some errors from improper API usage#62787

Merged
eseliger merged 1 commit into
mainfrom
es/05-19-gitservercleanupsomeerrorsfromimproperapiusage
May 21, 2024
Merged

gitserver: Clean up some errors from improper API usage#62787
eseliger merged 1 commit into
mainfrom
es/05-19-gitservercleanupsomeerrorsfromimproperapiusage

Conversation

@eseliger

Copy link
Copy Markdown
Member

Unfortunately, some callers seem to be passing non-20-byte OIDs through api.CommitID fields.
We should ultimately clean that up, but in the meantime this should help make the error messages clearer and reduce noise from strange error messages.

Test plan:

Added tests to cover for the cases where this can happen.

@cla-bot cla-bot Bot added the cla-signed label May 19, 2024

Copy link
Copy Markdown
Member Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @eseliger and the rest of your teammates on Graphite Graphite

@github-actions github-actions Bot added team/product-platform team/source Tickets under the purview of Source - the one Source to graph it all labels May 19, 2024
@eseliger eseliger marked this pull request as ready for review May 21, 2024 13:18
@eseliger eseliger requested a review from a team May 21, 2024 13:18
@eseliger eseliger force-pushed the es/05-19-gitservercleanupsomeerrorsfromimproperapiusage branch from 6a22336 to 3ae037e Compare May 21, 2024 15:14
Unfortunately, some callers seem to be passing non-20-byte OIDs through api.CommitID fields.
We should ultimately clean that up, but in the meantime this should help make the error messages clearer and reduce noise from strange error messages.

Test plan:

Added tests to cover for the cases where this can happen.
@eseliger eseliger force-pushed the es/05-19-gitservercleanupsomeerrorsfromimproperapiusage branch from 3ae037e to 38327fc Compare May 21, 2024 17:35
@eseliger eseliger merged commit 53519f2 into main May 21, 2024
@eseliger eseliger deleted the es/05-19-gitservercleanupsomeerrorsfromimproperapiusage branch May 21, 2024 18:05

Copy link
Copy Markdown
Member Author

Merge activity

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

cla-signed team/product-platform team/source Tickets under the purview of Source - the one Source to graph it all

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants