Skip to content
This repository has been archived by the owner on Aug 18, 2020. It is now read-only.

[DEVOPS-936] Fix tests.stylishHaskell output when files are utf-8 #3189

Merged
merged 2 commits into from
Jul 5, 2018

Conversation

rvl
Copy link
Contributor

@rvl rvl commented Jul 4, 2018

Description

stylish-haskell needs to be run under a utf-8 locale. Otherwise it will crash leaving a partially written file.

Linked issue

https://iohk.myjetbrains.com/youtrack/issue/DEVOPS-936

Type of change

  • CI scripts

QA Steps

cat $(nix-build release.nix -A tests.stylishHaskell)/stylish.diff

rvl added 2 commits July 4, 2018 23:39
When stylish-haskell is run under the C locale processing files with
unicode characters it crashes with the error:

    commitBuffer: invalid argument (invalid character)

So force the locale to be a UTF-8 one.
Use plain old diff because git diff records file mode changes which
produces warnings when the patch is applied.
@disassembler
Copy link
Contributor

I'm assuming stylish is failing on purpose because of the changes made. Looks good to me, lets pull that breakage out and merge!

@rvl rvl force-pushed the devops-936-fix-stylish-script branch from e5d2efe to 8ac1594 Compare July 5, 2018 00:07
@rvl
Copy link
Contributor Author

rvl commented Jul 5, 2018

OK, yes I removed the commit which was intentionally breaking stylish-haskell. ⛄

@rvl rvl merged commit ef8d1eb into develop Jul 5, 2018
@rvl rvl deleted the devops-936-fix-stylish-script branch July 5, 2018 00:21
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants