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

@@ -104,28 +104,33 @@ RUN yarn config set httpTimeout 60000 && \
# Install uv package manager globally
COPY --from=ghcr.io/astral-sh/uv:latest /uv /bin/uv
# Install common development tools globally to improve CI performance
# Install common development tools globally using npm (more reliable for global installs)
RUN echo "=== Installing Global Development Tools ===" && \
# Install common Node.js development tools globally
yarn global add \
@playwright/test \
# Use npm for global installations (works better than yarn global in Berry)
npm install -g \
@playwright/test@1.40.0 \
typescript@5.3.3 \
eslint@9.33.0 \
prettier@3.3.3 \
vite@7.1.10 \
@types/node@20.16.0 && \
echo "✓ Global Node.js development tools installed"
# Verify global tools are available
which playwright && \
which tsc && \
which eslint && \
which prettier && \
echo "✓ Global Node.js development tools installed via npm"
# Install Playwright browsers for E2E testing
# This downloads ~400MB+ of browser binaries that will be cached
RUN echo "=== Installing Playwright Browsers ===" && \
# Verify Playwright CLI is available
yarn playwright --version && \
playwright --version && \
# Install browsers with system dependencies (non-interactive)
export PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD=0 && \
yarn playwright install --with-deps chromium firefox webkit && \
# Verify browsers are installed
yarn playwright install-deps && \
playwright install --with-deps chromium firefox webkit && \
# Install system dependencies for browsers
playwright install-deps && \
echo "✓ Playwright browsers installed and cached in base image"
# Pre-install common Python development dependencies globally
@@ -169,10 +174,10 @@ RUN echo "=== Base System Verification ===" && \
uv --version && \
git --version && \
echo "=== Global Development Tools Verification ===" && \
yarn playwright --version && \
yarn tsc --version && \
yarn eslint --version && \
yarn prettier --version && \
playwright --version && \
tsc --version && \
eslint --version && \
prettier --version && \
/opt/python-dev-tools/bin/ruff --version && \
/opt/python-dev-tools/bin/pyright --version && \
/opt/python-dev-tools/bin/pytest --version && \