Remove redundant VIRTUAL_ENV variable from Dockerfile#2947
Remove redundant VIRTUAL_ENV variable from Dockerfile#2947adamtheturtle merged 5 commits intomainfrom
Conversation
Replace VIRTUAL_ENV with UV_PROJECT_ENVIRONMENT, which holds the same value and is already set. This reduces environment variable duplication. Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
| ENV VIRTUAL_ENV=/app/docker_venvs/.venv | ||
| ENV UV_PROJECT_ENVIRONMENT=/app/docker_venvs/.venv | ||
| ENV PATH="$VIRTUAL_ENV/bin:$PATH" | ||
| ENV PATH="$UV_PROJECT_ENVIRONMENT/bin:$PATH" |
There was a problem hiding this comment.
Removing standard VIRTUAL_ENV breaks Python venv detection
Medium Severity
VIRTUAL_ENV is a Python ecosystem standard env var used by tools like pip, shell prompts, and other utilities to detect an active virtual environment. UV_PROJECT_ENVIRONMENT is uv-specific and not a substitute — they serve different purposes. Removing VIRTUAL_ENV means standard Python tooling inside the container won't recognize the venv. The comment on lines 12–13 referencing the pythonspeed article also becomes misleading, since that technique explicitly relies on setting VIRTUAL_ENV.
The real Vuforia service upgraded from Jetty 12.0.20 to 12.1.6, causing the hardcoded expected response body to no longer match. Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
Bugbot Autofix is OFF. To automatically fix reported issues with Cloud Agents, enable Autofix in the Cursor dashboard.
The real Vuforia service load-balances across instances with different Jetty versions, causing the exact-match assertion to flap. Normalize the version string before comparing so the test is stable. Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>


Replace the redundant VIRTUAL_ENV environment variable with UV_PROJECT_ENVIRONMENT, which holds the same value and is already set. This reduces duplicate environment variable definitions in the Dockerfile.
🤖 Generated with Claude Code
Note
Low Risk
Low risk: Docker build env var cleanup and a test-only assertion change to ignore Jetty version differences; no production runtime logic changes.
Overview
Removes the redundant
VIRTUAL_ENVvariable from the mock VWS Flask serverDockerfile, usingUV_PROJECT_ENVIRONMENTfor both venv creation andPATHsetup.Updates
tests/mock_vws/test_query.pyto make the Jetty HTML error-body assertion tolerant of Jetty version changes by regex-normalizing thePowered by Jetty:// <version>footer before comparing expected vs actual.Written by Cursor Bugbot for commit 94ff092. This will update automatically on new commits. Configure here.