More CICD image fisex, part 2
Some checks failed
Tests / Build and Push CICD Base Image (push) Successful in 1m7s
Tests / TypeScript Type Check (push) Successful in 1m16s
Tests / Build and Push CICD Complete Image (push) Successful in 33m6s
Tests / Backend Tests (push) Successful in 1m14s
Tests / Trailing Whitespace Check (push) Successful in 16m54s
Tests / Frontend Tests (push) Successful in 1m29s
Tests / End of File Check (push) Successful in 58s
Tests / Backend Doctests (push) Successful in 1m0s
Tests / YAML Syntax Check (push) Successful in 54s
Tests / Integration Tests (push) Successful in 22m51s
Tests / TOML Syntax Check (push) Successful in 58s
Tests / End-to-End Tests (push) Failing after 29m42s
Tests / Mixed Line Ending Check (push) Successful in 57s
Tests / TSDoc Lint Check (push) Successful in 1h3m30s
Tests / TOML Formatting Check (push) Successful in 57s
Tests / Ruff Linting (push) Successful in 1m3s
Tests / Ruff Format Check (push) Successful in 55s
Tests / Pyright Type Check (push) Successful in 1m11s
Tests / Darglint Docstring Check (push) Successful in 59s
Tests / No Docstring Types Check (push) Successful in 55s
Tests / ESLint Check (push) Successful in 1m9s
Tests / Prettier Format Check (push) Successful in 1m0s

Signed-off-by: Cliff Hill <xlorep@darkhelm.org>
This commit is contained in:
2025-10-31 18:42:23 -04:00
parent 728cebcca2
commit 6747b03957

View File

@@ -37,14 +37,23 @@ ENV VIRTUAL_ENV=/workspace/backend/.venv
# Create venv and leverage pre-installed common tools
RUN echo "=== Setting up optimized Python environment ===" && \
# Create project virtual environment
uv venv $VIRTUAL_ENV && \
# List pre-installed common tools from base image
uv pip list --python /opt/python-dev-tools/bin/python --format=freeze > /tmp/base-tools.txt && \
echo "Pre-installed tools available:" && \
head -10 /tmp/base-tools.txt && \
# Check if base image optimization is available
echo "=== Base Image Optimization Status ===" && \
if [ -f "/opt/python-dev-tools/bin/python" ]; then \
echo "✓ Found pre-installed Python dev tools - leveraging cache" && \
uv pip list --python /opt/python-dev-tools/bin/python --format=freeze > /tmp/base-tools.txt && \
echo "Available pre-installed tools:" && \
head -10 /tmp/base-tools.txt; \
else \
echo "⚠ Pre-installed Python dev tools not found - fresh installation" && \
echo "Base image may need rebuild for optimal caching"; \
fi && \
# Install project dependencies (uv will handle tool requirements automatically)
echo "Installing project-specific dependencies..." && \
uv sync --dev && \
echo "✓ Backend environment ready with optimized dependencies"
echo "✓ Backend environment ready with dependencies"
ENV PATH="$VIRTUAL_ENV/bin:$PATH"