From 0f7d52f8a51388685f1d5e563c90a683f144a06f Mon Sep 17 00:00:00 2001 From: copilotcoder Date: Fri, 12 Jun 2026 09:01:43 -0400 Subject: [PATCH] Please, please, please prettier work already! Signed-off-by: copilotcoder --- .gitea/workflows/cicd-checks.yaml | 16 ++++++++++++++++ Dockerfile.cicd | 4 ++-- 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/cicd-checks.yaml b/.gitea/workflows/cicd-checks.yaml index a472730..8bc3a78 100644 --- a/.gitea/workflows/cicd-checks.yaml +++ b/.gitea/workflows/cicd-checks.yaml @@ -83,6 +83,7 @@ jobs: needs: setup strategy: fail-fast: false + max-parallel: 6 matrix: include: - name: Trailing Whitespace Check @@ -193,6 +194,15 @@ jobs: HEAD_SHA: ${{ needs.setup.outputs.head_sha }} HOOK: ${{ matrix.hook }} run: | + if [ "${HOOK}" = "prettier" ]; then + echo "=== Host Workspace Debug (prettier) ===" + echo "host_head_sha=${HEAD_SHA}" + git rev-parse --short HEAD || true + cd frontend && corepack yarn prettier --version && corepack yarn prettier --check src/main.test.ts src/main.ts src/test-setup.ts src/validation.test.ts src/validation.ts || true + sha256sum src/main.test.ts src/main.ts src/test-setup.ts src/validation.test.ts src/validation.ts || true + cd .. + fi + docker run --rm -e CI=true --entrypoint /bin/sh "${GITEA_REGISTRY}/darkhelm.org/plex-playlist-cicd:${HEAD_SHA}" -c " export HOME=/tmp/cicd-home && mkdir -p \"$HOME\" && echo 'running_hook=${HOOK}' && @@ -213,6 +223,12 @@ jobs: eslint|prettier|tsdoc-lint|typescript-check) echo 'JS hook detected; ensuring frontend yarn install state exists' && cd /workspace/frontend && + if [ "${HOOK}" = "prettier" ]; then + echo '=== Container Workspace Debug (prettier) ===' && + corepack yarn prettier --version && + sha256sum src/main.test.ts src/main.ts src/test-setup.ts src/validation.test.ts src/validation.ts || true && + corepack yarn prettier --check src/main.test.ts src/main.ts src/test-setup.ts src/validation.test.ts src/validation.ts || true + fi && if [ ! -f '.yarn/install-state.gz' ]; then echo 'Missing .yarn/install-state.gz; running yarn install' && install_ok=false && diff --git a/Dockerfile.cicd b/Dockerfile.cicd index 4587314..42663d6 100644 --- a/Dockerfile.cicd +++ b/Dockerfile.cicd @@ -152,8 +152,8 @@ RUN echo "Copying source code while preserving installed dependencies..." && \ echo "Copying backend files while preserving .venv..."; \ find "$item" -mindepth 1 -maxdepth 1 ! -name ".venv" -exec cp -rf {} /workspace/backend/ \;; \ elif [ "$basename_item" = "frontend" ] && [ -d "/workspace/frontend/node_modules" ]; then \ - echo "Copying frontend files (will regenerate Yarn state after)..."; \ - cp -rf "$item"/* /workspace/frontend/; \ + echo "Copying frontend files (including dotfiles) while preserving node_modules..."; \ + find "$item" -mindepth 1 -maxdepth 1 ! -name "node_modules" -exec cp -rf {} /workspace/frontend/ \;; \ else \ echo "Copying $basename_item..."; \ cp -rf "$item" /workspace/; \