Replies: 7 comments 4 replies
-
The issue seems to be somewhere on my side, but I don't think something changed in the docker executor. The code itself is perfectly functional. Would be very appreciated for any help. I can overcome the issue with moving import to function local scope. As the function is never called in the test suite - the import never happens. But I'm just curious about the behaviour. |
Beta Was this translation helpful? Give feedback.
-
Same issue when running with Github runners. Locally it works without any issue. |
Beta Was this translation helpful? Give feedback.
-
There isn't enough info to be helpful I'm afraid. All passes here in CI in GitHub Actions without doing anything special. The error message points to you possibly doing something wrong to break normal installation of static (non-Python) files but hard to say what. (Going to convert this to a discussion. If there's more info there's a small chance I can help you figure it out but no promises.) |
Beta Was this translation helpful? Give feedback.
-
Yeah, no worries and thanks for the fast response. We'll check some things on our end. |
Beta Was this translation helpful? Give feedback.
-
Okay, workaround with moving dependency to a local scope does not work. When code is deployed to AWS Lambda as docker image it fails on import with the same issue. Docker image used for deployment was updated 8 days ago, so its not clear why it started failing around 20 hours ago. |
Beta Was this translation helpful? Give feedback.
-
Ok, managed to solve the issue. The problem was in two latest images: AWS Lambda Python Image (released 9 days ago from this day) we used as deployment container and Debian Bullseye (released 1 day ago from this day) we used for running pytest tests. For both cases we could use old (outdated) versions of images and things would work. But the better solution was to migrate from Python 3.8 to Python 3.9. Latest Python 3.9 images are fully compatible and seem to work without issues. So @Julian it might make sense to remove Python 3.8 from a list of supported versions, since the package might not work without issues. Especially in CI environment, as normally images are not locked there. |
Beta Was this translation helpful? Give feedback.
-
Getting this issue on GitHub actions as well: https://github.com/strawberry-graphql/strawberry/actions/runs/8758073573/job/24040028878?pr=3116 I might skip adding this dep on 3.8 (since it's optional), but if there's another workaround I'll be happy to use that :D |
Beta Was this translation helpful? Give feedback.
-
Hello there, I'm looking for help.
Basically all of a sudden started getting unexpected KeyError while running test suite inside GitLab Worker.
It seems like no dependencies were updated, no extra code was recently added. Pipelines seem to fail even for the code that previously passed all tests. Interesting that everything works fine locally.
Error Trace
Error happens when importing
validate()
fromjsonschema
.In all test cases the function is not being called, it fails on import.
Implementation
Implementation is fairly straightforward:
try/except
block wrapped in a function.Dependencies
Beta Was this translation helpful? Give feedback.
All reactions