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

ExecError: process "python -m pip install ." did not complete successfully: exit code: 1 #29147

Closed
sentry-io bot opened this issue Aug 7, 2023 · 0 comments · Fixed by #29156
Closed

Comments

@sentry-io
Copy link

sentry-io bot commented Aug 7, 2023

The following error is correctly handled in the pipeline but leads to Sentry noise and false negative problem in dagger pipeline execution as a ExecError is raised. We should handle it differently to not raise ExecError.

Sentry Issue: CONNECTORS-CI-1T

TransportQueryError: {'message': 'process "python -m pip install ." did not complete successfully: exit code: 1', 'locations': [{'line': 37, 'column': 31}], 'path': ['pipeline', 'container', 'from', 'withExec', 'withExec', 'withMountedCache', 'withExec', 'withExec', 'withFile', 'withFile', 'withMountedDirectory', 'withWorkdir', 'withMountedDirectory', 'withExec', 'file'], 'extensions': {'_type': 'EXEC_ERROR', 'cmd': ['python', '-m', 'pip', 'install', '.'], 'exitCode': 1, 'stderr': 'ERROR: Command errored out with exit status 1:\n   command: /usr/local/bin/python /usr/local/lib/python3.10/site-packages/pip/_vendor/pep517/in_process/_in_process.py get_requires_for_build_wheel /tmp/tmpoeycs541\n       cwd: /tmp/pip-install-xmcdc1m6/pyyaml_1fa87a8221884f79b8f29ab66d90b6cf\n  Complete output (62 lines):\n  /tmp/pip-build-env-gh5mtt9j/overlay/lib/python3.10/site-packages/setuptools/config/setupcfg.py:293: _DeprecatedConfig: Deprecated config in `setup.cfg`\n  !!\n  \n          ********************************************************...
  File "dagger/api/base.py", line 244, in _handle_execute
    yield
  File "dagger/api/base.py", line 157, in execute
    result = await self.session.execute(query)
  File "gql/client.py", line 1231, in execute
    raise TransportQueryError(

ExecError: process "python -m pip install ." did not complete successfully: exit code: 1
(9 additional frame(s) were not displayed)
...
  File "pipelines/bases.py", line 143, in run_with_completion
    result = await self._run(*args, **kwargs)
  File "pipelines/tests/python_connectors.py", line 71, in _run
    connector_under_test = await environments.with_python_connector_installed(self.context)
  File "pipelines/actions/environments.py", line 367, in with_python_connector_installed
    return await with_installed_python_package(
  File "pipelines/actions/environments.py", line 317, in with_installed_python_package
    if await get_file_contents(container, "requirements.txt"):
  File "pipelines/utils.py", line 114, in get_file_contents
    return await container.file(path).contents()

Step failed with an unexpected dagger error
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants