Skip to content

feat: run the pilot wrapper tests with pixi - #8906

Open
fstagni wants to merge 5 commits into
DIRACGrid:rel-v9r0from
fstagni:pilotwrapper-pixi-rel-v9r0
Open

fstagni wants to merge 5 commits into
DIRACGrid:rel-v9r0from
fstagni:pilotwrapper-pixi-rel-v9r0

Conversation

@fstagni

@fstagni fstagni commented Nov 17, 2026

Copy link
Copy Markdown
Contributor

Part of DIRACGrid/.github#5. Port of #8903 (integration) to rel-v9r0.

The run-time conda environments (setup-miniconda, conda create for python 3.6.9/3.11.4) are replaced by the locked pixi environments:

  • a bare-bones py36 environment (no-default-feature, python only — like the previous conda env that deliberately excluded pip; the shared dependencies require python >= 3.9), solving to python 3.6.15 on conda-forge
  • py311 reuses the default environment
  • the exact python versions are pinned by pixi.lock, refreshed to include py36
  • the INVALID_UTF8_VAR test variable is set inside the pixi-spawned shell: pixi panics on non-UTF-8 env vars (env::var().unwrap() on "\xFF")

Stacked on #8905 (pixi check jobs for rel-v9r0), which is stacked on #8892 (zizmor).

The plain $COMMAND expansion word-splits without quote removal, so the
pytest -k 'not test_BaseType_Unicode and not test_nestedStructure'
expression is broken into separate arguments and pytest fails with
'file or directory not found: test_BaseType_Unicode'.
Use eval "$COMMAND" to re-parse the quoting, as already done on the
v8r0 branch.
Quoting "$MATRIX_ARGS" passes the whole space-separated KEY=VALUE list
as a single argument, so integration_tests.py's split('=', 1) puts
e.g. 'mariadb:10.6.3 ES_VER=opensearchproject/opensearch:2.1.0' into
MYSQL_VER and docker compose fails with 'invalid reference format'.
Leave $MATRIX_ARGS unquoted so the shell word-splits it into separate
flags, as the original ${{ matrix.ARGS }} expansion did.
Port of DIRACGrid#8900 to rel-v9r0: the check/check-py314 jobs move from the
conda environment (created at run time from environment.yml via
setup-miniconda, including the sed hack to swap python to 3.14) to
locked pixi environments (py311 default + py314, exclude-newer
enforced). pixi.toml mirrors environment.yml; pixi.lock is committed
(make sure it is not gitignored - it was, which broke the setup-pixi
cache key on integration).

Also ports DIRACGrid#8904: the pre-commit job runs via pre-commit/action and
pushes auto-fixes with pre-commit-ci/lite-action (hook rev updates come
from Renovate's pre-commit manager, DIRACGrid/.github#8). Python stays
pinned to 3.11 there until the 2023-era pinned hooks are updated.

Stacked on DIRACGrid#8892 (zizmor).
Port of DIRACGrid#8903 to rel-v9r0: the run-time conda environments (created with
setup-miniconda for python 3.6.9/3.11.4) are replaced by the locked pixi
environments from pixi.toml. A bare-bones py36 environment
(no-default-feature, python only - like the previous conda env that
excluded pip) is added for the Python 3.6 leg, solving to python
3.6.15 on conda-forge.

The INVALID_UTF8_VAR test variable is set inside the pixi-spawned shell:
pixi panics on non-UTF-8 env vars (env::var().unwrap() on "\xFF").

Stacked on DIRACGrid#8905 (pixi check jobs for rel-v9r0).

This branch has not been deployed

No deployments
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.

1 participant