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

chore: Updated mysql2 tests to fix CI issue #2282

Merged
merged 1 commit into from
Jun 17, 2024

Conversation

jsumners-nr
Copy link
Contributor

This PR fixes an issue in our CI introduced by #2280. The problem is tied to sidorares/node-mysql2#1398. In short, mysql2@1 relies on iconv-lite@0.4.8 which does not have an encoding mapping that MySQL server 8+ requires. The fix for the mysql2 driver is to update to at least version 2.0.0. Given the details outlined in #2269 , I have updated updated our versioned tests to minimally test against mysql@2.0.0. The consequence is that we do not have coverage for v1 of mysql2 (which was last released 2019-08-28 according to npm).

Internally, I can see some usage of the v1 line with v11 of our agent, but the total number at the time of this writing is 16 instances. All other usages of mysql2@1 are on older versions of the agent and still only totals some where in the 10s (i.e. <100).

@mrickard mrickard self-assigned this Jun 17, 2024
@jsumners-nr jsumners-nr merged commit 5a37971 into newrelic:main Jun 17, 2024
29 checks passed
Node.js Engineering Board automation moved this from Needs PR Review to Done: Issues recently completed Jun 17, 2024
@jsumners-nr jsumners-nr deleted the fix-mysql2-ci branch June 17, 2024 18:06
@jsumners-nr jsumners-nr added the dev:automation Indicates CI automation label Jun 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dev:automation Indicates CI automation
Projects
Node.js Engineering Board
  
Done: Issues recently completed
Development

Successfully merging this pull request may close these issues.

None yet

2 participants