Skip to content

Fix rimport empty warning order - #34

Merged
samsrabin merged 4 commits into
ESMCI:mainfrom
samsrabin:fix-rimport-empty-warning-order
Sep 22, 2026
Merged

samsrabin merged 4 commits into
ESMCI:mainfrom
samsrabin:fix-rimport-empty-warning-order

Conversation

@samsrabin

Copy link
Copy Markdown
Collaborator

Resolves #33.

samsrabin and others added 4 commits September 22, 2026 12:57
Fails today: the "no files found" warning is logged inside the walk
loop, so it prints above the expansion count, while the skip warning
from the same function prints below it.

Pins the whole order below the count -- count, then empties, then
skips -- and the indent that marks both warnings as subordinate to
the count.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
expand_directories() collects the empty directories during the walk
and reports them where the skip warnings are already reported, after
the count. Both warnings now sit below the count and are indented
under it; the emptiness warning's text is otherwise unchanged.

Presentation only. Entries, skips, counts and exit codes are
untouched.

Verified: full pytest suite green, and the reproduction from the
issue report run by hand.

Resolves ESMCI#33.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
The ordering test's docstring said both warnings below the count are
indented, but only the emptiness half was asserted; dropping INDENT
from the skip warning left the suite green.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
The count line and the skips were already pinned against a directory
named twice; the emptiness warning was not, and both existing
duplicate tests use a non-empty directory, so removing the dedup left
it uncaught.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@samsrabin
samsrabin merged commit ac52477 into ESMCI:main Sep 22, 2026
4 checks passed
@codecov-commenter

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 99.32%. Comparing base (d1d8992) to head (3ae1f9c).
⚠️ Report is 6 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #34   +/-   ##
=======================================
  Coverage   99.31%   99.32%           
=======================================
  Files          31       31           
  Lines        4243     4270   +27     
=======================================
+ Hits         4214     4241   +27     
  Misses         29       29           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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.

"no files found" warning prints above the expansion count, unlike every other warning

2 participants