Skip to content

chore: Updated mysql2 tests to fix CI issue#2282

Merged
jsumners-nr merged 1 commit intonewrelic:mainfrom
jsumners-nr:fix-mysql2-ci
Jun 17, 2024
Merged

chore: Updated mysql2 tests to fix CI issue#2282
jsumners-nr merged 1 commit intonewrelic:mainfrom
jsumners-nr:fix-mysql2-ci

Conversation

@jsumners-nr
Copy link
Copy Markdown
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
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

Archived in project

Development

Successfully merging this pull request may close these issues.

3 participants