プロジェクト

全般

プロフィール

Vote #80321

完了

Add test for 4 byte characters (emoji) support

Admin Redmine さんが約4年前に追加. 約4年前に更新.

ステータス:
Closed
優先度:
通常
担当者:
-
カテゴリ:
Code cleanup/refactoring_30
対象バージョン:
開始日:
2022/05/09
期日:
進捗率:

0%

予定工数:
category_id:
30
version_id:
152
issue_org_id:
32054
author_id:
107353
assigned_to_id:
332
comments:
5
status_id:
5
tracker_id:
3
plus1:
0
affected_version:
closed_on:
affected_version_id:
ステータス-->[Closed]

説明

In #31921 was added proper support for 4 byte characters (emoji) for new installations with MySQL as database.

I proposed to have a test for this case, but we're worried that the test will broke the CI server.

The scope of this ticket is to fix the CI server if the MySQL is not already configured properly by recreating the database with utf8mb4 encoding.


journals

--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
I have already added Emoji test (r19699).
git_urf8 test repository is not extracted due to this.

https://www.redmine.org/builds/logs/build_trunk_mysql_ruby-2.6_1044.html
<pre>
+ PATH=/var/lib/jenkins/ruby/ruby-2.6/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:
/usr/games SCMS=subversion,git,mercurial,filesystem,bazaar,cvs
bundle exec rake ci:about ci:setup db:environment:set RAILS_ENV=test
</pre>
--------------------------------------------------------------------------------
Marius BALTEANU wrote:
> I proposed to have a test for this case, but we're worried that the test will broke the CI server.

I think we can avoid errors occurring on the CI server by adding the following check at the beginning of the test.

<pre><code class="ruby">
skip if Redmine::Database.mysql? && !is_mysql_utf8mb4
</code></pre>

I will commit attachment:test_for_emoji_support-v2.patch soon.
--------------------------------------------------------------------------------
Committed the patch. Thank you.
--------------------------------------------------------------------------------


related_issues

relates,Closed,31921,Changes to properly support 4 byte characters (emoji) when database is MySQL

Admin Redmine さんが約4年前に更新

  • カテゴリCode cleanup/refactoring_30 にセット
  • 対象バージョン4.2.0_152 にセット

他の形式にエクスポート: Atom PDF

いいね!0
いいね!0