Conversation
|
|
|
✨ Fix all issues with BitsAI or with Cursor
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 67810182de
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
|
|
||
|
|
||
| def handle_sigterm(signo, sf): | ||
| def handle_sigterm(signo: int, sf: types.FrameType | None) -> None: |
There was a problem hiding this comment.
Keep Python 2.7 django app annotation-free
This module now adds runtime type annotations (for example def handle_sigterm(signo: int, ...)) even though lib-injection/build/docker/python/dd-lib-python-init-test-django-27/Dockerfile runs it with FROM python:2.7. Python 2.7 cannot parse function annotations, so the Django settings module will fail to import and this auto-injection variant will fail to start before any tests execute.
Useful? React with 👍 / 👎.
|
|
||
|
|
||
| def handle_sigterm(signo, sf): | ||
| def handle_sigterm(signo: int, sf: types.FrameType | None) -> None: |
There was a problem hiding this comment.
Replace PEP 604 unions in Python 3.9 weblog apps
The new annotation types.FrameType | None requires Python 3.10+, but this file (and dd-lib-python-init-test-protobuf-old/django_app.py) is executed in images based on Python 3.9 (.../dd-lib-python-init-test-django-preinstalled/Dockerfile and .../dd-lib-python-init-test-protobuf-old/Dockerfile). On those variants this introduces a syntax error at import time, so the weblog process cannot boot.
Useful? React with 👍 / 👎.
Motivation
Changes
Workflow
🚀 Once your PR is reviewed and the CI green, you can merge it!
🛟 #apm-shared-testing 🛟
Reviewer checklist
tests/ormanifests/is modified ? I have the approval from R&P teambuild-XXX-imagelabel is present