Title: Silent failure with dockerizePip on CI · Issue #801 · serverless/serverless-python-requirements · GitHub
Open Graph Title: Silent failure with dockerizePip on CI · Issue #801 · serverless/serverless-python-requirements
X Title: Silent failure with dockerizePip on CI · Issue #801 · serverless/serverless-python-requirements
Description: Are you certain it's a bug? Yes, it looks like a bug Are you using the latest plugin release? Yes, I'm using the latest plugin release Is there an existing issue for this? I have searched existing issues, it hasn't been reported yet Issu...
Open Graph Description: Are you certain it's a bug? Yes, it looks like a bug Are you using the latest plugin release? Yes, I'm using the latest plugin release Is there an existing issue for this? I have searched existing ...
X Description: Are you certain it's a bug? Yes, it looks like a bug Are you using the latest plugin release? Yes, I'm using the latest plugin release Is there an existing issue for this? I have searched e...
Opengraph URL: https://github.com/serverless/serverless-python-requirements/issues/801
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Silent failure with dockerizePip on CI","articleBody":"### Are you certain it's a bug?\n\n- [X] Yes, it looks like a bug\n\n### Are you using the latest plugin release?\n\n- [X] Yes, I'm using the latest plugin release\n\n### Is there an existing issue for this?\n\n- [X] I have searched existing issues, it hasn't been reported yet\n\n### Issue description\n\npotentially similar to https://github.com/serverless/serverless-python-requirements/issues/785\r\n\r\nWhen I do `serverless package --verbose -c serverless.yml -p dist --stage qa`, it works locally, but in Github Actions and in Jenkins the docker command errors out but doesn't seem to include any error message. \r\n\r\nIt's clear that something has gone wrong, but I haven't been able to find any log files anywhere to find out what. I've removed a good chunk of the functions and configuration in my serverless.yml, but it still happens consistently with this serverless.yml.\r\n\r\nI need to package individually for size reasons. I need pip to run in docker because it's compiling science packages.\n\n### Service configuration (serverless.yml) content\n\n```yaml\nservice: projectName \r\nframeworkVersion: '3'\r\n\r\nprovider:\r\n name: aws\r\n runtime: python3.10\r\n environment:\r\n S3_BUCKET: projectBucket\r\n DEBUG: true\r\n\r\nplugins:\r\n - serverless-python-requirements\r\n # - serverless-step-functions\r\n\r\ncustom:\r\n pythonRequirements:\r\n dockerizePip: true\r\n\r\nfunctions:\r\n Postback:\r\n module: postback\r\n handler: postback.lambda_handler\r\n\r\npackage:\r\n individually: true\r\n exclude:\r\n - .git/**\r\n - node_modules/**\n```\n\n\n### Command name and used flags\n\npackage --verbose -c serverless.yml -p dist --stage qa\n\n### Command output\n\n```shell\nRun serverless/github-action@v3.2\r\n/usr/bin/docker run --name e519d1f229f1572e3f48b3a1f7801d30a01c33_ab7ec9 --label e519d1 --workdir /github/workspace --rm -e \"SLACK_WEBHOOK_URL\" -e \"DEPLOY_ENVIRONMENT\" -e \"DEPLOY_DESCRIPTION\" -e \"DEPLOYMENT_ID\" -e \"AWS_DEFAULT_REGION\" -e \"AWS_REGION\" -e \"AWS_ACCESS_KEY_ID\" -e \"AWS_SECRET_ACCESS_KEY\" -e \"AWS_SESSION_TOKEN\" -e \"NPM_CONFIG_USERCONFIG\" -e \"NODE_AUTH_TOKEN\" -e \"pythonLocation\" -e \"PKG_CONFIG_PATH\" -e \"Python_ROOT_DIR\" -e \"Python2_ROOT_DIR\" -e \"Python3_ROOT_DIR\" -e \"LD_LIBRARY_PATH\" -e \"INPUT_ARGS\" -e \"HOME\" -e \"GITHUB_JOB\" -e \"GITHUB_REF\" -e \"GITHUB_SHA\" -e \"GITHUB_REPOSITORY\" -e \"GITHUB_REPOSITORY_OWNER\" -e \"GITHUB_REPOSITORY_OWNER_ID\" -e \"GITHUB_RUN_ID\" -e \"GITHUB_RUN_NUMBER\" -e \"GITHUB_RETENTION_DAYS\" -e \"GITHUB_RUN_ATTEMPT\" -e \"GITHUB_REPOSITORY_ID\" -e \"GITHUB_ACTOR_ID\" -e \"GITHUB_ACTOR\" -e \"GITHUB_TRIGGERING_ACTOR\" -e \"GITHUB_WORKFLOW\" -e \"GITHUB_HEAD_REF\" -e \"GITHUB_BASE_REF\" -e \"GITHUB_EVENT_NAME\" -e \"GITHUB_SERVER_URL\" -e \"GITHUB_API_URL\" -e \"GITHUB_GRAPHQL_URL\" -e \"GITHUB_REF_NAME\" -e \"GITHUB_REF_PROTECTED\" -e \"GITHUB_REF_TYPE\" -e \"GITHUB_WORKFLOW_REF\" -e \"GITHUB_WORKFLOW_SHA\" -e \"GITHUB_WORKSPACE\" -e \"GITHUB_ACTION\" -e \"GITHUB_EVENT_PATH\" -e \"GITHUB_ACTION_REPOSITORY\" -e \"GITHUB_ACTION_REF\" -e \"GITHUB_PATH\" -e \"GITHUB_ENV\" -e \"GITHUB_STEP_SUMMARY\" -e \"GITHUB_STATE\" -e \"GITHUB_OUTPUT\" -e \"RUNNER_OS\" -e \"RUNNER_ARCH\" -e \"RUNNER_NAME\" -e \"RUNNER_ENVIRONMENT\" -e \"RUNNER_TOOL_CACHE\" -e \"RUNNER_TEMP\" -e \"RUNNER_WORKSPACE\" -e \"ACTIONS_RUNTIME_URL\" -e \"ACTIONS_RUNTIME_TOKEN\" -e \"ACTIONS_CACHE_URL\" -e \"ACTIONS_ID_TOKEN_REQUEST_URL\" -e \"ACTIONS_ID_TOKEN_REQUEST_TOKEN\" -e \"ACTIONS_RESULTS_URL\" -e GITHUB_ACTIONS=true -e CI=true -v \"/var/run/docker.sock\":\"/var/run/docker.sock\" -v \"/home/runner/work/_temp/_github_home\":\"/github/home\" -v \"/home/runner/work/_temp/_github_workflow\":\"/github/workflow\" -v \"/home/runner/work/_temp/_runner_file_commands\":\"/github/file_commands\" -v \"/home/runner/work/projectName/projectName\":\"/github/workspace\" e519d1:f229f1572e3f48b3a1f7801d30a01c33 package --verbose -c serverless.yml -p dist --stage qa --param=\"deployDescription=develop-latest\"\r\nRunning \"serverless\" from node_modules\r\n\r\nPackaging projectName for stage qa (us-east-1)\r\n\r\nGenerated requirements from /github/workspace/postback/requirements.txt in /github/workspace/.serverless/postback/requirements.txt\r\nInstalling requirements from \"/github/home/.cache/serverless-python-requirements/e29a8fbd0127f5ea361fb998fc6a150bec13d9d834f2dad4fb4e6a5d8497bb71_x86_64_slspyc/requirements.txt\"\r\nDocker Image: public.ecr.aws/sam/build-python3.10:latest-x86_64\r\nUsing download cache directory /github/home/.cache/serverless-python-requirements/downloadCacheslspyc\r\nRunning docker run --rm -v /github/home/.cache/serverless-python-requirements/e29a8fbd0127f5ea361fb998fc6a150bec13d9d834f2dad4fb4e6a5d8497bb71_x86_64_slspyc\\:/var/task\\:z -v /github/home/.cache/serverless-python-requirements/downloadCacheslspyc\\:/var/useDownloadCache\\:z public.ecr.aws/sam/build-python3.10\\:latest-x86_64 /bin/sh -c 'chown -R 0\\\\:0 /var/useDownloadCache && python3.10 -m pip install -t /var/task/ -r /var/task/requirements.txt --cache-dir /var/useDownloadCache && chown -R 0\\\\:0 /var/task && chown -R 0\\\\:0 /var/useDownloadCache'...\r\nEnvironment: linux, node 18.17.1, framework 3.36.0 (local) 3.36.0v (global), plugin 7.1.0, SDK 4.4.0\r\nError:\r\nDocs: docs.serverless.com\r\nSupport: forum.serverless.com\r\nBugs: github.com/serverless/serverless/issues\r\n\r\n\r\n1 deprecation found: run 'serverless doctor' for more details\r\nRunning \"docker run --rm -v /github/home/.cache/serverless-python-requirements/e29a8fbd0127f5ea361fb998fc6a150bec13d9d834f2dad4fb4e6a5d8497bb71_x86_64_slspyc:/var/task:z -v /github/home/.cache/serverless-python-requirements/downloadCacheslspyc:/var/useDownloadCache:z public.ecr.aws/sam/build-python3.10:latest-x86_64 /bin/sh -c chown -R 0\\:0 /var/useDownloadCache && python3.10 -m pip install -t /var/task/ -r /var/task/requirements.txt --cache-dir /var/useDownloadCache && chown -R 0\\:0 /var/task && chown -R 0\\:0 /var/useDownloadCache\" failed with: \"\"\n```\n\n\n### Environment information\n\n```shell\nRunning \"serverless\" from node_modules\r\nFramework Core: 3.36.0 (local) 3.36.0 (global)\r\nPlugin: 7.1.0\r\nSDK: 4.4.0\r\n\r\n`\"serverless-python-requirements\": \"^6.0.1\",` in my package.json\n```\n","author":{"url":"https://github.com/timnoinc","@type":"Person","name":"timnoinc"},"datePublished":"2023-11-15T21:26:07Z","url":"https://github.com/serverless/serverless-python-requirements/issues/801"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:e1b11d85-a9cd-2aa5-ccc1-36238dab5186 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D784:3D680A:4A9994:67186D:6B04553F |
| html-safe-nonce | d57f9ae391e1275e472cd2fe0ae72de32b1c0c6160ebb993a8373225fe52cda6 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENzg0OjNENjgwQTo0QTk5OTQ6NjcxODZEOjZCMDQ1NTNGIiwidmlzaXRvcl9pZCI6IjY1NjAwNzI4ODE1MDg5OTY0MTUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | f7d810880237737ac7f8df1be76069725b4e1218949e7a91681fe8cc52e50ddf |
| hovercard-subject-tag | issue:1995591680 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/serverless/serverless-python-requirements/801/issue_layout |
| twitter:image | https://opengraph.githubassets.com/f693abac1b245d194a7de20787b7bf68b3385a85913266662d0e57365f64cb23/serverless/serverless-python-requirements/issues/801 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/f693abac1b245d194a7de20787b7bf68b3385a85913266662d0e57365f64cb23/serverless/serverless-python-requirements/issues/801 |
| og:image:alt | Are you certain it's a bug? Yes, it looks like a bug Are you using the latest plugin release? Yes, I'm using the latest plugin release Is there an existing issue for this? I have searched existing ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | timnoinc |
| hostname | github.com |
| expected-hostname | github.com |
| None | 910ca0e260cfec6aff11407d8dc6a0d3a4cd381a2ec9ada56627b063426892a0 |
| turbo-cache-control | no-preview |
| go-import | github.com/serverless/serverless-python-requirements git https://github.com/serverless/serverless-python-requirements.git |
| octolytics-dimension-user_id | 13742415 |
| octolytics-dimension-user_login | serverless |
| octolytics-dimension-repository_id | 76508594 |
| octolytics-dimension-repository_nwo | serverless/serverless-python-requirements |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 76508594 |
| octolytics-dimension-repository_network_root_nwo | serverless/serverless-python-requirements |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | e086f9b7e88322eb2b41885a6ad425b215737fa5 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width