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

Ouranosinc / xclim / 18499870221
92%

Build:
DEFAULT BRANCH: main
Ran 14 Oct 2025 02:30PM UTC
Jobs 8
Files 61
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

14 Oct 2025 02:26PM UTC coverage: 92.119% (-0.001%) from 92.12%
18499870221

push

github

web-flow
Fix history handling (#2251)

<!--Please ensure the PR fulfills the following requirements! -->
<!-- If this is your first PR, make sure to add your details to the
AUTHORS.rst! -->
### Pull Request Checklist:
- [x] This PR addresses an already opened issue (for bug fixes /
features)
    - This PR fixes #2240 
- [x] Tests for the changes have been added (for bug fixes / features)
- [ ] (If applicable) Documentation has been added / updated (for bug
fixes / features)
- [x] CHANGELOG.rst has been updated (with summary of main changes)
- [x] Link to issue (:issue:`number`) and pull request (:pull:`number`)
has been added

### What kind of change does this PR introduce?

* When `as_dataset=True` is activated, "history" is not added on the
dataarray. Adding an history to a variable is not CF-compliant. We are
doing it because we wouldn't have this information otherwise. But when
in dataset mode, there's no need to do it (it is already added to the
dataset).
* The `update_history` function was adding the new history at the end of
the string. It should be at the top. The CF convention says "append",
the netCDF user guide says "append", but I'm pretty sure that's loose
language as all nc utilities I've encountered (`ncks` and the like)
update the history by _prepending_.

### Does this PR introduce a breaking change?
As in most cases, this is a gray area.

### Other information:

3 of 3 new or added lines in 2 files covered. (100.0%)

7843 of 8514 relevant lines covered (92.12%)

8.07 hits per line

Jobs
ID Job ID Ran Files Coverage
1 run-3.12-ubuntu-latest-standard - 18499870221.1 14 Oct 2025 02:35PM UTC 61
88.7
GitHub Action Run
2 run-3.11-macos-latest-py311-coverage-extras-lmoments - 18499870221.2 14 Oct 2025 02:35PM UTC 61
91.88
GitHub Action Run
3 run-3.11-ubuntu-latest-py311-coverage-extras-sbck-offline-prefetch - 18499870221.3 14 Oct 2025 02:35PM UTC 61
88.67
GitHub Action Run
4 run-3.12-windows-latest-py312-coverage-prefetch - 18499870221.4 14 Oct 2025 02:35PM UTC 61
88.24
GitHub Action Run
5 run-{{ matrix.python-version }}-conda - 18499870221.5 14 Oct 2025 02:34PM UTC 60
91.94
GitHub Action Run
6 run-3.11-ubuntu-latest-standard - 18499870221.6 14 Oct 2025 02:35PM UTC 61
88.76
GitHub Action Run
7 run-3.10-ubuntu-latest-standard - 18499870221.7 14 Oct 2025 02:35PM UTC 61
88.7
GitHub Action Run
8 run-3.11-ubuntu-latest-preliminary - 18499870221.8 14 Oct 2025 02:35PM UTC 61
88.47
GitHub Action Run
Source Files on build 18499870221
  • Tree
  • List 61
  • Changed 3
  • Source Changed 2
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 0a7a75e3 on github
  • Prev Build on main (#18417204727)
  • Next Build on main (#18599474403)
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