Fixing the yarn commands.
Some checks failed
Tests / Build and Push CICD Image (push) Failing after 45s
Tests / Trailing Whitespace 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 / TOML Formatting Check (push) Has been skipped
Tests / Ruff Linting (push) Has been skipped
Tests / Ruff Format Check (push) Has been skipped
Tests / Pyright Type 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 / Mixed Line Ending Check (push) Has been skipped
Tests / Darglint Docstring Check (push) Has been skipped
Tests / No Docstring Types Check (push) Has been skipped
Tests / Integration Tests (push) Has been skipped
Tests / End-to-End Tests (push) Has been skipped
Tests / Backend Doctests (push) Has been skipped

Signed-off-by: Cliff Hill <xlorep@darkhelm.org>
This commit is contained in:
2025-10-28 10:09:36 -04:00
parent 32397e0cc2
commit 5dbbea156a

View File

@@ -38,12 +38,6 @@ RUN apt-fast update && apt-fast install -y \
tzdata \
&& rm -rf /var/lib/apt/lists/*
# Configure system for memory-intensive builds
RUN echo "vm.overcommit_memory=1" >> /etc/sysctl.conf && \
echo "vm.max_map_count=262144" >> /etc/sysctl.conf && \
sysctl -w vm.overcommit_memory=1 && \
sysctl -w vm.max_map_count=262144
# Install Python 3.13 with retry and fallback mechanisms
RUN for i in 1 2 3; do \
echo "Attempt $i: Adding deadsnakes PPA..." && \
@@ -83,10 +77,9 @@ RUN corepack enable \
# Configure Yarn globally for CI performance
RUN yarn config set httpTimeout 60000 && \
yarn config set networkTimeout 60000 && \
yarn config set enableGlobalCache false && \
yarn config set compressionLevel 0 && \
export NODE_OPTIONS="--max-old-space-size=2048"
yarn config set nmMode hardlinks-local
# Install uv package manager globally
COPY --from=ghcr.io/astral-sh/uv:latest /uv /bin/uv
@@ -139,20 +132,16 @@ RUN dd if=/dev/zero of=/tmp/swapfile bs=1M count=1024 2>/dev/null && \
# Configure Yarn for CI environment with memory optimizations
RUN echo "# CI optimizations" >> .yarnrc.yml && \
echo "httpTimeout: 60000" >> .yarnrc.yml && \
echo "networkTimeout: 60000" >> .yarnrc.yml && \
echo "enableGlobalCache: false" >> .yarnrc.yml && \
echo "compressionLevel: 0" >> .yarnrc.yml && \
echo "nmMode: hardlinks-local" >> .yarnrc.yml
# Install frontend dependencies with memory optimizations and retry mechanism
RUN export NODE_OPTIONS="--max-old-space-size=2048 --gc-interval=100" && \
export YARN_ENABLE_NETWORK=1 && \
for i in 1 2 3; do \
echo "Attempt $i: Installing frontend dependencies..." && \
yarn install --immutable \
--network-timeout 60000 \
--cache-folder /tmp/yarn-cache \
--network-concurrency 1 \
--verbose \
&& break || \
(echo "Attempt $i failed, cleaning up and retrying..." && \