From eb5281c55cf2b7fa5dc6553e791d94ab7d3b1ba3 Mon Sep 17 00:00:00 2001 From: aitbc1 Date: Fri, 27 Mar 2026 12:47:42 +0100 Subject: [PATCH] feat: add ultimate debug workflow to diagnose runner issues This workflow will show: - Current working directory - User and environment info - Force absolute workspace creation - Repository cloning status - Package.json detection - NPM install attempt This should definitively show what's happening with the runner and whether our fixes are actually being executed. --- .gitea/workflows/debug-test.yml | 48 +++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 .gitea/workflows/debug-test.yml diff --git a/.gitea/workflows/debug-test.yml b/.gitea/workflows/debug-test.yml new file mode 100644 index 00000000..bfe97f8a --- /dev/null +++ b/.gitea/workflows/debug-test.yml @@ -0,0 +1,48 @@ +name: debug-test + +on: + workflow_dispatch: + +jobs: + debug: + runs-on: debian + + steps: + - name: Ultimate debug - show everything + run: | + echo "=== ULTIMATE DEBUG ===" + echo "Current working directory: $(pwd)" + echo "User: $(whoami)" + echo "Home: $HOME" + echo "Node version: $(node --version)" + echo "NPM version: $(npm --version)" + + echo "=== FORCE ABSOLUTE WORKSPACE ===" + rm -rf /opt/gitea-runner/workspace + mkdir -p /opt/gitea-runner/workspace + cd /opt/gitea-runner/workspace + + echo "Workspace directory: $(pwd)" + echo "Cloning repository..." + git clone https://gitea.bubuit.net/oib/aitbc.git repo || echo "Clone failed" + + if [ -d "repo" ]; then + cd repo + echo "Repo directory: $(pwd)" + echo "Files in repo:" + ls -la + + if [ -f "package.json" ]; then + echo "✅ FOUND package.json!" + echo "Package.json content:" + head -10 package.json + echo "=== ATTEMPTING NPM INSTALL ===" + npm install --legacy-peer-deps + echo "✅ NPM INSTALL COMPLETED!" + else + echo "❌ NO package.json found!" + find . -name "package.json" 2>/dev/null || echo "No package.json anywhere" + fi + else + echo "❌ Clone failed - no repo directory" + fi