-
Notifications
You must be signed in to change notification settings - Fork 712
Open
Labels
component/pydevlakeRelates to the Python framework and/or plugin.Relates to the Python framework and/or plugin.priority/highThis issue is very importantThis issue is very importantseverity/p1This bug affects functionality or significantly affect uxThis bug affects functionality or significantly affect uxtype/bugThis issue is a bugThis issue is a bug
Description
Search before asking
- I had searched in the issues and found no similar issues.
What happened
bufio.Scanner uses a 64KB default max token size. Python plugins that manage
large numbers of scopes (e.g. 100+ Harness pipelines) return a sync plan JSON
that exceeds this limit, causing silent truncation. This results in only a
subset of scopes appearing in project_mapping and being synced.
Increase the buffer to 5MB in both scanOutputPipe and scanErrorPipe
eg of what to change: scanner.Buffer(make([]byte, 510241024), 510241024)
What do you expect to happen
increase scanner buffer from 64KB to 5MB for Python plugin IPC
bufio.Scanner uses a 64KB default max token size. Python plugins that manage
large numbers of scopes (e.g. 100+ Harness pipelines) return a sync plan JSON
that exceeds this limit, causing silent truncation. This results in only a
subset of scopes appearing in project_mapping and being synced.
Increase the buffer to 5MB in both scanOutputPipe and scanErrorPipe
eg of what to change: scanner.Buffer(make([]byte, 510241024), 510241024)
How to reproduce
try syncing more than 100 pipelines via custom plugin
Anything else
No response
Version
v1.0.3-beta10
Are you willing to submit PR?
- Yes I am willing to submit a PR!
Code of Conduct
- I agree to follow this project's Code of Conduct
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
component/pydevlakeRelates to the Python framework and/or plugin.Relates to the Python framework and/or plugin.priority/highThis issue is very importantThis issue is very importantseverity/p1This bug affects functionality or significantly affect uxThis bug affects functionality or significantly affect uxtype/bugThis issue is a bugThis issue is a bug