Skip to content

Update image-server configuration environment variable names.#150

Open
manuskc wants to merge 1 commit into
GoogleCloudPlatform:v3.0from
manuskc:v3.0
Open

Update image-server configuration environment variable names.#150
manuskc wants to merge 1 commit into
GoogleCloudPlatform:v3.0from
manuskc:v3.0

Conversation

@manuskc

@manuskc manuskc commented Jun 9, 2026

Copy link
Copy Markdown

Update image-server environment variable names to align with the standard naming conventions used across other bundled services.

Testing done:

@manuskc ➜ /workspaces/appengine-python-standard (v3.0) $ tox -e py312 -- tests/google/appengine/api/images/images_test.py 

tests/google/appengine/api/images/images_test.py ... [100%]

IMAGES_SERVICE_ENDPOINT = 'APPENGINE_IMAGES_SERVICE_ENDPOINT'


_USE_GRPC = bool(os.environ.get(USE_CUSTOM_IMAGES_GRPC_SERVICE))

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like I found a pre-existing bug:
In Python, bool() evaluates to True for any non-empty string. If a developer explicitly tries to disable the service by setting APPENGINE_USE_CUSTOM_IMAGES_GRPC_SERVICE: "false" or "0" in their app.yaml, it will be incorrectly evaluated as True.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants