Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

chore: apply the 4mb max limit on drpc protocol message size#17771

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
Emyrk merged 4 commits intomainfromstevenmasley/increase_proto_limit
May 13, 2025

Conversation

Emyrk
Copy link
Member

@EmyrkEmyrk commentedMay 12, 2025
edited
Loading

Respect the 4mb max limit on proto messages

@EmyrkGraphite App
Copy link
MemberAuthor

Emyrk commentedMay 12, 2025
edited
Loading

@EmyrkEmyrk changed the titlechore: adjustable drpc protocol message size limitchore: adjust drpc protocol message size limitMay 12, 2025
@EmyrkEmyrkforce-pushed thestevenmasley/increase_proto_limit branch 2 times, most recently from14f3977 to168fe3dCompareMay 12, 2025 15:20
@EmyrkEmyrk marked this pull request as ready for reviewMay 12, 2025 15:20
@EmyrkEmyrk requested a review fromspikecurtisMay 12, 2025 15:26
@EmyrkEmyrk changed the base branch fromstevenmasley/larger_proto_limit tographite-base/17771May 12, 2025 15:31
@EmyrkEmyrkforce-pushed thestevenmasley/increase_proto_limit branch from168fe3d to9ba91b6CompareMay 12, 2025 15:31
@EmyrkEmyrkforce-pushed thegraphite-base/17771 branch from98815ee to3783241CompareMay 12, 2025 15:31
@graphite-appgraphite-appbot changed the base branch fromgraphite-base/17771 tomainMay 12, 2025 15:32
@EmyrkEmyrkforce-pushed thestevenmasley/increase_proto_limit branch from9ba91b6 to073beddCompareMay 12, 2025 15:32
@EmyrkEmyrkforce-pushed thestevenmasley/increase_proto_limit branch from073bedd toc041459CompareMay 12, 2025 15:58
@spikecurtisGraphite App
Copy link
Contributor

I'm not sure I follow the logic. Aren't modules fetched dynamically at import time, which happensafter the (up to) 10MB upload? There are no constraints on how big the modules could be during the import build which downloads them from a registry.

@Emyrk
Copy link
MemberAuthor

Emyrk commentedMay 12, 2025
edited
Loading

I'm not sure I follow the logic. Aren't modules fetched dynamically at import time, which happensafter the (up to) 10MB upload? There are no constraints on how big the modules could be during the import build which downloads them from a registry.

You are right, modules will have to have a different solution.

I thought a 10mb file could be uploaded as a template version, which would fail at the protobuf layer. Ourcli prevents this though, at a 1mb limit. So I will remove the bump to 10mb.

We should still keep the config setting, as we check against 4mb limits here:

ifprotobuf.Size(protoJob)>drpcsdk.MaxMessageSize {
returnnil,failJob(fmt.Sprintf("payload was too big: %d > %d",protobuf.Size(protoJob),drpcsdk.MaxMessageSize))
}

Edit: Reverted to 4mb, but still want the constant to set the settings

@EmyrkEmyrk changed the titlechore: adjust drpc protocol message size limitchore: respect drpc protocol message size limit constantMay 12, 2025
@EmyrkEmyrk changed the titlechore: respect drpc protocol message size limit constantchore: apply the 4mb max limit on drpc protocol message sizeMay 12, 2025
Co-authored-by: Spike Curtis <spike@coder.com>
@EmyrkEmyrk merged commit64807e1 intomainMay 13, 2025
35 checks passed
@EmyrkEmyrk deleted the stevenmasley/increase_proto_limit branchMay 13, 2025 16:24
@github-actionsgithub-actionsbot locked and limited conversation to collaboratorsMay 13, 2025
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.
Reviewers

@spikecurtisspikecurtisspikecurtis approved these changes

Assignees

@EmyrkEmyrk

Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@Emyrk@spikecurtis

[8]ページ先頭

©2009-2025 Movatter.jp