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

Set default collation to utf8mb4 #35174

Open
wants to merge 21 commits into
base: 2.4-develop
Choose a base branch
from

Conversation

sippsolutions
Copy link
Member

@sippsolutions sippsolutions commented Mar 10, 2022

Description (*)

MySQL 8 interprets utf8 as utf8mb3, which is deprecated:
https://dev.mysql.com/doc/relnotes/mysql/8.0/en/news-8-0-24.html
https://dev.mysql.com/doc/refman/8.0/en/charset-unicode-utf8mb3.html
We should therefor ensure utf8mb4 is used.

Contribution checklist (*)

  • Pull request has a meaningful description of its purpose
  • All commits are accompanied by meaningful commit messages
  • All new or changed code is covered with unit/integration tests (if applicable)
  • README.md files for modified modules are updated and included in the pull request if any README.md predefined sections require an update
  • All automated tests passed successfully (all builds are green)

Resolved issues:

  1. resolves [Issue] Set default collation to utf8mb4 #38085: Set default collation to utf8mb4

@m2-assistant
Copy link

m2-assistant bot commented Mar 10, 2022

Hi @sippsolutions. Thank you for your contribution
Here are some useful tips how you can test your changes using Magento test environment.
Add the comment under your pull request to deploy test or vanilla Magento instance:

  • @magento give me test instance - deploy test instance based on PR changes
  • @magento give me 2.4-develop instance - deploy vanilla Magento instance

❗ Automated tests can be triggered manually with an appropriate comment:

  • @magento run all tests - run or re-run all required tests against the PR changes
  • @magento run <test-build(s)> - run or re-run specific test build(s)
    For example: @magento run Unit Tests

<test-build(s)> is a comma-separated list of build names. Allowed build names are:

  1. Database Compare
  2. Functional Tests CE
  3. Functional Tests EE,
  4. Functional Tests B2B
  5. Integration Tests
  6. Magento Health Index
  7. Sample Data Tests CE
  8. Sample Data Tests EE
  9. Sample Data Tests B2B
  10. Static Tests
  11. Unit Tests
  12. WebAPI Tests
  13. Semantic Version Checker

You can find more information about the builds here

ℹ️ Run only required test builds during development. Run all test builds before sending your pull request for review.

For more details, review the Magento Contributor Guide documentation.

⚠️ According to the Magento Contribution requirements, all Pull Requests must go through the Community Contributions Triage process. Community Contributions Triage is a public meeting.

🕙 You can find the schedule on the Magento Community Calendar page.

📞 The triage of Pull Requests happens in the queue order. If you want to speed up the delivery of your contribution, join the Community Contributions Triage session to discuss the appropriate ticket.

✏️ Feel free to post questions/proposals/feedback related to the Community Contributions Triage process to the corresponding Slack Channel

@sippsolutions
Copy link
Member Author

@magento run all tests

@magento-automated-testing
Copy link

The requested builds are added to the queue. You should be able to see them here within a few minutes. Please re-request them if they don't show in a reasonable amount of time.

@m2-community-project m2-community-project bot added this to Pending Review in Pull Requests Dashboard Mar 10, 2022
@sdzhepa sdzhepa added the Priority: P3 May be fixed according to the position in the backlog. label Mar 10, 2022
@Den4ik Den4ik self-assigned this Mar 17, 2022
@Den4ik Den4ik self-requested a review March 17, 2022 15:05
@Den4ik
Copy link
Contributor

Den4ik commented Mar 17, 2022

Hi @sippsolutions
Thanks for this PR.
Could you please fix failed tests

@sippsolutions
Copy link
Member Author

@Den4ik did you see my changes? the tests are intended to fail.

@Den4ik
Copy link
Contributor

Den4ik commented May 24, 2022

Hi @sippsolutions
Sorry for delay. I don't see any commits after my message.
Unit and Static tests failed on changed file

@Den4ik Den4ik added the Issue: needs update Additional information is require, waiting for response label May 24, 2022
@m2-community-project m2-community-project bot moved this from Pending Review to Review in Progress in Pull Requests Dashboard May 24, 2022
@sippsolutions
Copy link
Member Author

sippsolutions commented May 25, 2022

Hi @Den4ik,
the failing database compare tests cannot be fixed as they state that there are differences in the database structure.
If you look at the changes I made you can see that I changed the default collation for database tables. It is intended that the database structure differs.

@Den4ik
Copy link
Contributor

Den4ik commented May 25, 2022

