Skip to content

Use subprocess and bump benchmark time - #104

Merged
alessandrofelder merged 4 commits into
mainfrom
use-subprocess
Aug 28, 2026
Merged

alessandrofelder merged 4 commits into
mainfrom
use-subprocess

Conversation

@IgorTatarnikov

Copy link
Copy Markdown
Member

Before submitting a pull request (PR), please read the contributing guide.

Please fill out as much of this template as you can, but if you have any problems or questions, just leave a comment and we will help out :)

Description

What is this PR

  • Bug fix
  • Addition of a new feature
  • Other

Why is this PR needed?
d158de1 changed the package fetching strategy to loop over importlib.distribution structure. This allowed venv without pip to check the instlalled packages but made the boot time slower. This returns the package fetching strategy to use uv and pip in that order. It also temporarily boosts the benchmark time to 0.1 rather than 0.05.

References

Closes #103
#101

Please reference any existing issues/PRs that relate to this PR.

How has this PR been tested?

Tested locally, added new tests.

Is this a breaking change?

No

Does this PR require an update to the documentation?

No

Checklist:

  • The code has been tested locally
  • Tests have been added to cover all new functionality
  • The code has been formatted with pre-commit

IgorTatarnikov and others added 3 commits August 19, 2026 16:02
`test_correct_pkg_version_logged` patched `shutil.which` to None to
force the library down its pip branch, then ran `python -m pip list`
itself with `check=True`. On CI the reusable action installs tox-uv,
so tox builds its environments with `uv venv`, which does not install
pip -- the test's own pip call exited 1 and the library logged
"Could not find conda, pip or uv packages".

Drop the patch and pick the backend the same way the library does
(conda, then uv, then pip), so the test compares the log against
whatever actually ran. The individual branches remain covered in
isolation by the mocked tests.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@codecov

codecov Bot commented Aug 25, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 83.87097% with 5 lines in your changes missing coverage. Please review.
✅ Project coverage is 78.12%. Comparing base (19dfebd) to head (6cab2e8).
⚠️ Report is 8 commits behind head on main.

Files with missing lines Patch % Lines
fancylog/fancylog.py 83.87% 5 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #104      +/-   ##
==========================================
+ Coverage   77.40%   78.12%   +0.72%     
==========================================
  Files           3        3              
  Lines         208      224      +16     
==========================================
+ Hits          161      175      +14     
- Misses         47       49       +2     

☔ 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.

@IgorTatarnikov
IgorTatarnikov requested review from adamltyson and alessandrofelder and removed request for alessandrofelder August 25, 2026 14:16
@alessandrofelder
alessandrofelder merged commit 49e98e1 into main Aug 28, 2026
21 checks passed
@alessandrofelder
alessandrofelder deleted the use-subprocess branch August 28, 2026 09:20
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.

pip is not found during CI tests

2 participants