Conda env tests

From JetBrains/intellij-community · View interactive version

Conda env tests is an AI agent skill from the GitHub repository JetBrains/intellij-community. Bump the Miniconda version of the Python conda env tests.

How to use this skill

Skill file

Conda env tests

Where the pin lives

One file holds every conda pin:

community/python/python-test-env/common/src/com/intellij/python/test/env/common/PredefinedPyEnvironments.kt

CONDA is the default. @PyEnvTestCaseWithConda and LocalCondaRule use it. A bump moves CONDA

only. No test uses CONDA_24 or CONDA_25.

The provider builds the download URL from the pin. It verifies no checksum, and it accepts the

terms of service of the Anaconda channels:

community/python/python-test-env/conda/src/com/intellij/python/test/env/conda/CondaPyEnvironmentProvider.kt

ShortenPathTest holds the literal Miniconda3-py312_24.9.2-0-MacOSX-arm64 as sample text. Do not

change it.

The version token

A pin is the installer version token, not a plain conda version. The shape is

py<python>_<conda>-<build>, for example py312_26.7.1-1.

The provider expands the token into one of these names:

How to pick a new pin

  1. Open https://repo.anaconda.com/miniconda/.
  2. Take the highest version. Do not use Miniconda3-latest-*. The cache key holds the token, so a

floating name breaks reproducibility.

  1. Check that each name above exists for that token. Anaconda drops a platform from time to time.
  2. Keep the py<python> prefix of the entry unless you have a reason to change it. The prefix only

sets the Python of the base install. Each test environment gets its own Python from the spec.

The download cache

The tests cache in ~/.cache/intellij-python-test-env/:

A bump downloads the installer again. It leaves the old installer and the old directory on disk.

Delete them by hand when you need the space.

Tests to run

The tests need the network.

| Module | Class |

| --- | --- |

| intellij.python.test.env.junit5 | com.intellij.python.test.env.junit5.conda.showcase.PyEnvWithCondaShowCaseTest |

| intellij.python.community.impl.conda.tests | com.intellij.python.junit5Tests.env.tests.conda.CondaSdkCreatorTest |

Not this skill

community/python/python-sdk/backend/resources/sdks.json lists the Miniconda builds that the

product offers to a user. The run configuration PyCharm Update Sdks generates it. The provider

does not read it.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.