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

Improvement/wrlgs 12 dep upgrades #169

Merged
merged 11 commits into from
Sep 5, 2024

Conversation

williamlardier
Copy link
Contributor

@williamlardier williamlardier commented Sep 3, 2024

  • Bump package deps and fix CVEs
  • Update code to follow latest linter
  • No change needed in gha
  • Bump project version
  • Remove unused packages

Issue: WRLGS-12

@bert-e
Copy link
Contributor

bert-e commented Sep 3, 2024

Hello williamlardier,

My role is to assist you with the merge of this
pull request. Please type @bert-e help to get information
on this process, or consult the user documentation.

Available options
name description privileged authored
/after_pull_request Wait for the given pull request id to be merged before continuing with the current one.
/bypass_author_approval Bypass the pull request author's approval
/bypass_build_status Bypass the build and test status
/bypass_commit_size Bypass the check on the size of the changeset TBA
/bypass_incompatible_branch Bypass the check on the source branch prefix
/bypass_jira_check Bypass the Jira issue check
/bypass_peer_approval Bypass the pull request peers' approval
/bypass_leader_approval Bypass the pull request leaders' approval
/approve Instruct Bert-E that the author has approved the pull request. ✍️
/create_pull_requests Allow the creation of integration pull requests.
/create_integration_branches Allow the creation of integration branches.
/no_octopus Prevent Wall-E from doing any octopus merge and use multiple consecutive merge instead
/unanimity Change review acceptance criteria from one reviewer at least to all reviewers
/wait Instruct Bert-E not to run until further notice.
Available commands
name description privileged
/help Print Bert-E's manual in the pull request.
/status Print Bert-E's current status in the pull request TBA
/clear Remove all comments from Bert-E from the history TBA
/retry Re-start a fresh build TBA
/build Re-start a fresh build TBA
/force_reset Delete integration branches & pull requests, and restart merge process from the beginning.
/reset Try to remove integration branches unless there are commits on them which do not appear on the source branch.

Status report is not available.

@scality scality deleted a comment from bert-e Sep 3, 2024
@bert-e
Copy link
Contributor

bert-e commented Sep 3, 2024

Waiting for approval

The following approvals are needed before I can proceed with the merge:

  • the author

  • 2 peers

@williamlardier williamlardier force-pushed the improvement/WRLGS-12-dep-upgrades branch from 994e264 to 0ab4ca3 Compare September 3, 2024 07:53
.eslintrc Outdated
{ "extends": "scality" }
{
"extends": "scality",
"parserOptions": {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can't we move these the scality/guidelines package, to avoid copying/duplicating and maintaining different styles?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually I think we can just remove them and adapt the code. I'll give it a quick try.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done, like that we don't need to change scality guidelines by disabling good practice rules...

package.json Outdated
"markdownlint-cli": "^0.27.1",
"mocha": "^8.4.0",
"@babel/eslint-parser": "^7.25.1",
"eslint": "^8.57.0",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

eslint 9 ?

Copy link
Contributor Author

@williamlardier williamlardier Sep 3, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We cannot, it requires node 18+, but then we cannot use it in our projects because they're not yet upgraded to node 20, which would make this dependency not usable... Do we want to upgrade to eslintv9 now?

error @eslint/[email protected]: The engine "node" is incompatible with this module. Expected version "^18.18.0 || ^20.9.0 || >=21.1.0". Got "16.20.2"
error Found incompatible module.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Now it uses eslint v9, I also removed almost all devdeps, are they are unused, we should only rely on the scality eslint configuration... This will simplify things and then we can really enforce a coding style everywhere.

Use resolution to fix some critical CVEs as the packages
either do not include the fix, or are requiring recent node
versions.

Issue: WRLGS-12
The new lint version enforces more rules.
Also, some existing codes were not following the best practises

Issue: WRLGS-12
@williamlardier williamlardier force-pushed the improvement/WRLGS-12-dep-upgrades branch from 0ab4ca3 to fb7d4b1 Compare September 3, 2024 09:15
@williamlardier williamlardier force-pushed the improvement/WRLGS-12-dep-upgrades branch from fb7d4b1 to e67c765 Compare September 4, 2024 12:43
@williamlardier williamlardier changed the base branch from development/8.1 to development/8.2 September 4, 2024 12:43
@bert-e
Copy link
Contributor

bert-e commented Sep 4, 2024

Incorrect fix version

The Fix Version/s in issue WRLGS-12 contains:

  • 8.1.6

Considering where you are trying to merge, I ignored possible hotfix versions and I expected to find:

  • 8.1.6

  • 8.2.0

Please check the Fix Version/s of WRLGS-12, or the target
branch of this pull request.

@bert-e
Copy link
Contributor

bert-e commented Sep 4, 2024

Incorrect fix version

The Fix Version/s in issue WRLGS-12 contains:

  • 8.1.6

Considering where you are trying to merge, I ignored possible hotfix versions and I expected to find:

  • 8.2.0

Please check the Fix Version/s of WRLGS-12, or the target
branch of this pull request.

@williamlardier williamlardier force-pushed the improvement/WRLGS-12-dep-upgrades branch from e67c765 to a1f0f91 Compare September 4, 2024 12:45
@bert-e
Copy link
Contributor

bert-e commented Sep 4, 2024

Waiting for approval

The following approvals are needed before I can proceed with the merge:

  • the author

  • 2 peers

@williamlardier williamlardier force-pushed the improvement/WRLGS-12-dep-upgrades branch from a1f0f91 to 9df0245 Compare September 4, 2024 12:47
@williamlardier williamlardier force-pushed the improvement/WRLGS-12-dep-upgrades branch from 9df0245 to 2d43c65 Compare September 5, 2024 12:28
@williamlardier williamlardier force-pushed the improvement/WRLGS-12-dep-upgrades branch from 2d43c65 to e9f5fa1 Compare September 5, 2024 12:30
Issue: WRLOGS-12
@williamlardier williamlardier force-pushed the improvement/WRLGS-12-dep-upgrades branch from e9f5fa1 to 7bf334c Compare September 5, 2024 12:37
@williamlardier
Copy link
Contributor Author

/approve

@bert-e
Copy link
Contributor

bert-e commented Sep 5, 2024

I have successfully merged the changeset of this pull request
into targetted development branches:

  • ✔️ development/8.2

The following branches have NOT changed:

  • development/6.4
  • development/7.10
  • development/7.4
  • development/8.0
  • development/8.1

Please check the status of the associated issue WRLGS-12.

Goodbye williamlardier.

The following options are set: approve

@bert-e bert-e merged commit 7bf334c into development/8.2 Sep 5, 2024
1 check passed
@bert-e bert-e deleted the improvement/WRLGS-12-dep-upgrades branch September 5, 2024 12:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants