<#12589 `test_fails_ctrl_c_ffi` from `exception_si...
# github-notifications
q
#12589 `test_fails_ctrl_c_ffi` from `exception_sink_integration_test.py` is flaky Issue created by Eric-Arellano Seen on macOS on
main
branch.
Copy code
=================================== FAILURES ===================================
150
____________________________ test_fails_ctrl_c_ffi _____________________________
151

152
tmp_path = PosixPath('/private/tmp/pytest-of-runner/pytest-0/test_fails_ctrl_c_ffi0')
153

154
    def test_fails_ctrl_c_ffi(tmp_path: Path) -> None:
155
        pants_run = run_pants_with_workdir(
156
            command=lifecycle_stub_cmdline(),
157
            workdir=tmp_path.as_posix(),
158
>           extra_env={"_RAISE_KEYBOARD_INTERRUPT_FFI": "1"},
159
        )
160

161
src/python/pants/base/exception_sink_integration_test.py:138: 
162
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
163
src/python/pants/testutil/pants_integration_test.py:198: in run_pants_with_workdir
164
    return handle.join(stdin_data=stdin_data, tee_output=tee_output)
165
src/python/pants/testutil/pants_integration_test.py:81: in join
166
    render_logs(self.workdir)
167
src/python/pants/testutil/pants_integration_test.py:302: in render_logs
168
    for line in _read_log(filename):
169
src/python/pants/testutil/pants_integration_test.py:316: in _read_log
170
    for line in f:
171
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
172

173
self = <encodings.utf_8.IncrementalDecoder object at 0x108946150>
174
input = b'\x02\x00\x00\xe8\x00\x00\x00\x00\xe8\x00\x00\x00\x00H\x8b\x05\x00\x00\x00\x00H\x8b0H\x8d=\xb3\x00\x00\x00L\x89\xeaL\...M\x89\xe01\xc0\xe8\x00\x00\x00\x00H\x8d=\xdc\x00\x00\x00H\x8d\x15B\x01\x00\x00\xbe=\x00\x00\x001\xc9E1\xc0\xe8\x00\x00'
175
final = False
176

177
    def decode(self, input, final=False):
178
        # decode input (taking the buffer into account)
179
        data = self.buffer + input
180
>       (result, consumed) = self._buffer_decode(data, self.errors, final)
181
E       UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe8 in position 3: invalid continuation byte
182

183
/Users/runner/hostedtoolcache/Python/3.7.11/x64/lib/python3.7/codecs.py:322: UnicodeDecodeError
184
----------------------------- Captured stdout call -----------------------------
185
pants.log +++ 
186
- generated xml file: /private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/process-executionFy3JKj/src.python.pants.base.exception_sink_integration_test.py.exception_sink_integration_test.xml -
187

188

189
=========================== short test summary info ============================
190
FAILED src/python/pants/base/exception_sink_integration_test.py::test_fails_ctrl_c_ffi
191
=================== 1 failed, 3 passed, 1 skipped in 38.08s ====================
pantsbuild/pants