Skip to content

SpiderPro v1.0.10

Choose a tag to compare

@github-actions github-actions released this 02 Dec 05:44
· 5 commits to main since this release

SpiderPro v1.0.10

Long-running high-log-volume streaming endurance fixes, PostgreSQL migration 0047 (automatic lease renewal & worker lifecycle), pluggable project-agnostic telemetry engine, one-click Windows/Docker Worker onboarding E2E hardening, and deep-audit fixes across API bounds, proxy throughput, and upgrade scripts.

Added

  • Pluggable Project-Agnostic Telemetry Engine (src/crawler_management/telemetry.py, src/crawler_management/telemetry_adapters.py, sdk/spiderpro_telemetry.py, docs/guide/10-telemetry-sdk.md):
    • Replaced hardcoded project-specific log regexes in service.py with a clean layered telemetry architecture: Standard Protocol (SPIDERPRO-EVENT JSON lines, highest priority) → Pluggable Framework Adapters (Scrapy stats, generic progress=x/y, HTTP status, error lines; configurable via SPIDERPRO_TELEMETRY_ADAPTERS) → Custom JSON regex rules (SPIDERPRO_TELEMETRY_RULES_JSON / SPIDERPRO_TELEMETRY_RULES_FILE)
    • Extended zero-dependency SpiderProReporter with record_batch() and record_retry(), and de-hardcoded all UI placeholders, deployment scripts (ui5_assets.py, inspect-worker-host.ps1), and documentation examples
  • PostgreSQL Migration 0047 (migrations/0047_auto_lease_and_worker_lifecycle.sql):
    • Adds automatic lease-renewal and worker lifecycle support in the forward-only migration ledger (updating migrations/manifest.json and deploy/scripts/management_increment.py)
  • Automated Tag-Triggered Release Publishing & Expanded Quickstart CI (.github/workflows/release-binaries.yml, .github/workflows/ci.yml):
    • release-binaries.yml now triggers on v* tag pushes as well as published releases, packaging crawler-monitor.zip alongside all 6 static Go binaries and SHA-256 checksums
    • quickstart-docker-smoke CI now verifies >8 MiB /api/v1/workers/join-tokens responses through public_ui_proxy.py, validates generated Windows & Docker Worker ZIPs, and confirms >4 KB /probe-result payloads bypass the control-route 4 KB cap

Fixed

  • Long-Running High-Log-Volume Truncation & Streaming Endurance (worker/agent/{spool.go,journal.go,live.go,handler.go}, worker/exec/exec.go, worker/interactive/{protocol.go,client.go,runner.go}, gateway/postgres/backend.go, src/crawler_management/{service.py,spiderpro/app.js}):
    • Upgraded Worker log spooling to continuous ring-buffer retention with bounded replay quota compaction so multi-hour crawlers emitting tens of megabytes of stdout/stderr never stall, truncate live streaming, or lose tail logs
    • Hardened Gateway batch ingestion (gateway/postgres/backend.go), live coalescer, and Web UI tail/earlier-log paging for sustained high-throughput runs
    • Fixed PostgreSQL 0046 PL/pgSQL dollar-quote delimiters (AS $$ / END $$;) for strict migration runners
  • One-Click Windows & Docker Worker Onboarding E2E Hardening (src/crawler_management/service.py, deploy/quickstart/{Dockerfile,entrypoint.py}, deploy/scripts/{public_ui_proxy.py,onboard_worker_node.py}, deploy/docker-worker/{Dockerfile,docker-compose.yml,worker_daemon.py}):
    • Cross-compiles and bundles Linux (amd64/arm64) & Windows (worker-agent.exe, interactive-runner.exe) binaries inside the Quickstart Master image and wires CA/binary env vars into entrypoint.py (max_concurrent_offers: 4)
    • Raised public_ui_proxy.py upstream response cap from 8 MiB to 64 MiB (with Content-Disposition passthrough) so 19+ MiB Worker join-token bundles never truncate mid-JSON
    • Hardened generated Windows Worker packages: UTF-8 BOM start_worker.ps1 (for PowerShell 5.1 GBK/CP936 locales), UTF-8 no-BOM JSON (etc\worker.json / etc\runner.json), ASCII .bat launchers, native Windows backslashes, strict icacls SID DACLs, detached background startup (Start-DetachedWorkerProcess via WMI Session 0 breakaway + Python close_fds=True CREATE_NO_WINDOW), and python -u + flush=True
    • Hardened generated Docker Worker bundles: removed nonexistent /usr/bin/python3, added chmod 0700 /data & named worker_data:/data volume, safe Compose service names for dotted worker_ids, ARM64 binary selection, wait -n dual supervision, and single-pass certificate signing
    • Fixed sp_discover.py on Windows (managed envs/ discovery, skip Microsoft Store WindowsApps stub, CREATE_NO_WINDOW), provision_runtime_profile VENV_SYNC/NPM_CI filtering, and onboard_worker_node.py tombstone auto-clearing
  • Deep Audit Fixes Across API, Scheduler, Upgraders & Security (src/crawler_management/{api.py,service.py}, worker/control/store.go, deploy/scripts/{upgrade-master.sh,upgrade-worker.sh}):
    • Expanded BodyBounds large_json (2 MiB) to /probe-result, /bootstrap-complete, /provision, /shell, /environments/distributed, /ai/chat, /settings/env-vars, /(spiderpro|taskpyro)/(tasks|entities), /templates/catalog, /workflows, and /projects/git-sync while keeping strict 4 KB limits on control routes
    • Fixed backfill timeout inheritance (removed 2-hour cap), paused-schedule edit warning, git-sync 45s timeout & -- option-injection guard, patrol alert LIMIT 200, real arch reporting on Worker join, quickstart-operator password changes, AI 2 MiB read cap + reasoning_content fallback, and SMTP ssl.create_default_context()
    • Fixed upgrade-master.sh _Adapter.transaction() for SPIDERPRO_PG_DSN migrations, onboard_worker_node.py/rotate_worker_mtls_cert.py sync, and worker-artifacts.service restart (pure LF)
    • Fixed upgrade-worker.sh to inspect all Go OS threads (/proc/<MainPID>/task/*/children + pgrep -P) and support etc/worker.json (pure LF)