Skip to content
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

[renovate] enable lock file maintainance or increase its frequency if it's already on #4263

Closed
pichlermarc opened this issue Nov 8, 2023 · 7 comments
Labels
internal up-for-grabs Good for taking. Extra help will be provided by maintainers

Comments

@pichlermarc
Copy link
Member

pichlermarc commented Nov 8, 2023

Since package-lock.json is now tracked it's also updated with renovate bot PRs. We should possibly enable lock-file-maintainance in the renvoate bot config (or if it is already enabled, bump the frequency at which it creates those PRs) now that we track it though. This'll enable us to catch problems earlier and therefore with a smaller lock file diff.

Originally posted by @pichlermarc in #4255 (comment)

@pichlermarc pichlermarc changed the title [renovate] enable lock file maintainance or increase it's freqency if it's already on [renovate] enable lock file maintainance or increase its freqency if it's already on Nov 8, 2023
@pichlermarc pichlermarc changed the title [renovate] enable lock file maintainance or increase its freqency if it's already on [renovate] enable lock file maintainance or increase its frequency if it's already on Nov 8, 2023
@trentm
Copy link
Contributor

trentm commented Nov 8, 2023

I wonder what version of npm renovate uses for that regeneration of "package-lock.json". If it is a npm 9 or greater, this might result in bumping the lockfileVersion from 2 to 3. Here are some notes on lockfileVersion values: open-telemetry/opentelemetry-js-contrib#1771 (comment)

For that PR in the contrib repo, I've set lockfile-version=2 in .npmrc to stick with 2 for now -- mainly because that's a lockfileVersion that the default npm that comes with Node.js v16 knows about.

Does anyone else have experience with, or thoughts on whether this repo should move to lockfileVersion: 3?

@trentm
Copy link
Contributor

trentm commented Nov 8, 2023

or increase its frequency if it's already on

It is off by default per https://docs.renovatebot.com/configuration-options/#lockfilemaintenance so I'm guessing it is not currently on.

@pichlermarc
Copy link
Member Author

pichlermarc commented Nov 9, 2023

I wonder what version of npm renovate uses for that regeneration of "package-lock.json". If it is a npm 9 or greater, this might result in bumping the lockfileVersion from 2 to 3. Here are some notes on lockfileVersion values: open-telemetry/opentelemetry-js-contrib#1771 (comment)

that's a good point, thanks for bringing this up!

For that PR in the contrib repo, I've set lockfile-version=2 in .npmrc to stick with 2 for now -- mainly because that's a lockfileVersion that the default npm that comes with Node.js v16 knows about.

We do have some tests (specifically for API backwards compatibility) that run on Node.js v8 which only supports up to npm 6, which in turn, only supports lock file version up to 2 as they're backwards compatibile to lock files version 1.

Does anyone else have experience with, or thoughts on whether this repo should move to lockfileVersion: 3?

I think we should also make this repo stick to lock file version 2 to for the reason of supporting Node.js v8 to v16 in tests

@pichlermarc
Copy link
Member Author

I added the line to use lockfile version 2 in #4275, it'll be beneficial to the developer experience to have it there in case the lock file is re-generated during development and it makes it into a PR - we woudn't want to have it be v3 then.

@pichlermarc pichlermarc added up-for-grabs Good for taking. Extra help will be provided by maintainers internal labels Dec 13, 2023
Copy link

github-actions bot commented Mar 4, 2024

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 14 days.

@github-actions github-actions bot added the stale label Mar 4, 2024
Copy link

This issue was closed because it has been stale for 14 days with no activity.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Mar 25, 2024
@pichlermarc pichlermarc reopened this Apr 8, 2024
@pichlermarc pichlermarc removed the stale label Apr 8, 2024
@pichlermarc
Copy link
Member Author

Fixed by #4628

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
internal up-for-grabs Good for taking. Extra help will be provided by maintainers
Projects
None yet
Development

No branches or pull requests

2 participants