Add parametrized package manager roundtrip integration test - #1687
Open
edvilme wants to merge 1 commit into
Open
Add parametrized package manager roundtrip integration test#1687edvilme wants to merge 1 commit into
edvilme wants to merge 1 commit into
Conversation
Adds a single public-API-driven integration test that exercises an install/list/direct-deps/uninstall roundtrip for every discovered package manager. Parametrized over environments grouped by managerId so future managers are covered automatically with no per-manager code. Available versions is omitted because it is not on the exported PythonEnvironmentApi. Co-authored-by: Copilot <[email protected]> Copilot-Session: 3f16397e-0917-4efb-8d75-566c71ebf9ba
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a parametrized integration test that verifies every discovered package manager performs a full package lifecycle correctly, using only the public extension API.
Roundtrip (per manager, all via the public API)
getPackages— baseline (test package absent)managePackages({ install })— install the test packagerefreshPackages+getPackages— test package now presentPackage.isTransitivemanagePackages({ uninstall })— uninstallgetPackages— test package absent againDesign
PythonEnvironmentApi.envId.managerId(one representative per manager, preferring venv-like/modifiable envs), so any future package manager is exercised automatically with no per-manager code.finallycleanup guarantees the environment is never left dirty.Known limitation
getPackageAvailableVersions(andgetDirectPackageNames) live only on the internalPackageManagerinterface and are not surfaced on the exportedPythonEnvironmentApi, so they are unreachable from a public-API-only test. Direct (non-transitive) packages are still covered becausePackage.isTransitiveis public.Testing
npm run compile-testsnpm run lint(new file clean)npm run integration-test(CI).