Skip to content

Strange test failure related to CircleCI caching #952

@stefsmeets

Description

@stefsmeets

Describe the bug
I have had a whole slew of issues in #907 that I'm currently working on. I merged master to resolve some issues with the CI. This introduced some errors with CircleCi that have nothing to do with my PR. I think I finally tracked down the bug to be related to the caching in CircleCI.

Currently, we cache to the test-{{ .Branch }} key in .circleci/config.yml. In my case, the cache was not updated after the build system was changed by merging master (something to do with cartopy/numpy). This means all tests now fail, and no way to resolve the issue as the cache is only updated after a successful run.

Unfortunately, CircleCi has no way to clear the cache, the only way is to update the key.
I suggest we link the cache key to setup.py to avoid such issues in the future. This is also one of the solutions proposed in the CircleCI docs: https://support.circleci.com/hc/en-us/articles/115015426888-Clear-project-dependency-cache

I'm currently testing if this resolves the issue in #907.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions