Repository navigation
Migrate CI to Pixi - #12389
Migrate CI to Pixi#12389
Conversation
Unit Test ResultsSee test report for an extended history of previous test failures. This is useful for diagnosing flaky tests. 19 files 19 suites 5h 26m 34s ⏱️ Results for commit ee8aa93. ♻️ This comment has been updated with latest results. |
da286d2 to
b9fa9bc
Compare
ccdd38f to
f5524ad
Compare
| - name: Setup Java | ||
| uses: actions/setup-java@v5 | ||
| if: ${{ matrix.os == 'ubuntu-latest' }} | ||
| - uses: prefix-dev/setup-pixi@v0 | ||
| with: | ||
| distribution: "zulu" | ||
| java-version: "11" |
There was a problem hiding this comment.
Removed pyspark. All its tests were skipped. I'm going to re-add it and unskip some tests in a follow-up.
| PARALLEL: "true" | ||
| COVERAGE: "true" | ||
| ARRAYEXPR: ${{ matrix.array-expr }} | ||
| HDF5_USE_FILE_LOCKING: "FALSE" |
There was a problem hiding this comment.
Removed this flag. I can't observe any difference in h5py tests.
There was a problem hiding this comment.
Read continuous_integration/pixi-recipes/README.md below
| >>> z = blockwise(sequence_dot, '', a, 'i', b, 'i', dtype='f8') | ||
| >>> z.compute() | ||
| 250 | ||
| np.int64(250) |
There was a problem hiding this comment.
Left is correct with NumPy 1.x. Right is correct with NumPy >=2.0.
I cannot understand how the tests could be green in CI before (they were running with numpy 2.4).
| # remove 0-sized chunks | ||
| new_chunks = new_chunks[new_chunks > 0] | ||
| return tuple(new_chunks) | ||
| return tuple(new_chunks.tolist()) |
There was a problem hiding this comment.
return tuple[int, ...] instead of tuple[np.int64, ...]
| not os.environ.get("UPSTREAM_DEV"), | ||
| reason="Only check for dev packages in `upstream` CI build", | ||
| ) | ||
| def test_upstream_packages_installed(): |
There was a problem hiding this comment.
This test made sense considering how brittle the previous CI workflow was. It doesn't anymore.
| conda create -n daskdocs -c conda-forge python=3.14 | ||
| conda activate daskdocs |
There was a problem hiding this comment.
This should be migrated to pixi in a follow-up.
| # DNM | ||
| # distributed = { git = "https://github.com/dask/distributed" } | ||
| distributed = { git = "https://github.com/crusaderky/distributed", rev = "pixi" } |
There was a problem hiding this comment.
DNM
This points to dask/distributed#9264
|
@dask/maintenance this is ready for review! |
|
This is very cool @crusaderky! Please let us know when you hit roadblocks on your journey to moving to Pixi! |
Replace conda environments with pixi.
This PR:
upstreamworkflows, which retain the old behaviour by designFunctional changes
The Tests workflow is still triggered on schedule in order to detect test flakiness, but is no longer affected by upstream changes.
Removed the
pandas-nightlyworkflow. Instead, the Upstream workflow now runs on all PRs.The Upstream workflow now has a matrix with two runs:
Upstream / py314differs fromTests / py314as Tests uses the lockfile, meaning dependency versions don't change on their own, whereas Upstream throws out the lockfile, getting all latest and greatest packages as soon as they are released. In other words,Upstream / py314replicates the behaviour of the oldTestsworkflow.Repaired the
Conda buildworkflow, which has been broken for some time. NowConda buildruns on all PRs (takes under 3 minutes).Tweaked the triggers of some CI jobs for sanity
Quirks
np.generic.__repr__, so e.g. sum(arr) now printsnp.int64(123)instead of just123. Those doctests started failing, as they should. I have no clue why they don't fail in the old CI.Follow-ups
pixi.tomltodask/partdanddask/zict(short of a full migration to pixi) and reintroduce their git tips to thenightlyenvironment. This is low priority as these packages barely see any movement nowadays.Known issues
pixi.lockchanges. For clarity, this is an issue shared by all package managers for all languages which use a lock file.