Skip to content
Snippets Groups Projects
Commit c4e3bff1 authored by Andrew Newdigate's avatar Andrew Newdigate
Browse files

Merge branch 'retry-mise' into 'main'

fix: add a retry for mise installs

See merge request gitlab-com/gl-infra/common-ci-tasks!584
parents 558f3817 c4147249
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -72,7 +72,20 @@ validate_mise_tool_versions:
ssh-keyscan gitlab.com >> ~/.ssh/known_hosts;
ssh -T git@gitlab.com || true;
fi
- ./scripts/install-asdf-plugins.sh
# mise installs plugins in parallel, so order may lead to breaks when some plugins require others
# the best workaround is to use `.mise.toml` with dependencies, but we can't do this until the
# migration off asdf, in https://gitlab.com/gitlab-com/runbooks/-/issues/134 is complete.
# until then, a retry should be sufficient.
- >
./scripts/install-asdf-plugins.sh || {
echo "mise install failed, trying again without parallel jobs..."
# Use shims so that plugins can find dependencies
eval $(mise env --shell bash)
# Skip parallel installs for the retry
MISE_JOBS=1 ./scripts/install-asdf-plugins.sh
}
- ./scripts/update-asdf-version-variables.sh
- git diff --exit-code
after_script: |
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment