Skip to content

chore: Simplify SEMBLE_MAX_FILE_BYTES handling and CLI logging setup - #271

Open
Pringled wants to merge 2 commits into
mainfrom
refactor/simplify-max-file-bytes
Open

Pringled wants to merge 2 commits into
mainfrom
refactor/simplify-max-file-bytes

Conversation

@Pringled

@Pringled Pringled commented Sep 18, 2026

Copy link
Copy Markdown
Member

This PR simplifies the SEMBLE_MAX_FILE_BYTES logic, which is a bit overengineered. It now follows the same logic as SEMBLE_CLONE_TIMEOUT where it just crashes if a value is set that's not supported. There was also a bug where it was being re-read and re-validated for every file that's now gone.

I also replaced the custom CLI log handler with a single logging.basicConfig. This gives the exact same outputs while being much simpler to maintain.

@codecov

codecov Bot commented Sep 18, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

Files with missing lines Coverage Δ
src/semble/cli.py 100.00% <100.00%> (ø)
src/semble/index/create.py 100.00% <ø> (ø)
src/semble/index/files.py 100.00% <100.00%> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@greptile-apps

greptile-apps Bot commented Sep 18, 2026

Copy link
Copy Markdown

RetriggerConfidence Score: 5/5

The PR appears safe to merge, with no outstanding actionable findings.

Reviews (2) · Last reviewed commit: "Merge branch 'main' into refactor/simpli..."

Comment thread src/semble/index/files.py
@Pringled
Pringled requested a review from stephantul September 18, 2026 06:40

This branch has not been deployed

No deployments
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.

1 participant