-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
fix: pin bahmutov/npm-install version #3587
Conversation
Hmm maybe we should just remove this step altogether and instead call uses: actions/setup-node@v3
with:
node-version-file: ".nvmrc"
cache: "yarn" @kentcdodds I see |
Yeah based on my testing, |
We already use `actions/setup-node@v3` which has equivalent caching functionality that isn't broken for yarn+windows (or yarn 2+ across the board). So just use that wherever possible. In addition to fixing builds, this has the added benefit of slightly speeding them up, since we won't double-cache things (in some cases we had both caches enabled). For context, see bahmutov/npm-install#146, in particular [this comment](bahmutov/npm-install#146 (comment)) and linked test output. This is an alternative to remix-run#3587 or otherwise waiting for `bahmutov/npm-install` to get fixed.
We already use `actions/setup-node@v3` which has equivalent caching functionality that isn't broken for yarn+windows (or yarn 2+ across the board). So just use that wherever possible. In addition to fixing builds, this has the added benefit of slightly speeding them up, since we won't double-cache things (in some cases we had both caches enabled). Making this PR against `main` instead `dev`, since the jobs explicitly use `remix-run/remix/.github/workflows/reusable-test.yml@main`, but I can switch it up if y'all like. Just trying to get my 4-month-old PR unblocked yet again 😆😭 For context, see bahmutov/npm-install#146, in particular [this comment](bahmutov/npm-install#146 (comment)) and linked test output. This is an alternative to remix-run#3587 or otherwise waiting for `bahmutov/npm-install` to get fixed.
We already use `actions/setup-node@v3` which has equivalent caching functionality that isn't broken for yarn+windows (or yarn 2+ across the board). So just use that wherever possible. In addition to fixing builds, this has the added benefit of slightly speeding them up, since we won't double-cache things (in some cases we had both caches enabled). Making this PR against `main` instead `dev`, since the jobs explicitly use `remix-run/remix/.github/workflows/reusable-test.yml@main`, but I can switch it up if y'all like. Just trying to get my 4-month-old PR unblocked yet again 😆😭 For context, see bahmutov/npm-install#146, in particular [this comment](bahmutov/npm-install#146 (comment)) and linked test output. This is an alternative to remix-run#3587 or otherwise waiting for `bahmutov/npm-install` to get fixed.
37abb25
to
9716a58
Compare
Alternative PR, just remove it altogether where we can: #3593 |
We already use `actions/setup-node@v3` which has equivalent caching functionality that isn't broken for yarn+windows (or yarn 2+ across the board). So just use that wherever possible. In addition to fixing builds, this has the added benefit of slightly speeding them up, since we won't double-cache things (in some cases we had both caches enabled). Making this PR against `main` instead `dev`, since the jobs explicitly use `remix-run/remix/.github/workflows/reusable-test.yml@main`, but I can switch it up if y'all like. Just trying to get my 4-month-old PR unblocked yet again 😆😭 For context, see bahmutov/npm-install#146, in particular [this comment](bahmutov/npm-install#146 (comment)) and linked test output. This is an alternative to remix-run#3587 or otherwise waiting for `bahmutov/npm-install` to get fixed.
9716a58
to
f031158
Compare
.github/workflows/test.yml
Outdated
@@ -17,6 +17,6 @@ on: | |||
jobs: | |||
test: | |||
if: github.repository == 'remix-run/remix' | |||
uses: remix-run/remix/.github/workflows/reusable-test.yml@main | |||
uses: jenseng/remix/.github/workflows/reusable-test.yml@pin-npm-install-workflow-step |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
converted to a draft due to this testing chicken/egg problem ... temporarily setting this so the change actually gets tested :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tests passed using this workflow definition: https://github.com/remix-run/remix/actions/runs/2579553824, i've gone ahead and removed this tweak
We already use `actions/setup-node@v3` which has equivalent caching functionality that isn't broken for yarn+windows (or yarn 2+ across the board). So just use that wherever possible. In addition to fixing builds, this has the added benefit of slightly speeding them up, since we won't double-cache things (in some cases we had both caches enabled). Making this PR against `main` instead `dev`, since the jobs explicitly use `remix-run/remix/.github/workflows/reusable-test.yml@main`, but I can switch it up if y'all like. Just trying to get my 4-month-old PR unblocked yet again 😆😭 For context, see bahmutov/npm-install#146, in particular [this comment](bahmutov/npm-install#146 (comment)) and linked test output. This is an alternative to remix-run#3587 or otherwise waiting for `bahmutov/npm-install` to get fixed.
We already use `actions/setup-node@v3` which has equivalent caching functionality that isn't broken for yarn+windows (or yarn 2+ across the board). So just use that wherever possible. In addition to fixing builds, this has the added benefit of slightly speeding them up, since we won't double-cache things (in some cases we had both caches enabled). Making this PR against `main` instead `dev`, since the jobs explicitly use `remix-run/remix/.github/workflows/reusable-test.yml@main`, but I can switch it up if y'all like. Just trying to get my 4-month-old PR unblocked yet again 😆😭 For context, see bahmutov/npm-install#146, in particular [this comment](bahmutov/npm-install#146 (comment)) and linked test output. This is an alternative to remix-run#3587 or otherwise waiting for `bahmutov/npm-install` to get fixed.
v1.8.16 breaks cache miss installs on windows, which blocks any PRs/commits that change dependencies. Opened bahmutov/npm-install#146 to address the underlying issue, but in the meantime we can pin to the prior version to get things working again. Additional context: - Discord: https://discord.com/channels/770287896669978684/940264701785423992/991085961972707338 - Initial PR affected: remix-run#2027 - Repro/Debug PR: remix-run#3584
f031158
to
fcea942
Compare
We already use `actions/setup-node@v3` which has equivalent caching functionality that isn't broken for yarn+windows (or yarn 2+ across the board). So just use that wherever possible. In addition to fixing builds, this has the added benefit of slightly speeding them up, since we won't double-cache things (in some cases we had both caches enabled). Making this PR against `main` instead `dev`, since the jobs explicitly use `remix-run/remix/.github/workflows/reusable-test.yml@main`, but I can switch it up if y'all like. Just trying to get my 4-month-old PR unblocked yet again 😆😭 For context, see bahmutov/npm-install#146, in particular [this comment](bahmutov/npm-install#146 (comment)) and linked test output. This is an alternative to remix-run#3587 or otherwise waiting for `bahmutov/npm-install` to get fixed.
Closing in favor of #3593 |
v1.8.16 breaks cache miss installs on windows, which blocks any PRs/commits that change dependencies. Opened this issue to address the underlying bug, but in the meantime we can pin to the prior version to get things working again.
Making this PR against
main
insteaddev
, since the jobs explicitly useremix-run/remix/.github/workflows/reusable-test.yml@main
, but I can switch it up if y'all like. Just trying to get my 4-month-old PR unblocked yet again 😆😭Additional context:
Testing Strategy: