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

Ouranosinc / xclim / 6510331820
90%
main: 92%

Build:
Build:
LAST BUILD BRANCH: eco-ci-project
DEFAULT BRANCH: main
Ran 13 Oct 2023 03:57PM UTC
Jobs 2
Files 70
Run time 3s
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

13 Oct 2023 03:48PM UTC coverage: 90.403%. Remained the same
6510331820

push

github

web-flow
Generate a cache directory even if the "cache" folder is not found (#1499)

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

* Allows the `pytest` setup to load testing data into a cache folder
even if the cache folder does not exist.

### Does this PR introduce a breaking change?

No.

### Other information:

Relevant traceback (conda-forge):
```
==================================== ERRORS ====================================
_________________ ERROR at setup of TestSEuclidean.test_simple _________________
[gw0] linux -- Python 3.8.18 $PREFIX/bin/python3.8

        When running pytest with multiple workers, one worker will copy data remotely to _default_cache_dir while
        other workers wait using lockfile. Once the lock is released, all workers will copy data to their local
        threadsafe_data_dir."""
    
        if (
            not _default_cache_dir.joinpath(helpers.TESTDATA_BRANCH).exists()
            or helpers.PREFETCH_TESTING_DATA
        ):
            if worker_id in "master":
                helpers.populate_testing_data(branch=helpers.TESTDATA_BRANCH)
            else:
>               _default_cache_dir.mkdir(exist_ok=True)

tests/conftest.py:447: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = PosixPath('/home/conda/.cache/xclim-testdata'), mode = 511
parents = False, exist_ok = True

    def mkdir(self, mode=0o777, parents=False, exist_ok=False):
        """
        Create a new directory at this given path.
        """
        if self._closed:
            self._raise_closed()
        try:
>           self._accessor.mkdir(self, mode)
E           FileNotFoundError: [Errno 2] No such file or directory: '/home/conda/.cache/xclim-testdata'

../_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_/lib/python3.8/... (continued)

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

8393 of 9284 relevant lines covered (90.4%)

4.37 hits per line

Jobs
ID Job ID Ran Files Coverage
1 run-{{ matrix.tox-env }} - 6510331820.1 13 Oct 2023 04:06PM UTC 0
90.4
2 run-{{ matrix.tox-env }}-opt-slow - 6510331820.2 13 Oct 2023 04:06PM UTC 0
90.0
Source Files on build 6510331820
Detailed source file information is not available for this build.
  • Back to Repo
  • d53a5b65 on github
  • Prev Build on master (#6487159996)
  • Next Build on master (#6512018602)
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