Details

    • Story Points:
      3
    • Transition Due Date:
    • Parent Initiative:
      D2IQ-52727 - [DC/OS] Enhance the DC/OS Testing Utility Library to enable Local Development
    • Product (inherited):
      DC/OS

      Description

      It appears that there are inconsistent default locales set on TeamCity agents.
      This causes issues when, rarely, the encoding used by Python's open() builtin is not UTF-8.

      This has multiple symptoms:

      • DCOS-46108 - There were problems when minidcos was used and required UTF-8 as the default locale
      • A recent build of E2E tests here with the following traceback:
      [06:48:23][Step 2/3]   Running setup.py install for halo: started
      [06:48:23][Step 2/3]     Running setup.py install for halo: finished with status 'error'
      [06:48:23][Step 2/3]     Complete output from command /teamcity/work/2a2d8f9cffdf706b/env/bin/python3.5 -u -c "import setuptools, tokenize;__file__='/teamcity/temp/buildTmp/pip-install-p9azjthy/halo/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /teamcity/temp/buildTmp/pip-record-j_yev64m/install-record.txt --single-version-externally-managed --compile --install-headers /teamcity/work/2a2d8f9cffdf706b/env/include/site/python3.5/halo:
      [06:48:23][Step 2/3]     Traceback (most recent call last):
      [06:48:23][Step 2/3]       File "<string>", line 1, in <module>
      [06:48:23][Step 2/3]       File "/teamcity/temp/buildTmp/pip-install-p9azjthy/halo/setup.py", line 10, in <module>
      [06:48:23][Step 2/3]         long_description = infile.read()
      [06:48:23][Step 2/3]       File "/usr/lib/python3.5/encodings/ascii.py", line 26, in decode
      [06:48:23][Step 2/3]         return codecs.ascii_decode(input, self.errors)[0]
      [06:48:23][Step 2/3]     UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 3604: ordinal not in range(128)
      

      This happened because a dependency required a particular locale to be set: https://github.com/manrajgrover/halo/issues/124.

      Instead - we should explicitly set the locale of the agents, probably in TeamCity parameters, as appropriate.

        Attachments

          Activity

            People

            • Assignee:
              cartergawron Carter Gawron
              Reporter:
              adamdangoor Adam Dangoor (Inactive)
              Team:
              Dev Prod Team
              Watchers:
              Adam Dangoor (Inactive), Branden Rolston, Carter Gawron, Charles Provencher, Daniel Baker, Deepak Goel, Gastón Kleiman (Inactive), Gauri Powale, Gilbert Song, Greg Mann, Gustav Paul, Jan-Philip Gehrcke (Inactive), Jonathan Giddy, Julian Gieseke, Mergebot, Orlando Hohmeier (Inactive), Patrick Crews (Inactive), Philip Norman (Inactive), Senthil Kumaran, Sergey Urbanovich (Inactive), Till Toenshoff, Tim Weidner (Inactive)
            • Watchers:
              22 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: