• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

Ouranosinc / xclim / 11804157644
92%

Build:
DEFAULT BRANCH: main
Ran 12 Nov 2024 07:23PM UTC
Jobs 8
Files 73
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

12 Nov 2024 07:16PM UTC coverage: 89.398%. Remained the same
11804157644

push

github

web-flow
Fix wrong unpickling with dask 2024.11 (#1993)

### What kind of change does this PR introduce?
The issue introduced with dask 2024.11 concerned the passing of
arguments through the dask graph. Most SDBA classes are children of
`Parametrizable`, itself a child of `dict`. When stored in the graph,
objects like this are pickled. and then repickled when the function is
actually executed.

For some reason, the repickling stopped working and objects where
reinstated as dictionaries instead of their subclasses. This
particularly touched the `Grouper`, one of the only such objects
actually been passed through dask-backed computations.

Inheriting from `dict` was once not recommended but I think this is not
the case anymore. Anyway, I found that inheriting from
`collections.UserDict` actually solved the issue (after adapting the
internals). Not sure if I should raise the issue back to dask...

### Does this PR introduce a breaking change?
I changed how all classes of `xclim.sdba` are made, but in theory the
change is at a low, private level.

8 of 8 new or added lines in 1 file covered. (100.0%)

9377 of 10489 relevant lines covered (89.4%)

7.55 hits per line

Jobs
ID Job ID Ran Files Coverage
1 run-3.10-windows-latest-py310-coverage-prefetch - 11804157644.1 12 Nov 2024 07:29PM UTC 73
81.52
GitHub Action Run
2 run-{{ matrix.python-version }}-conda - 11804157644.2 12 Nov 2024 07:29PM UTC 73
87.19
GitHub Action Run
3 run-3.10-ubuntu-latest-standard - 11804157644.3 12 Nov 2024 07:29PM UTC 73
81.69
GitHub Action Run
4 run-3.11-ubuntu-latest-py311-coverage-sbck-offline-prefetch - 11804157644.4 12 Nov 2024 07:29PM UTC 73
83.56
GitHub Action Run
5 run-3.11-macos-latest-py311-coverage-extras - 11804157644.5 12 Nov 2024 07:29PM UTC 73
87.15
GitHub Action Run
6 run-3.12-ubuntu-latest-standard - 11804157644.6 12 Nov 2024 07:29PM UTC 73
81.71
GitHub Action Run
7 11804157644.7 12 Nov 2024 07:29PM UTC 73
81.69
GitHub Action Run
8 run-3.11-ubuntu-latest-standard - 11804157644.8 12 Nov 2024 07:29PM UTC 73
83.59
GitHub Action Run
Source Files on build 11804157644
  • Tree
  • List 73
  • Changed 9
  • Source Changed 0
  • Coverage Changed 9
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 445aefb2 on github
  • Prev Build on main (#11803122903)
  • Next Build on main (#11862053582)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc