Skip to content

Refactor: Convert all tests to use multiprocessing queues#382

Merged
markfinal merged 2 commits intomainfrom
mf/check_conan_leakage
Dec 10, 2025
Merged

Refactor: Convert all tests to use multiprocessing queues#382
markfinal merged 2 commits intomainfrom
mf/check_conan_leakage

Conversation

@markfinal
Copy link
Owner

Why is this happening?

cruiz works in a multiprocessing way. And while single process tests are easier to work with to test more of cruiz, such as core functionality of message processing which checks for Conan symbols being brought over, this cannot be done in a single process, because Conan is imported by the workers, so the workers cannot be run in the same process.

Why is this happening?

cruiz works in a multiprocessing way. And while single process tests are easier to work with
to test more of cruiz, such as core functionality of message processing which checks for
Conan symbols being brought over, this cannot be done in a single process, because Conan is
imported by the workers, so the workers cannot be run in the same process.
@markfinal markfinal added this to the v2.0.0 milestone Dec 10, 2025
@markfinal markfinal self-assigned this Dec 10, 2025
@markfinal markfinal added the enhancement New feature or request label Dec 10, 2025
@github-actions
Copy link

github-actions bot commented Dec 10, 2025

Coverage

Coverage Report
FileStmtsMissCoverMissing
src/cruizlib
   __init__.py00100% 
   config.py00100% 
   constants.py160100% 
   dumpobjecttypes.py310100% 
   environ.py150100% 
   globals.py180100% 
   runcommands.py250100% 
src/cruizlib/interop
   __init__.py00100% 
   commandparameters.py2880100% 
   commonparameters.py70100% 
   dependencygraph.py130100% 
   message.py540100% 
   packagebinaryparameters.py80100% 
   packageidparameters.py80100% 
   packagenode.py170100% 
   packagerevisionsparameters.py80100% 
   pod.py500100% 
   reciperevisionsparameters.py80100% 
   searchrecipesparameters.py80100% 
src/cruizlib/workers
   __init__.py00100% 
src/cruizlib/workers/api
   __init__.py50100% 
src/cruizlib/workers/api/common
   __init__.py00100% 
   endmessagethread.py90100% 
src/cruizlib/workers/api/v1
   __init__.py00100% 
   arbitrary.py110100% 
   build.py190100% 
   cmakebuildtool.py290100% 
   conanapi.py780100% 
   configinstall.py260100% 
   create.py230100% 
   deletecmakecache.py150100% 
   exportpackage.py270100% 
   imports.py150100% 
   install.py260100% 
   lockcreate.py760100% 
   meta.py2810100% 
   monkeypatch.py850100% 
   package.py150100% 
   packagebinary.py300100% 
   packagedetails.py190100% 
   packagerevisions.py100100% 
   qtlogger.py200100% 
   reciperevisions.py100100% 
   remotesearch.py330100% 
   removeallpackages.py100100% 
   removelocks.py80100% 
   removepackage.py130100% 
   source.py150100% 
   testpackage.py180100% 
   worker.py250100% 
src/cruizlib/workers/api/v2
   __init__.py00100% 
   arbitrary.py250100% 
   build.py110100% 
   configinstall.py270100% 
   create.py110100% 
   exportpackage.py110100% 
   install.py110100% 
   lockcreate.py630100% 
   meta.py1220100% 
   packagebinary.py230100% 
   packagedetails.py260100% 
   packagerevisions.py290100% 
   reciperevisions.py280100% 
   remotesearch.py190100% 
   removeallpackages.py130100% 
   removepackage.py140100% 
   source.py200100% 
   testpackage.py110100% 
   worker.py310100% 
src/cruizlib/workers/utils
   __init__.py00100% 
   colorarma_conversion.py440100% 
   env.py230100% 
   formatoptions.py110100% 
   stream.py160100% 
   text2html.py210100% 
   worker.py520100% 
TOTAL21870100% 

I think this was no longer covered, because now all the tests run in multiprocess mode
there's nothing in the test process that is adding the local cache environment variables.
@markfinal markfinal merged commit 73e80c7 into main Dec 10, 2025
32 checks passed
@markfinal markfinal deleted the mf/check_conan_leakage branch December 10, 2025 22:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant