Skip to content

Commit 0619d20

Browse files
committed
Include LANG in environment variables
This works around a locale problem on the Github runner, which uses C.UTF-8 as its default. When that is passed to Puppet/Ruby over Bolt/SSH, Puppet can implode. Set LANG to en_US.UTF-8 to avoid this Puppet bug.
1 parent 1f0d9a1 commit 0619d20

File tree

3 files changed

+15
-3
lines changed

3 files changed

+15
-3
lines changed

.github/workflows/test-add-replica.yaml

+5-1
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ jobs:
3333
BOLT_GEM: true
3434
BOLT_DISABLE_ANALYTICS: true
3535
BUILDEVENT_FILE: '../buildevents.txt'
36+
LANG: 'en_US.UTF-8'
3637
strategy:
3738
fail-fast: false
3839
matrix:
@@ -72,12 +73,15 @@ jobs:
7273
ruby-version: "2.7"
7374
bundler-cache: true
7475

75-
- name: "Print bundle environment"
76+
- name: "Print bundle and environment info"
7677
if: ${{ github.repository_owner == 'puppetlabs' }}
7778
run: |
7879
echo ::group::info:bundler
7980
buildevents cmd $TRACE_ID $STEP_ID 'bundle env' -- bundle env
8081
echo ::endgroup::
82+
echo ::group::info:environment
83+
buildevents cmd $TRACE_ID $STEP_ID 'env' -- env
84+
echo ::endgroup::
8185
8286
- name: "Honeycomb: Record environment setup time"
8387
if: ${{ always() }}

.github/workflows/test-install-matrix.yaml

+5-1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ jobs:
1919
BOLT_GEM: true
2020
BOLT_DISABLE_ANALYTICS: true
2121
BUILDEVENT_FILE: '../buildevents.txt'
22+
LANG: 'en_US.UTF-8'
2223
strategy:
2324
fail-fast: false
2425
matrix:
@@ -54,12 +55,15 @@ jobs:
5455
ruby-version: "2.7"
5556
bundler-cache: true
5657

57-
- name: "Print bundle environment"
58+
- name: "Print bundle and environment info"
5859
if: ${{ github.repository_owner == 'puppetlabs' }}
5960
run: |
6061
echo ::group::info:bundler
6162
buildevents cmd $TRACE_ID $STEP_ID 'bundle env' -- bundle env
6263
echo ::endgroup::
64+
echo ::group::info:environment
65+
buildevents cmd $TRACE_ID $STEP_ID 'env' -- env
66+
echo ::endgroup::
6367
6468
- name: "Honeycomb: Record environment setup time"
6569
if: ${{ always() }}

.github/workflows/test-install.yaml

+5-1
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ jobs:
3333
BOLT_GEM: true
3434
BOLT_DISABLE_ANALYTICS: true
3535
BUILDEVENT_FILE: '../buildevents.txt'
36+
LANG: 'en_US.UTF-8'
3637
strategy:
3738
fail-fast: false
3839
matrix:
@@ -72,12 +73,15 @@ jobs:
7273
ruby-version: "2.7"
7374
bundler-cache: true
7475

75-
- name: "Print bundle environment"
76+
- name: "Print bundle and environment info"
7677
if: ${{ github.repository_owner == 'puppetlabs' }}
7778
run: |
7879
echo ::group::info:bundler
7980
buildevents cmd $TRACE_ID $STEP_ID 'bundle env' -- bundle env
8081
echo ::endgroup::
82+
echo ::group::info:environment
83+
buildevents cmd $TRACE_ID $STEP_ID 'env' -- env
84+
echo ::endgroup::
8185
8286
- name: "Honeycomb: Record environment setup time"
8387
if: ${{ always() }}

0 commit comments

Comments
 (0)