Open timnoinc opened 1 year ago
@timnoinc Have you been able to solve this for the CI?
@timnoinc @kvnn Are you using the serverless github action by any chance?
I found that kept hitting silent errors when usin dockerizePip but also was using the above action. That action was erroring with Node 18 which was mismatched from the version I'd installed within setup-node. On closer inspection that actions Dockerfile is using Node 18 and Python 3.10.
Replacing it with an action that installs serverless seems to have resolved my issues:
- run: npm install -g serverless
- name: serverless deploy
run: "serverless plugin install -n serverless-python-requirements && serverless deploy --stage=prod --verbose"
Are you certain it's a bug?
Are you using the latest plugin release?
Is there an existing issue for this?
Issue description
potentially similar to https://github.com/serverless/serverless-python-requirements/issues/785
When 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.It'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.
I need to package individually for size reasons. I need pip to run in docker because it's compiling science packages.
Service configuration (serverless.yml) content
Command name and used flags
package --verbose -c serverless.yml -p dist --stage qa
Command output
Environment information