Python3.8 to Python3.11 complex project #12213
Replies: 7 comments 2 replies
-
Ok here is what I have gleamed in the few minutes between meetings
|
Beta Was this translation helpful? Give feedback.
-
Ok new problem. So I did 1-3 in previous post and am able to run 'npm run test' without issue. However I am not seeing how to run it also I noticed in the code something about the cli being removed. Which brings to mind new questions about how to test and step through it to find the issue. node bin\serverless.js --version didn't run. I also ran 'npm install; npm run pkg:build'. |
Beta Was this translation helpful? Give feedback.
-
Here is the version information, debug output, and the relevant parts of the yaml files. PS C:\Users\myusername\source\upgrade311\dataservices\ingestion_pipeline> npm install serverless@latest added 87 packages, changed 6 packages, and audited 547 packages in 15s 74 packages are looking for funding 4 vulnerabilities (2 moderate, 2 high) To address all issues, run: Run lifecycle:command:invoke: Invoke deploy × Stack dataservices-ingestion-Dev failed to deploy (0s) Error: Some samples from config that is working for 3.8 only changes have been to upgrade to latest serverless and change out runtime to python3.11
|
Beta Was this translation helpful? Give feedback.
-
I upgraded the serverless to @latest for global and redeployed original project that is python3.8 and python3.9 and it deployed without issues. I then replaced the runtimes to python3.11 and the deployment failed with the error above No file matches include / exclude patterns. The files in .serverless were the correct sizes however I do see that the layers zip files are 0 bytes. |
Beta Was this translation helpful? Give feedback.
-
To run tests for package service after cloning serverless and doing npm install |
Beta Was this translation helpful? Give feedback.
-
I had branched my code to work on the conversion and the serverless yaml files had a definition in the for a lambda that was not committed in the original branch. So when it hit the lambda definition and couldn't find the folder and python file it would crash. What would have been infinitely helpful is if the error when hit exported the function name that it was working on or something a little more meaningful. I found the issue by adding some print statements to the globby area of the package-service.js file.
|
Beta Was this translation helpful? Give feedback.
-
See last comment above. I do believe better error reporting would have saved me several hours but in the end it was my mistake. |
Beta Was this translation helpful? Give feedback.
-
Friday I started migrating our AWS Python3.8 serverless project to 3.11. The project is pretty large. About 6 months ago I split the serverless into multiple files with serverless.yaml in root a serverless folder with a file for common, lambdas, layers, step functions, and event schedules.
The project originally was setup with patterns and I thought that the new serverless used include and exclude but that was the old way so I switched it back. The issue is that either I get the error No Files to include or if I the !./** pattern I end up with all lambdas in every zip file and they are all 18M or so. I checked the old serverless with the correct patterns and the files vary in size as is appropriate from 1k to 40k.
So my first question is can you suggest resources for how I can debug the serverless frame work with my project. I think part of the issue is the fact that our project is so complex. Next question would be where would be the best spot to set a break point for the inclusion exclusion of the lambda(functions) inclusion. Also with the limited information that I can give do you think it is worth filing a bug report, I think the serverless.yaml being broken apart might be part of the issue which might make it hard for the normal serverless dev team to debug this.
One additional note when it does give me the error when I look at the packages they have the appropriate size so maybe right after that is where I would like to set a breakpoint.
I do have some light node experience and node inspector however I have not done any serverless debugging before.
I will go read documentation on contributions and other things to see if I can figure out what I need to do on my own. But if you could give some suggestions it would be appreciated.
I will make a pull request once I find the issue and correct it.
Beta Was this translation helpful? Give feedback.
All reactions