Fixing the optimization
Some checks failed
Tests / Build and Push CICD Base Image (push) Failing after 23m13s
Tests / Build and Push CICD Complete Image (push) Has been skipped
Tests / Trailing Whitespace Check (push) Has been skipped
Tests / Pyright Type Check (push) Has been skipped
Tests / End of File Check (push) Has been skipped
Tests / YAML Syntax Check (push) Has been skipped
Tests / TOML Syntax Check (push) Has been skipped
Tests / Mixed Line Ending Check (push) Has been skipped
Tests / TOML Formatting Check (push) Has been skipped
Tests / Ruff Linting (push) Has been skipped
Tests / Ruff Format Check (push) Has been skipped
Tests / Darglint Docstring Check (push) Has been skipped
Tests / No Docstring Types Check (push) Has been skipped
Tests / ESLint Check (push) Has been skipped
Tests / Prettier Format Check (push) Has been skipped
Tests / TypeScript Type Check (push) Has been skipped
Tests / TSDoc Lint Check (push) Has been skipped
Tests / Backend Tests (push) Has been skipped
Tests / Frontend Tests (push) Has been skipped
Tests / Backend Doctests (push) Has been skipped
Tests / End-to-End Tests (push) Has been skipped
Tests / Integration Tests (push) Has been skipped

Signed-off-by: Cliff Hill <xlorep@darkhelm.org>
This commit is contained in:
2025-10-31 12:48:40 -04:00
parent 9bbb362e5b
commit 772c4cfab5
4 changed files with 31 additions and 26 deletions

View File

@@ -68,10 +68,11 @@ RUN cd /workspace && \
WORKDIR /workspace/frontend
# Install frontend dependencies with optimized approach
# Many development tools are already installed globally in base image
# Many development tools are already installed globally in base image via npm
RUN echo "=== Setting up optimized frontend environment ===" && \
echo "Available global tools:" && \
yarn global list --depth=0 2>/dev/null || echo "Global tools listed above" && \
echo "Available global tools (installed via npm):" && \
npm list -g --depth=0 2>/dev/null | head -10 || echo "Global npm tools available" && \
which tsc && which eslint && which prettier && which playwright || echo "Global tools verified" && \
# Create temporary swap file for memory-intensive yarn install
dd if=/dev/zero of=/tmp/swapfile bs=1M count=1024 2>/dev/null && \
mkswap /tmp/swapfile && \
@@ -111,10 +112,10 @@ RUN if [ -f ".frontend-deps-failed" ]; then \
echo "Frontend dependencies failed - Playwright E2E tests will be skipped"; \
elif grep -q '@playwright/test' package.json && [ -d "node_modules" ]; then \
echo "Verifying Playwright browsers from base image..." && \
# Verify global Playwright CLI is working
yarn playwright --version && \
# Verify global Playwright CLI is working (installed via npm globally)
playwright --version && \
# Verify browsers are installed (they should be from base image)
yarn playwright install --dry-run chromium firefox webkit || \
playwright install --dry-run chromium firefox webkit || \
echo "Note: Using globally installed browsers from base image" && \
echo "✓ Playwright browsers available from base image"; \
else \