Skip to content

[rel-v5r0] feat: run the pylint job with pixi - #822

Merged
aldbr merged 5 commits into
DIRACGrid:rel-v5r0from
fstagni:pixi-lint-rel-v5r0
Nov 16, 2026
Merged

aldbr merged 5 commits into
DIRACGrid:rel-v5r0from
fstagni:pixi-lint-rel-v5r0

Conversation

@fstagni

@fstagni fstagni commented Nov 16, 2026

Copy link
Copy Markdown
Contributor

Part of DIRACGrid/.github#5 (adopt pixi everywhere), stacked on #821.

The pyLint job of codestyle.yml drops micromamba + DIRAC's environment.yml in favor of a locked pixi environment:

  • new pixi.toml: the dependency set mirrors DIRAC rel-v8r0's environment.yml (conda packages from the diracgrid + conda-forge channels, plus the pip-only pieces: the DIRACGrid tornado forks and Authlib) with pylint on top. Channels and constraints are kept identical, so the lint environment matches what the micromamba job provided.
  • pixi.lock is committed: the environment is reproducible, and Renovate (via the org preset) becomes the only path for dependency changes, with the 7-day release-age cooldown enforced on the lock.
  • the job installs DIRAC editable (--no-deps, pinned to rel-v8r0 via the git source in pixi.toml): its dependencies come from the pixi environment, so no PyPI sdist builds are needed. The .DIRAC source copy step is dropped — import DIRAC resolves from the installed package.
  • .gitignore: local pixi/DIRAC checkouts are ignored.

Verified locally: pixi run pylint -E src/WebAppDIRAC exits 0 on this branch.

@fstagni fstagni changed the title feat: run the pylint job with pixi [rel-v5r0] feat: run the pylint job with pixi Nov 16, 2026
Align the pattern with DIRACGrid/DIRAC's semantic.yml, which accepts
chore: commits.
@fstagni
fstagni marked this pull request as ready for review November 16, 2026 15:30
- .gitignore: anchor DIRAC/, .DIRAC/ and .pixi/ to the repository root;
  the unanchored DIRAC/ also ignored the tracked
  src/WebAppDIRAC/WebApp/static/DIRAC/ tree (new apps were silently
  left out of commits).
- deployment: give workflow_dispatch releases their own concurrency
  group. With a shared group, a later push/PR run replaced a queued
  release (GitHub keeps only one pending run per group).
- codestyle: only cancel in-progress runs for pull requests, so every
  commit pushed to a protected branch gets a CI result.
- codestyle: install DIRAC with --no-build-isolation; the build backend
  (setuptools, setuptools-scm, wheel) now comes from pixi.lock instead of
  unpinned PyPI downloads outside the cooldown. Re-enable the setup-pixi
  cache keyed on pixi.lock.
- pixi.toml: matplotlib -> matplotlib-base, so the conda tornado is no
  longer installed under the tornado fork from PyPI (also drops Qt);
  refresh the header comment (editable install, not a copy).

Assisted-by: Claude:claude-opus-5-5
@aldbr
aldbr merged commit f8671c1 into DIRACGrid:rel-v5r0 Nov 16, 2026
5 checks passed
aldbr pushed a commit that referenced this pull request Nov 16, 2026
Port of #822 to the integration branch: the pyLint job drops
setup-micromamba + DIRAC's environment.yml in favor of a locked pixi
environment (pixi.toml mirrors DIRAC integration's environment.yml;
exclude-newer enforces the 7-day release-age cooldown at solve time).
DIRAC@integration is installed editable with --no-deps so that
import DIRAC resolves for pylint.
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.

2 participants