Skip to content

fix: enforce max_files limit across subdirectory recursion#10189

Merged
mscolnick merged 1 commit into
mainfrom
ms/sofia-v1
Jul 16, 2026
Merged

fix: enforce max_files limit across subdirectory recursion#10189
mscolnick merged 1 commit into
mainfrom
ms/sofia-v1

Conversation

@mscolnick

Copy link
Copy Markdown
Contributor

The max_files check only fired inside the file-add branch, so when a
subdirectory's recursion reached the limit, one more top-level file was
appended before the check ran, yielding max_files + 1 leaves. Moved the
check to the top of the loop iteration.

Adds a deterministic regression test that forces the scandir ordering
which previously only flaked intermittently in CI.

Fixes MO-6726.

The max_files check only fired inside the file-add branch, so when a
subdirectory's recursion reached the limit, one more top-level file was
appended before the check ran, yielding max_files + 1 leaves. Moved the
check to the top of the loop iteration.

Adds a deterministic regression test that forces the scandir ordering
which previously only flaked intermittently in CI.

Fixes MO-6726.
Copilot AI review requested due to automatic review settings July 15, 2026 18:35
@vercel

vercel Bot commented Jul 15, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
marimo-docs Ready Ready Preview, Comment Jul 15, 2026 6:36pm

Request Review

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

No issues found across 2 files

Re-trigger cubic

@mscolnick mscolnick added the internal A refactor or improvement that is not user facing label Jul 16, 2026
@mscolnick
mscolnick merged commit 961e89c into main Jul 16, 2026
43 of 45 checks passed
@mscolnick
mscolnick deleted the ms/sofia-v1 branch July 16, 2026 16:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

internal A refactor or improvement that is not user facing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants