-
Notifications
You must be signed in to change notification settings - Fork 15
Re-enable eslint test #2958
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
Re-enable eslint test #2958
Conversation
okurz
left a comment
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.
why should we reintroduce the deprecation warning? Or are you just trying out effects in GHA?
Partially yes, trying out effects but also, forcing using ajv v8 seems to be causing this: There is probably another way to get rid of these deprecation warnings, but for now this allows to re-enable the eslint test, which is passing now. |
^^ Even the next point release of eslint seems to require the old ajv. |
|
Following comments from the upstream issue eslint/eslint#19369 leads me to nodejs/node#56632 which says the deprecation warning is being removed npm itself |
okurz
left a comment
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.
You explain well why GHA might need the revert but why do other locations need to be reverted as well? And please comment why you think it's ok to revert 5ff9b9f as that one was done like it was done with a convincing reason. Maybe just change that in .github/workflows/ and leave the rest as is?
Simply put, the workflow was passing before that commit that I don't fully understand, so it looks like a reasonable approach to roll it back until we understand why this happens, so the workflow can be back in service immediately, then eventually re-apply 5ff9b9f. Or, I can take more time to try things, up to you. |
Because you're not committing a necessary change to
|
3e64f5f to
5105735
Compare
34227f2 to
8fd7fcd
Compare
8fd7fcd to
5d49fe6
Compare
5d49fe6 to
9241e6b
Compare
This comment was marked as resolved.
This comment was marked as resolved.
perlpunk
left a comment
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.
Conflicts need to be resolved.
I' wondering a bit about the huge amount of deleted lines in package-lock.json, but don't know enough about npm to say if this is fine.
This reverts commit a9444d9. Eslint needs an older version of ajv, otherwise fails with "NOT SUPPORTED: option missingRefs.(...)" because this was changed in ajv v8, see https://progress.opensuse.org/issues/192169#note-6
9241e6b to
0a76939
Compare
We need to re-generate package-lock in order to avoid "npm error `npm ci` can only install packages when your package.json and package-lock.json or npm-shrinkwrap.json are in sync. Please update your lock file with `npm install` before continuing."
I resolved the conflicts in package-lock by just running npm install on top of the latest one available in the repo. it seems like last time the package-lock file had not been re-generated for a while, hence the huge amount of modified lines. Now it looks like a lot less drastic change, |
okurz
left a comment
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.
@JRivrain All commits and their content looks fine. Care to remove the "WIP" in the PR title?
|
This pull request, with head sha This pull request will be automatically closed by GitHub.As soon as GitHub detects that the sha It is possible for this pull request to remain open if this detection does not happen, this usually happens when a force-push is done on this branch |
Eslint needs an older version of ajv, otherwise fails with "NOT SUPPORTED: option missingRefs.(...)"
because this was changed in ajv v8,
see https://progress.opensuse.org/issues/192169#note-6
2 - Re-enable eslint test
See https://progress.opensuse.org/issues/192169 and
#2879
We also need to re-create the package-lock file to avoid a mistmatch,
since we started using npm clean-install instead of npm install