Skip to content

Install miniforge3 for ubuntu 26 - #231

Merged
david-cortes-intel merged 2 commits into
mainfrom
dev/eglaser-azp-conda-fix
Dec 1, 2026
Merged

david-cortes-intel merged 2 commits into
mainfrom
dev/eglaser-azp-conda-fix

Conversation

@ethanglaser

Copy link
Copy Markdown
Contributor

Description

This repo's Azure Pipelines Linux jobs run on ubuntu-latest, and the repo has no automated dependency or version management (no Renovate, no Dependabot version updates), so image changes land without a PR. ubuntu-latest recently switched to Ubuntu 26.04, which no longer includes Miniconda in its default setup (actions/runner-images#14226). As a result, all four Linux jobs fail at environment initialization with conda: command not found (e.g. build 66789); the Windows jobs are unaffected.

This PR installs Miniforge in the Linux template, under /usr/share/miniforge3, and uses it in place of the image's Miniconda for every step. Miniforge defaults to conda-forge, which matches the pipeline's existing -c conda-forge -c nodefaults. The Windows template is unchanged.


Checklist:

Completeness and readability

  • I have commented my code, particularly in hard-to-understand areas.
  • I have updated the documentation to reflect the changes or created a separate PR with updates and provided its number in the description, if necessary.
  • Git commit message contains an appropriate signed-off-by string (see CONTRIBUTING.md for details).
  • I have resolved any merge conflicts that might occur with the base branch.

Testing

  • I have run it locally and tested the changes extensively.
  • All CI jobs are green or I have provided justification why they aren't.
  • I have extended testing suite if new functionality was introduced in this PR.

🤖 Generated with Claude Code

Comment thread test-configuration-linux.yml Outdated
versionSpec: "$(PYTHON_VERSION)"
- script: |
curl -fsSL -o $HOME/miniforge.sh https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-Linux-x86_64.sh
sudo mkdir -p /usr/share/miniforge3

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.

Is this trying to override some pre-existing installation from the base image?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Its downloading the installer script and creating a new dir for the installation of miniforge3. Alternative would be to install it to existing /usr/share/miniconda (would reduce diff) but since this is specifically miniforge3 I don't want to overwrite miniconda (not sure if anything is there anyway)

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.

Then why /usr/share specifically? And is it guaranteed that the base image won't switch from miniconda to miniforge and trigger a clash?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

/usr/share because thats where miniconda was, but I can change it if desired. as for clash - I don't believe anything is present at miniconda (previous jobs had conda not found issue when trying to use that path)

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.

/usr/share because thats where miniconda was, but I can change it if desired. as for clash - I don't believe anything is present at miniconda (previous jobs had conda not found issue when trying to use that path)

If it's not shared with other jobs, then maybe it'd be better to use a different path.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Good point, just updated to switch to HOME instead for manual install

@david-cortes-intel
david-cortes-intel merged commit ce6d31a into main Dec 1, 2026
11 of 12 checks passed
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