[i-g-t] gitlab-CI: Force a UTF-8 local

Submitted by Daniel Vetter on Dec. 7, 2018, 2 p.m.

Details

Message ID 20181207140010.25148-1-daniel.vetter@ffwll.ch
State Accepted
Series "gitlab-CI: Force a UTF-8 local"
Commit a260cab988aef89dfe24e0dcfd13345cce600108
Headers show

Commit Message

Daniel Vetter Dec. 7, 2018, 2 p.m.
python is brittle otherwise and loves to just blow up. Especially
when you have commits with non-ASCII characters, which gitlab CI
injects into the docker env.

Strangely we've only seen this go boom on the ninja test target
in the arm64 cross-compile. For paranoia roll it out everywhere.

v2: gitlab-ci has global variables (Petri)

Cc: Petri Latvala <petri.latvala@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
---
 .gitlab-ci.yml | 1 +
 1 file changed, 1 insertion(+)

Patch hide | download patch | download mbox

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index efd01be0ea07..776c62788a90 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -10,6 +10,7 @@  variables:
     -Dbuild_tests=true
     -Dbuild_runner=true
     -Dwith_libunwind=true
+  LANG: "C.UTF-8"
 
 stages:
   - containers

Comments

Jani Nikula Dec. 11, 2018, 2:45 p.m.
On Fri, 07 Dec 2018, Daniel Vetter <daniel.vetter@ffwll.ch> wrote:
> python is brittle otherwise and loves to just blow up. Especially
> when you have commits with non-ASCII characters, which gitlab CI
> injects into the docker env.

Lots of words but I'm not sure what you're saying. :p

> Strangely we've only seen this go boom on the ninja test target
> in the arm64 cross-compile. For paranoia roll it out everywhere.

Failure mode? Logs?

BR,
Jani.

>
> v2: gitlab-ci has global variables (Petri)
>
> Cc: Petri Latvala <petri.latvala@intel.com>
> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
> ---
>  .gitlab-ci.yml | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
> index efd01be0ea07..776c62788a90 100644
> --- a/.gitlab-ci.yml
> +++ b/.gitlab-ci.yml
> @@ -10,6 +10,7 @@ variables:
>      -Dbuild_tests=true
>      -Dbuild_runner=true
>      -Dwith_libunwind=true
> +  LANG: "C.UTF-8"
>  
>  stages:
>    - containers