Skip to content

fix: Set file max-target-bytes to 150Kb TAROT-3746 - #25

Merged
lolgab merged 1 commit into
mainfrom
set-bytes-limit
Jun 29, 2026
Merged

lolgab merged 1 commit into
mainfrom
set-bytes-limit

Conversation

@lolgab

@lolgab lolgab commented Jun 29, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@lolgab lolgab changed the title fix: Set file max-target-bytes to 150Kb fix: Set file max-target-bytes to 150Kb TAROT-3746 Jun 29, 2026

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates the --max-target-bytes parameter value from "0" to "150000" in the test file internal/tool/command_test.go. However, the reviewer noted that this change causes TestCreateCommandParameters to fail because the actual implementation in internal/tool/command.go still uses "0" and needs to be updated to match the test.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

"--timeout", "10",
"--timeout-threshold", "5",
"--max-target-bytes", "0",
"--max-target-bytes", "150000",

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

high

Updating the test expectation to "150000" without updating the actual implementation in internal/tool/command.go (which still uses "0" on line 86) causes TestCreateCommandParameters to fail. The implementation in internal/tool/command.go needs to be updated to "150000" to match this test and complete the fix.

@codacy-production

Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

AI Reviewer: first review requested successfully. AI can make mistakes. Always validate suggestions.

Run reviewer

TIP This summary will be updated as you push new changes.

@codacy-production codacy-production Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This Pull Request is incomplete as it only modifies the test suite (internal/tool/command_test.go) and fails to implement the required --max-target-bytes flag in the production code logic. While the existing test changes indicate an intent to set a 150,000-byte limit, the scanner's behavior remains unchanged. Additionally, the chosen limit of 150 KB is relatively small for many source code projects and may lead to unintentional skipping of files; this threshold and the use of decimal (KB) versus binary (KiB) units should be verified against the requirements for TAROT-3746.

About this PR

  • The production code changes are missing. This PR only updates internal/tool/command_test.go, meaning the --max-target-bytes flag is not actually implemented in the command execution logic.
  • Please provide a description for the PR to explain the context of the changes and confirm if this is a partial submission.

Test suggestions

  • Verify that createCommandParameters includes the --max-target-bytes flag with the value 150000 in the returned parameter list.

TIP Improve review quality by adding custom instructions
TIP How was this review? Give us feedback

@lolgab
lolgab force-pushed the set-bytes-limit branch from 39fafd3 to 21c31fc Compare June 29, 2026 14:42
@lolgab
lolgab merged commit 1cd6181 into main Jun 29, 2026
7 checks passed
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.

2 participants