Skip to content

Commit b04d38b

Browse files
authored
Fix commit message UTF issue for deploy_gallery shard too (flutter#31885)
1 parent 11de99f commit b04d38b

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

.cirrus.yml

+14-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,20 @@ task:
4141
SHARD: deploy_gallery
4242
GOOGLE_DEVELOPER_SERVICE_ACCOUNT_ACTOR_FASTLANE: ENCRYPTED[d9ac1462c3c556fc2f8165c9d5566a16497d8ebc38a50357f7f3abf136b7f83e1d1d76dde36fee356cb0f9ebf7a89346]
4343
ANDROID_GALLERY_UPLOAD_KEY: ENCRYPTED[0f2aca35f05b26add5d9edea2a7449341269a2b7e22d5c667f876996e2e8bc44ff1369431ebf73b7c5581fd95d0e5902]
44-
test_script: ./dev/bots/deploy_gallery.sh
44+
test_script:
45+
# Unsetting CIRRUS_CHANGE_MESSAGE and CIRRUS_COMMIT_MESSAGE as they
46+
# might include non-ASCII characters which makes Gradle crash.
47+
# See: https://github.com/flutter/flutter/issues/24935
48+
# This is a temporary workaround until we figure how to properly configure
49+
# a UTF8 locale on Cirrus (or until the Gradle bug is fixed).
50+
# TODO(amirh): Set the locale to UTF8.
51+
- echo "$CIRRUS_CHANGE_MESSAGE" > /tmp/cirrus_change_message.txt
52+
- echo "$CIRRUS_COMMIT_MESSAGE" > /tmp/cirrus_commit_message.txt
53+
- export CIRRUS_CHANGE_MESSAGE=""
54+
- export CIRRUS_COMMIT_MESSAGE=""
55+
- ./dev/bots/deploy_gallery.sh
56+
- export CIRRUS_CHANGE_MESSAGE=`cat /tmp/cirrus_change_message.txt`
57+
- export CIRRUS_COMMIT_MESSAGE=`cat /tmp/cirrus_commit_message.txt`
4558
- name: analyze
4659
test_script:
4760
- dart --enable-asserts ./dev/bots/analyze.dart

0 commit comments

Comments
 (0)