Hi @sippsolutions
I didn't say about db tests. Only static and unit tests failed for changed file.
I believe that some one from core team could help with this fixes off you don't have time for fix that

@sippsolutions
Copy link
Member Author

@Den4ik that would be awesome :)

@Den4ik
Copy link
Contributor

Den4ik commented Sep 12, 2022

@sippsolutions Could you resolve merge conflict?

@hostep
Copy link
Contributor

hostep commented Sep 14, 2022

This might be a bit more complex than what it sounds like.

See OpenMage/magento-lts#1036 where an attempt is made to apply a similar change to Magento 1, it contains a bunch of interesting information in the comments.

@Quazz
Copy link

Quazz commented Aug 8, 2023

protected $_options = ['type' => 'INNODB', 'charset' => 'utf8', 'collate' => 'utf8_general_ci'];

Would also need changes, otherwise you'll get mismatched collations which will kill your performance.

@sinhaparul sinhaparul added the Project: Community Picked PRs upvoted by the community label Oct 13, 2023
@m2-community-project m2-community-project bot added this to Review in Progress in Community Dashboard Oct 13, 2023
@m2-community-project m2-community-project bot removed this from Review in Progress in Pull Requests Dashboard Oct 13, 2023
@andrewbess andrewbess self-assigned this Dec 26, 2023
@andrewbess
Copy link
Contributor

Hello @sippsolutions
Thank you for your collaboration.
Changes look good for me ✔️.
Let's wait for passing functional tests.

Copy link
Contributor

@Den4ik Den4ik left a comment

Choose a reason for hiding this comment

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

Functional tests passed in previous runs.
Checked DB tests and it looks ok

@m2-community-project m2-community-project bot moved this from Changes Requested to Ready for Testing in Community Dashboard Dec 26, 2023
@ihor-sviziev ihor-sviziev removed their request for review December 27, 2023 08:21
Copy link
Contributor

@andrewbess andrewbess left a comment

Choose a reason for hiding this comment

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

Approved

@andrewbess
Copy link
Contributor

@magento run all tests

Copy link

The requested builds are added to the queue. You should be able to see them here within a few minutes. Please message the #magento-devops slack channel if they don't show in a reasonable amount of time and a representative will look into any issues.

@engcom-Delta
Copy link
Contributor

@magento run all tests

Copy link

The requested builds are added to the queue. You should be able to see them here within a few minutes. Please message the #magento-devops slack channel if they don't show in a reasonable amount of time and a representative will look into any issues.

@engcom-Delta engcom-Delta added the Triage: Dev.Experience Issue related to Developer Experience and needs help with Triage to Confirm or Reject it label Jan 2, 2024
@engcom-Hotel engcom-Hotel moved this from Ready for Testing to Testing in Progress in Community Dashboard Jan 25, 2024
@engcom-Hotel
Copy link
Contributor

@magento run all tests

Copy link

The requested builds are added to the queue. You should be able to see them here within a few minutes. Please message the #magento-devops slack channel if they don't show in a reasonable amount of time and a representative will look into any issues.

@hostep hostep mentioned this pull request Jan 29, 2024
5 tasks
@engcom-Hotel
Copy link
Contributor

@magento run Functional Tests CE, Functional Tests B2B

Copy link

The requested builds are added to the queue. You should be able to see them here within a few minutes. Please message the #magento-devops slack channel if they don't show in a reasonable amount of time and a representative will look into any issues.

@engcom-Bravo
Copy link
Contributor

Hi,

Internal team has started working on this issue. Most of the code changes are complete. We are trying to get conclusion over DBC failure and are in discussion with PO.

Thanks.

@engcom-Hotel
Copy link
Contributor

As per this comment #35174 (comment), we are moving this issue On hold.

We will update you here about the progress.

Thanks

@engcom-Hotel engcom-Hotel moved this from Testing in Progress to On Hold in Community Dashboard Feb 1, 2024
@engcom-Bravo
Copy link
Contributor

Hi,

All the required changes are done and working with Engineering Manager to speed up. Delivery is aligned for Oct Release.

Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: Setup Issue: needs update Additional information is require, waiting for response Partner: TechDivision partners-contribution Pull Request is created by Magento Partner Priority: P3 May be fixed according to the position in the backlog. Progress: on hold Project: Community Picked PRs upvoted by the community Release Line: 2.4 Triage: Dev.Experience Issue related to Developer Experience and needs help with Triage to Confirm or Reject it
Projects
Development

Successfully merging this pull request may close these issues.

[Issue] Set default collation to utf8mb4