fix(ci): remove broken links and optimize sibling build
Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 9s
Build & Deploy / 🧪 QA (push) Failing after 1m20s
Build & Deploy / 🏗️ Build (push) Has been skipped
Build & Deploy / 🚀 Deploy (push) Has been skipped
Build & Deploy / 🧪 Post-Deploy Verification (push) Has been skipped
Build & Deploy / 🔔 Notify (push) Successful in 4s

This commit is contained in:
2026-03-03 20:04:26 +01:00
parent a98572e183
commit 71ef49e73d
3 changed files with 19 additions and 17 deletions

View File

@@ -186,9 +186,14 @@ jobs:
run: |
cp .npmrc _at-mintel/
cd _at-mintel
# Use local .npmrc or env token
pnpm install --no-frozen-lockfile
pnpm build
# Only build necessary packages to save time and avoid environmental failures
pnpm --filter @mintel/payload-ai... \
--filter @mintel/pdf... \
--filter @mintel/concept-engine... \
--filter @mintel/estimation-engine... \
--filter @mintel/meme-generator... \
build
- name: Install dependencies
run: |
pnpm store prune
@@ -199,31 +204,30 @@ jobs:
- name: Inspect on Failure
if: failure()
run: |
echo "Listing root directory:"
echo "==== runner state ===="
ls -la
echo "Listing _at-mintel:"
echo "==== _at-mintel state ===="
ls -la _at-mintel || true
echo "Checking .npmrc:"
# Only redact the actual hex part, keep prefix for debugging
echo "==== .npmrc check ===="
cat .npmrc | sed -E 's/authToken=[a-f0-9]{5}.*/authToken=REDACTED/'
echo "==== pnpm debug logs ===="
[ -f pnpm-debug.log ] && tail -n 100 pnpm-debug.log || echo "No root pnpm-debug.log"
[ -f _at-mintel/pnpm-debug.log ] && tail -n 100 _at-mintel/pnpm-debug.log || echo "No sibling pnpm-debug.log"
- name: Extract QA Error Logs
if: failure()
run: |
mkdir -p logs
echo "Capturing state for debugging..." > logs/qa_state.log
ls -R >> logs/qa_state.log
[ -f pnpm-debug.log ] && cp pnpm-debug.log logs/ || true
[ -f _at-mintel/pnpm-debug.log ] && cp _at-mintel/pnpm-debug.log logs/at-mintel-pnpm-debug.log || true
# Attempt to zip up for debugging
tar -czf logs/ci_state_qa.tar.gz . --exclude=.git --exclude=node_modules || true
mkdir -p ci-logs
echo "QA Failure Report" > ci-logs/summary.txt
ls -R >> ci-logs/summary.txt
[ -f pnpm-debug.log ] && cp pnpm-debug.log ci-logs/ || true
[ -f _at-mintel/pnpm-debug.log ] && cp _at-mintel/pnpm-debug.log ci-logs/at-mintel-pnpm-debug.log || true
SSH_KEY_FILE=$(mktemp)
echo "${{ secrets.ALPHA_SSH_KEY }}" > "$SSH_KEY_FILE"
chmod 600 "$SSH_KEY_FILE"
ssh -o StrictHostKeyChecking=no -i "$SSH_KEY_FILE" root@alpha.mintel.me "mkdir -p ~/logs"
scp -v -o StrictHostKeyChecking=no -i "$SSH_KEY_FILE" logs/* root@alpha.mintel.me:~/logs/
scp -r -o StrictHostKeyChecking=no -i "$SSH_KEY_FILE" ci-logs/* root@alpha.mintel.me:~/logs/ || true
rm "$SSH_KEY_FILE"
# ──────────────────────────────────────────────────────────────────────────────