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

Upgrade Dependency connect-redis from 3.4.0 to 6.1.3 #1387

Merged

Conversation

hexaltation
Copy link
Collaborator

@hexaltation hexaltation commented Jan 20, 2025

Context

This PR is a follow-up of #1368
It manage to upgrade redis-connect to it's latest release

Proposed solution

The following strategy has been chosen.

  • Upgrade following breaking changes and migration documentations provided by redis-connect project.

Bump connect-redis from 3.4.0 to 6.1.3

Applies migration following https://github.com/tj/connect-redis/blob/c951850eb72759f387d4ae0c249aca8e1e9fc244/migration-to-v4.md

Has this been tested?

  • 👍 yes, By running automated test of this PR

@hexaltation hexaltation added dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code gouv.fr labels Jan 20, 2025
@hexaltation hexaltation force-pushed the dependencies-update-connect-redis branch from 633d761 to 43adde8 Compare January 21, 2025 12:26
@hexaltation hexaltation changed the title Upgrade Dependency connect-redis Upgrade Dependency connect-redis from 3.4.0 to 7.1.1 Jan 21, 2025
@hexaltation hexaltation changed the title Upgrade Dependency connect-redis from 3.4.0 to 7.1.1 Upgrade Dependency connect-redis from 3.4.0 to 8.0.1 Jan 22, 2025
@hexaltation hexaltation force-pushed the dependencies-update-connect-redis branch 2 times, most recently from 17cf0dc to ec019cd Compare January 29, 2025 16:44
@hexaltation hexaltation self-assigned this Feb 28, 2025
The purpose is to remove a vulnerable version of redis from dependencies
of connect-redis.

the choosen version is the one updating node-redis to a safe version
@hexaltation hexaltation force-pushed the dependencies-update-connect-redis branch from ec019cd to 72d3d3c Compare March 4, 2025 15:52
@hexaltation hexaltation changed the title Upgrade Dependency connect-redis from 3.4.0 to 8.0.1 Upgrade Dependency connect-redis from 3.4.0 to 5.2.0 Mar 4, 2025
@hexaltation hexaltation marked this pull request as ready for review March 4, 2025 16:36
@hexaltation hexaltation requested a review from fflorent March 4, 2025 16:36
Copy link
Collaborator

@fflorent fflorent left a comment

Choose a reason for hiding this comment

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

LGTM (with a bit of nitpicking)

Importing this way, it's the declaration.d.ts that is used.
Thats why I added unref in it.
@hexaltation hexaltation requested a review from fflorent March 5, 2025 10:44
@georgegevoian georgegevoian self-requested a review March 5, 2025 16:37
6.1.3 is choosen cause it's the last version supporting redis@v3
While the redis version was not fixed, produced Docker images onboard
3.1.0 instead of >= 3.1.1.
@@ -197,7 +197,7 @@
"prom-client": "14.2.0",
"qrcode": "1.5.0",
"randomcolor": "0.5.3",
"redis": "3.1.1",
"redis": "~3.1.2",
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

While the redis version was not prefixed with ~, produced Docker images contained
3.1.0 instead of >= 3.1.1.

@@ -142,7 +142,7 @@
"color-convert": "2.0.1",
"commander": "9.3.0",
"components-jqueryui": "1.12.1",
"connect-redis": "3.4.0",
"connect-redis": "6.1.3",
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This is the last version of connect-redis supporting redis@v3

@hexaltation hexaltation requested review from fflorent and dsagal and removed request for georgegevoian March 6, 2025 11:04
@hexaltation
Copy link
Collaborator Author

The CI error is a known flaky end-to-end test (importer2).
Not related with the current PR

@hexaltation hexaltation changed the title Upgrade Dependency connect-redis from 3.4.0 to 5.2.0 Upgrade Dependency connect-redis from 3.4.0 to 6.1.3 Mar 6, 2025
Copy link
Collaborator

@fflorent fflorent left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@georgegevoian georgegevoian left a comment

Choose a reason for hiding this comment

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

Confirming tests still pass in our internal CI after these changes.

Thanks @hexaltation.

@georgegevoian georgegevoian merged commit 08fee12 into gristlabs:main Mar 12, 2025
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file gouv.fr javascript Pull requests that update Javascript code
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

4 participants