-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Frequent failure with volta-cli//action #80
Comments
I've had the same issue for a while now. Some of the comments on this issue and this issue seem to refer to a similar problem. It seems the unofficial recommendation is to use the The Lerna repository (which is under the nx umbrella) made this change recently so it might be worthwhile for the same change to be made to the preconfigured workflows here. |
Unfortunately, the But if this remains flaky, we will have to switch and sacrifice some functionality. |
It is flacky, about 10% of all the CI run failures are related to this in my case |
I took gremlin896 suggestions and use setup-node, it stabilized a lot. |
Since I still wanted to use Volta locally, and have CI pull through the yarn version set in name: "Prepare"
description: "Install node and yarn using specified volta versions, install deps"
runs:
using: "composite"
steps:
- run: echo "YARN_VERSION=$(cat package.json | jq '.volta.yarn' -r)" >> $GITHUB_ENV
shell: bash
- name: Install Yarn
run: |
corepack enable
corepack prepare yarn@$YARN_VERSION --activate
shell: bash
- uses: actions/setup-node@v3
with:
cache: 'yarn'
node-version-file: 'package.json'
- run: yarn --immutable
shell: bash |
I am facing the same issue... Let's add also the PR of |
Volta has two issues:
So we will switch over to setup-node as well |
@meeroslav be aware that there is an open issue with There are workarounds for these self-hosted runners with this action... which basically involve running the action with caching explicitly disabled, then enabling corepack, running the action again, then running the install step. Obviously this is less than ideal. |
Thank you @brianespinosa for the info. The self-hosted runners are not supported by this reusable workflow, so we suggest folks with more specific needs to build their own workflows. |
I will be closing this PR since it seems that there is not something that can be done to address the issue, but please ping me if you think I should re-open, or please open a new one, mentioning this. |
The error of using Volta to install Node.js 16.18.1 failed quite often and it is quite disruptive to our pipelines. Happens 1-2 times everyday
Do you have any suggestions on how I can improve this?
The text was updated successfully, but these errors were encountered: