Polish setup and migration validation

This commit is contained in:
Nick Sweeting 2026-08-02 05:43:02 -07:00
parent 5039a1df4f
commit dd4b708cb4
No known key found for this signature in database
5 changed files with 4 additions and 11 deletions

View File

@ -1000,7 +1000,7 @@ Archived JavaScript is untrusted content. The default <code>SERVER_SECURITY_MODE
<summary><i>Expand to see risks and mitigations...</i></summary>
<pre lang="bash"><code style="white-space: pre-line"># Default: full replay on isolated snapshot subdomains
<pre lang="bash"><code style="white-space: pre-line"># Explicit wildcard mode: full replay on isolated snapshot subdomains
archivebox config --set SERVER_SECURITY_MODE=safe-subdomains-fullreplay
# Alternative for deployments without wildcard subdomains: disable JS replay

View File

@ -2,7 +2,6 @@
import json
import sqlite3
from pathlib import Path
from .migrations_helpers import (
SCHEMA_0_4,
@ -30,12 +29,6 @@ LEGACY_OUTPUTS = {
}
def test_legacy_debug_config_does_not_require_optional_requests_tracker():
settings_source = (Path(__file__).parents[1] / "core" / "settings.py").read_text()
assert 'find_spec("requests_tracker") is not None' in settings_source
def test_oldest_django_collection_migrates_end_to_end_without_data_loss(tmp_path):
"""Exercise the same init/update/status/list sequence used by an upgrading user."""
create_data_dir_structure(tmp_path)

View File

@ -37,7 +37,7 @@ def test_setup_script_bootstraps_locked_abxpkg_version():
prepare_function = script.partition("prepare_abxpkg_environment() {")[2].partition("\n}")[0]
install_function = script.partition("install_archivebox_with_uv() {")[2].partition("\n}")[0]
assert 'ABXPKG_PACKAGE="${ABXPKG_PACKAGE:-abxpkg==1.12.46}"' in script
assert 'ABXPKG_PACKAGE="${ABXPKG_PACKAGE:-abxpkg==1.12.47}"' in script
assert "fix_root_install_ownership" in prepare_function
assert "resolve_setup_binary git env,brew,apt true" in install_function

View File

@ -76,7 +76,7 @@ ARCHIVEBOX_PYTHON="${ARCHIVEBOX_PYTHON:-3.13}"
ARCHIVEBOX_PACKAGE="${ARCHIVEBOX_PACKAGE:-git+https://github.com/ArchiveBox/ArchiveBox.git@${ARCHIVEBOX_BRANCH}}"
ARCHIVEBOX_PLATFORM="${ARCHIVEBOX_PLATFORM:-}"
ARCHIVEBOX_COMPOSE_URL="${ARCHIVEBOX_COMPOSE_URL:-https://raw.githubusercontent.com/ArchiveBox/ArchiveBox/${ARCHIVEBOX_BRANCH}/docker-compose.yml}"
ABXPKG_PACKAGE="${ABXPKG_PACKAGE:-abxpkg==1.12.46}"
ABXPKG_PACKAGE="${ABXPKG_PACKAGE:-abxpkg==1.12.47}"
ABXPKG_LIB_DIR="${ABXPKG_LIB_DIR:-$HOME/.cache/archivebox/setup-abxpkg}"
ARCHIVEBOX_HOME_DIR="$HOME/archivebox"
ARCHIVEBOX_DATA_DIR="$ARCHIVEBOX_HOME_DIR/data"

View File

@ -75,7 +75,7 @@ It's also recommended to use a filesystem with compression and/or [deduplication
## Option B. Automatic Setup Script
If you're on Linux with `apt` or FreeBSD with `pkg` there is an optional auto-setup script provided.
If you're on macOS, Linux with `apt`, or FreeBSD with `pkg`, there is an optional auto-setup script provided.
*(or scroll further down for manual install instructions)*