From 4c113f8eb9f9b80dd0fd9992965d25f6d65a09e9 Mon Sep 17 00:00:00 2001 From: Claude Date: Sun, 15 Mar 2026 03:02:47 +0000 Subject: [PATCH] Fix CI: create tests/out dir, fix archivebox add cmd, revert setup.sh - test-parallel.yml: mkdir -p tests/out before pytest --basetemp (fixes FileNotFoundError in chrome test fixture) - debian.yml: fix archivebox add command (--parser url_list removed in 0.9.x), remove || true so failures are caught - setup.sh: revert apt section to always use pip install, not .deb https://claude.ai/code/session_01Vx1EsNrNySgsc8Y67dGzCn --- .github/workflows/debian.yml | 2 +- .github/workflows/test-parallel.yml | 1 + bin/setup.sh | 14 ++------------ 3 files changed, 4 insertions(+), 13 deletions(-) diff --git a/.github/workflows/debian.yml b/.github/workflows/debian.yml index 93b185eb..f7dfdb24 100644 --- a/.github/workflows/debian.yml +++ b/.github/workflows/debian.yml @@ -152,7 +152,7 @@ jobs: - name: Test archivebox add run: | - sudo -u archivebox bash -c 'cd /tmp/archivebox-test && /opt/archivebox/venv/bin/archivebox add --parser url_list "https://example.com"' || true + sudo -u archivebox bash -c 'cd /tmp/archivebox-test && /opt/archivebox/venv/bin/archivebox add "https://example.com"' - name: Verify systemd service file exists run: | diff --git a/.github/workflows/test-parallel.yml b/.github/workflows/test-parallel.yml index 77db7ac6..bb7855b1 100644 --- a/.github/workflows/test-parallel.yml +++ b/.github/workflows/test-parallel.yml @@ -115,4 +115,5 @@ jobs: - name: Run test - ${{ matrix.test.name }} run: | + mkdir -p tests/out uv run pytest -xvs "${{ matrix.test.path }}" --basetemp=tests/out --ignore=archivebox/pkgs diff --git a/bin/setup.sh b/bin/setup.sh index aefcffd8..91cd6681 100755 --- a/bin/setup.sh +++ b/bin/setup.sh @@ -127,18 +127,8 @@ if which apt-get > /dev/null; then sudo apt-get install -y git python3 python3-pip python3-venv wget curl yt-dlp ffmpeg git nodejs npm ripgrep sudo apt-get install -y libgtk2.0-0 libgtk-3-0 libnotify-dev libnss3 libxss1 libasound2 libxtst6 xauth xvfb libgbm-dev || sudo apt-get install -y chromium || sudo apt-get install -y chromium-browser || true echo - echo "[+] Downloading and installing ArchiveBox .deb package..." - ARCH="$(dpkg --print-architecture)" - # Get the latest release .deb URL from GitHub API (filename includes version) - DEB_URL="$(curl -fsSL https://api.github.com/repos/ArchiveBox/ArchiveBox/releases/latest \ - | grep -o "\"browser_download_url\": \"[^\"]*_${ARCH}\.deb\"" \ - | head -1 | cut -d'"' -f4)" || true - if [ -n "$DEB_URL" ]; then - curl -fsSL "$DEB_URL" -o /tmp/archivebox.deb && sudo apt install -y /tmp/archivebox.deb && rm -f /tmp/archivebox.deb - else - echo "[!] Could not find .deb download URL, falling back to pip install..." - pip install --upgrade archivebox yt-dlp - fi + echo "[+] Installing ArchiveBox python dependencies using pip3..." + sudo python3 -m pip install --upgrade --ignore-installed archivebox yt-dlp # On Mac: elif which brew > /dev/null; then echo "[+] Installing ArchiveBox using Homebrew..."