Skip to content

.gitlab-ci.yml: pin conda/mamba to stable versions

Karl Wette requested to merge ANU-CGA/lalsuite:conda-mamba-versions into master

Description

The Conda CI jobs currently upgrade conda/mamba to the latest versions from conda-forge before the build. However it appears these versions aren't always stable. For example, conda version 4.13.0 appears to be broken with this error message:

ImportError: cannot import name 'init_std_stream_encoding' from 'conda.common.compat' (/opt/conda/lib/python3.9/site-packages/conda/common/compat.py)

Upgrading to this version breaks the Conda CI jobs, prevents CI pipelines from passing, MR from being merged, etc. which really puts a brake on LALSuite development activities.

This MR pins conda/mamba to versions known to be working, so that CI pipelines will hopefully not break from one moment to the next due to some external package change. Upgrades to conda/mamba, if required for new features/fixes/etc. can now happen in a more controlled way by adjusting the pinned versions.

API Changes and Justification

Backwards Compatible Changes

  • This change does not modify any class/function/struct/type definitions in a public C header file or any Python class/function definitions
  • This change adds new classes/functions/structs/types to a public C header file or Python module

Backwards Incompatible Changes

  • This change modifies an existing class/function/struct/type definition in a public C header file or Python module
  • This change removes an existing class/function/struct/type from a public C header file or Python module

Review Status

cc @duncanmmacleod @adam-mercer

Edited by Karl Wette

Merge request reports

Loading