rohitgulia opened a new pull request, #8841:
URL: https://github.com/apache/incubator-devlake/pull/8841
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
### ⚠️ Pre Checklist
> Please complete _ALL_ items in this checklist, and remove before submitting
- [x] I have read through the [Contributing
Documentation](https://devlake.apache.org/community/).
- [x] I have added relevant tests.
- [x] I have added relevant documentation.
- [x] I will add labels to the PR, such as `pr-type/bug-fix`,
`pr-type/feature-development`, etc.
### Summary
This PR increases the scanner buffer size from the default 64KB to 5MB in
the IPC process utility (`backend/core/utils/ipc.go`). This fixes an issue
where large outputs from subprocesses would be truncated when exceeding the
64KB buffer limit.
**Changes:**
- Updated `scanOutputPipe()` function to set buffer size to 5MB
- Updated `scanErrorPipe()` function to set buffer size to 5MB
This allows DevLake to properly handle large outputs from subprocess calls,
particularly important for plugins that process large data payloads.
### Does this close any open issues?
N/A (Please reference if applicable)
### Screenshots
N/A
### Other Information
- **Type:** Bug Fix (`pr-type/bug-fix`)
- **Impact:** Fixes subprocess output truncation for large outputs
- **Testing:** Existing unit tests pass; buffer size increase is backward
compatible with existing code
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]