Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TestBuildLocalDistsWithCtypesNativeSources.test_ctypes_cpp_dist is flaky #6886

Closed
Eric-Arellano opened this issue Dec 7, 2018 · 1 comment

Comments

@Eric-Arellano
Copy link
Contributor

From the file pants_test/backend/python/tasks/test_ctypes.

Looks like networking flakiness?

                     ==================== FAILURES ====================
                      TestBuildLocalDistsWithCtypesNativeSources.test_ctypes_cpp_dist 
                     
                     self = <pants_test.backend.python.tasks.test_ctypes.TestBuildLocalDistsWithCtypesNativeSources testMethod=test_ctypes_cpp_dist>
                     
                         def test_ctypes_cpp_dist(self):
                           platform_specific_dist = self.target_dict['platform_specific_ctypes_cpp_dist']
                           context, synthetic_target, snapshot_version = self._create_distribution_synthetic_target(
                     >       platform_specific_dist, extra_targets=[self.target_dict['ctypes_cpp_library']])
                     
                     .pants.d/pyprep/sources/2504840b97e890c0e5d6f0cc457ca9cba597537a/pants_test/backend/python/tasks/test_ctypes.py:114: 
                     _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
                     .pants.d/pyprep/sources/2504840b97e890c0e5d6f0cc457ca9cba597537a/pants_test/backend/python/tasks/util/build_local_dists_test_base.py:128: in _create_distribution_synthetic_target
                         tsk.execute()
                     .pants.d/pyprep/sources/2504840b97e890c0e5d6f0cc457ca9cba597537a/pants/backend/native/tasks/native_compile.py:89: in execute
                         compile_request = self._make_compile_request(vt, deps, external_libs_product)
                     .pants.d/pyprep/sources/2504840b97e890c0e5d6f0cc457ca9cba597537a/pants/backend/native/tasks/native_compile.py:177: in _make_compile_request
                         compiler=self._compiler,
                     .pants.d/pyprep/sources/2504840b97e890c0e5d6f0cc457ca9cba597537a/pants/util/memo.py:118: in memoize
                         result = func(*args, **kwargs)
                     .pants.d/pyprep/sources/2504840b97e890c0e5d6f0cc457ca9cba597537a/pants/backend/native/tasks/native_compile.py:157: in _compiler
                         return self.get_compiler()
                     .pants.d/pyprep/sources/2504840b97e890c0e5d6f0cc457ca9cba597537a/pants/backend/native/tasks/cpp_compile.py:35: in get_compiler
                         return self._request_single(LLVMCppToolchain, self._native_toolchain).cpp_toolchain.cpp_compiler
                     .pants.d/pyprep/sources/2504840b97e890c0e5d6f0cc457ca9cba597537a/pants/backend/native/tasks/native_task.py:105: in _request_single
                         return self.context._scheduler.product_request(product, [subject])[0]
                     .pants.d/pyprep/sources/2504840b97e890c0e5d6f0cc457ca9cba597537a/pants/engine/scheduler.py:522: in product_request
                         self._trace_on_error(unique_exceptions, request)
                     _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
                     
                     self = <pants.engine.scheduler.SchedulerSession object at 0x7f4a99c93f90>
                     unique_exceptions = (BinaryResolutionError(u'Error resolving binary request BinaryRequest(supportdi...n: error("(104, \\\'ECONNRESET\\\')",)\', error("(104, \'ECONNRESET\')",)))',)),)
                     request = ExecutionRequest(roots=((<pants.backend.native.subsystems.native_toolchain.Nat...nt.LLVMCppToolchain'>),), native=<cdata 'struct ExecutionRequest *' 0x25133b0>)
                     
                         def _trace_on_error(self, unique_exceptions, request):
                           exception_noun = pluralize(len(unique_exceptions), 'Exception')
                           if self._scheduler.include_trace_on_error:
                             cumulative_trace = '\n'.join(self.trace(request))
                             raise ExecutionError(
                               '{} encountered:\n{}'.format(exception_noun, cumulative_trace),
                     >         unique_exceptions,
                             )
                     E       ExecutionError: 1 Exception encountered:
                     E       Computing Select(<pants.backend.native.subsystems.native_toolchain.NativeToolchain object at 0x7f4a900c9390>, =LLVMCppToolchain)
                     E         Computing Task(select_llvm_cpp_toolchain, <pants.backend.native.subsystems.native_toolchain.NativeToolchain object at 0x7f4a900c9390>, =LLVMCppToolchain, true)
                     E           Computing Task(select_gcc_install_location, <pants.backend.native.subsystems.binaries.gcc.GCC object at 0x7f4a90039510>, =GCCInstallLocationForLLVM, true)
                     E             Throw((u'Error resolving binary request BinaryRequest(supportdir=bin/gcc, version=7.3.0, name=gcc, platform_dependent=True, external_url_generator=None, archiver=<pants.fs.archive.TarArchiver object at 0x7f4a9ae4df50>): Failed to fetch gcc.tar.gz binary from any source: (Failed to fetch binary from https://binaries.pantsbuild.org/bin/gcc/linux/x86_64/7.3.0/gcc.tar.gz: (\'Connection broken: error("(104, \\\'ECONNRESET\\\')",)\', error("(104, \'ECONNRESET\')",)))', BinaryNotFound(u'Failed to fetch gcc.tar.gz binary from any source: (Failed to fetch binary from https://binaries.pantsbuild.org/bin/gcc/linux/x86_64/7.3.0/gcc.tar.gz: (\'Connection broken: error("(104, \\\'ECONNRESET\\\')",)\', error("(104, \'ECONNRESET\')",)))',)))
                     E               Traceback (most recent call last):
                     E                 File "/home/travis/build/pantsbuild/pants/.pants.d/pyprep/sources/2504840b97e890c0e5d6f0cc457ca9cba597537a/pants/engine/native.py", line 261, in call
                     E                   val = func(*args)
                     E                 File "/home/travis/build/pantsbuild/pants/.pants.d/pyprep/sources/2504840b97e890c0e5d6f0cc457ca9cba597537a/pants/backend/native/subsystems/native_toolchain.py", line 114, in select_gcc_install_location
                     E                   return GCCInstallLocationForLLVM(gcc.select())
                     E                 File "/home/travis/build/pantsbuild/pants/.pants.d/pyprep/sources/2504840b97e890c0e5d6f0cc457ca9cba597537a/pants/util/memo.py", line 118, in memoize
                     E                   result = func(*args, **kwargs)
                     E                 File "/home/travis/build/pantsbuild/pants/.pants.d/pyprep/sources/2504840b97e890c0e5d6f0cc457ca9cba597537a/pants/binaries/binary_tool.py", line 129, in select
                     E                   return self._select_for_version(self.version(context))
                     E                 File "/home/travis/build/pantsbuild/pants/.pants.d/pyprep/sources/2504840b97e890c0e5d6f0cc457ca9cba597537a/pants/binaries/binary_tool.py", line 180, in _select_for_version
                     E                   return self._binary_util.select(binary_request)
                     E                 File "/home/travis/build/pantsbuild/pants/.pants.d/pyprep/sources/2504840b97e890c0e5d6f0cc457ca9cba597537a/pants/binaries/binary_util.py", line 423, in select
                     E                   raise self.BinaryResolutionError(binary_request, e)
                     E               BinaryResolutionError: (u'Error resolving binary request BinaryRequest(supportdir=bin/gcc, version=7.3.0, name=gcc, platform_dependent=True, external_url_generator=None, archiver=<pants.fs.archive.TarArchiver object at 0x7f4a9ae4df50>): Failed to fetch gcc.tar.gz binary from any source: (Failed to fetch binary from https://binaries.pantsbuild.org/bin/gcc/linux/x86_64/7.3.0/gcc.tar.gz: (\'Connection broken: error("(104, \\\'ECONNRESET\\\')",)\', error("(104, \'ECONNRESET\')",)))', BinaryNotFound(u'Failed to fetch gcc.tar.gz binary from any source: (Failed to fetch binary from https://binaries.pantsbuild.org/bin/gcc/linux/x86_64/7.3.0/gcc.tar.gz: (\'Connection broken: error("(104, \\\'ECONNRESET\\\')",)\', error("(104, \'ECONNRESET\')",)))',))
                     
                     .pants.d/pyprep/sources/2504840b97e890c0e5d6f0cc457ca9cba597537a/pants/engine/scheduler.py:483: ExecutionError
@Eric-Arellano Eric-Arellano changed the title TestBuildLocalDistsWithCtypesNativeSources.test_ctypes_cpp_dist is Flakey TestBuildLocalDistsWithCtypesNativeSources.test_ctypes_cpp_dist is flaky Mar 31, 2019
@Eric-Arellano
Copy link
Contributor Author

Test will be deleted soon in Pants 2.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants