Skip to content

feat: run the check jobs with pixi - #8907

Open
fstagni wants to merge 5 commits into
DIRACGrid:rel-v8r0from
fstagni:pixi-ci-rel-v8r0
Open

fstagni wants to merge 5 commits into
DIRACGrid:rel-v8r0from
fstagni:pixi-ci-rel-v8r0

Conversation

@fstagni

@fstagni fstagni commented Nov 17, 2026

Copy link
Copy Markdown
Contributor

Part of DIRACGrid/.github#5. Port of #8900 (integration) and #8904 to rel-v8r0.

  • check/check-py314 move from the run-time conda environment (setup-miniconda + environment.yml, including the sed hack to swap python to 3.14) to locked pixi environments: py311 (default) + py314, with exclude-newer = "7d" enforcing the release-age cooldown. pixi.toml mirrors environment.yml (v8 flavor: no pydantic, mysqlclient unpinned, Authlib >=1.0.0a2, no dirac-common); pixi.lock is committed.
  • ports ci: run pre-commit via pre-commit/action and lite-action #8904: the pre-commit job runs via pre-commit/action with auto-fixes from pre-commit-ci/lite-action; rev updates come from Renovate's pre-commit manager (chore: enable Renovate's pre-commit manager in the shared preset .github#8). Python stays pinned to 3.11 until the 2023-era pinned hooks (black 23.1.0, flynt 0.77, pyupgrade v3.3.1) are updated.
  • pixi.lock removed from .gitignore (it was ignored, which broke the setup-pixi cache key on integration — see feat: run the check jobs with pixi #8900).

Stacked on #8893 (zizmor), which should be merged first.

Running the matrix command via an unquoted $COMMAND env var loses the
shell quoting of e.g. -k 'not test_BaseType_Unicode and not
test_nestedStructure': pytest receives the quote characters literally
and treats test_BaseType_Unicode as a missing file path, exiting with
code 4. Use eval "$COMMAND" to re-parse the quoting, keeping the
zizmor template-injection fix intact.
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.
The pylint-py27 job was already removed upstream (DIRACGrid#8895); take that
removal to resolve the conflict with the zizmor changes.
Port of DIRACGrid#8900 to rel-v8r0: 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 (no pydantic, mysqlclient
unpinned, Authlib >=1.0.0a2 - rel-v8r0 has no dirac-common). pixi.lock
is committed (removed from .gitignore, which broke the setup-pixi cache
key on integration - see DIRACGrid#8900).

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#8893 (zizmor).

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