Skip to content

Refactor micromamba init - #271

Open
nettle wants to merge 1 commit into
Ericsson:mainfrom
nettle:micromamba-configs
Open

Refactor micromamba init#271
nettle wants to merge 1 commit into
Ericsson:mainfrom
nettle:micromamba-configs

Conversation

@nettle

@nettle nettle commented Aug 7, 2026

Copy link
Copy Markdown
Collaborator

Why:
We need to run different tool version combinations in CI and locally.
The versions were hardcoded in two nearly identical environment files,
and init.sh could only create and activate that one fixed environment.

What:

  • Generate env file from env.yaml template
  • Remove dev.yaml, superseded by the template
  • Add --bazel, --codechecker and --force options to init.sh
  • Create the environment when executed, activate when sourced
  • Reuse an existing environment
  • Print versions of tools
  • Split init.sh into functions, keep its variables out of the shell
  • Refactor run_tests.sh

@furtib
furtib self-requested a review August 8, 2026 08:33

@furtib furtib left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Program versions in micromamba can be overwritten by command-line arguments if not specified by the YAML file.
Like so: micromamba create --file ci.yaml --name myenv bazel=8.5.1.
Wouldn't it be better to use micromamba this way instead of creating a separate configuration file for each environment?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants