Skip to content

Releases

SpiderPro v1.0.15

Choose a tag to compare

@github-actions github-actions released this 02 Dec 09:50

SpiderPro v1.0.15

Task card layout alignment, production scalability & quota hardening, clean open-source repository pruning, and streamlined source-only GitHub Releases.

Fixed & Improved

  • Task Management Card Equal-Width & Column Alignment (src/crawler_management/spiderpro/app.js, src/crawler_management/spiderpro/redesign.css):
    • Switched .tp-task-card-with-chk and .tp-horiz-card to deterministic fixed CSS Grid columns (24px minmax(0, 1fr) 348px 396px) so the command box, progress box, schedule rule, next/last run timestamps, and right-hand action buttons align identically across every row regardless of active Stop or Backfill buttons
    • Enforced width: 100% across .tp-task-main, .tp-cmd-code-line, and .tp-crawl-progress-box, added a clean .tp-crawl-progress-box.is-idle strip for idle tasks, and kept the ▤ log icon column aligned across all rows
  • Production Quota, Ephemeral Probe Cleanup, SQL Planner & Concurrency Hardening (src/crawler_management/projects.py, src/crawler_management/service.py, src/crawler_management/management_listener.py, src/crawler_management/worker_listener.py, deploy/scripts/public_ui_proxy.py):
    • Raised default ProjectStore.max_versions from 100 to 5,000 (configurable up to 100,000) and added remove_ephemeral() + grant revocation after one-shot remote IDE debug bundles and offline package installs so ephemeral archives never consume version quota or disk space
    • Rewrote collect_worker_telemetry() to use a bounded CROSS JOIN LATERAL lookup over the latest 3 runs instead of sorting all historical worker stream chunks, and added pg_class.reltuples fast-path estimation for stream_records_count above 100k chunks
    • Bounded in-memory _portable_heartbeats (LRU 512) under lock and immediately evicted entries upon node DELETE
    • Raised Uvicorn limit_concurrency (64 on worker artifacts, 128 on management HTTPS) and added GET / -> 302 /spiderpro root redirect in public_ui_proxy.py
    • upgrade-master.sh now automatically cross-compiles worker-bins/ from Go source when a Go toolchain is present on native Linux Master hosts
  • Open-Source Repository Cleanup & Source-Only Releases (.github/workflows/release.yml):
    • Streamlined GitHub Releases to publish clean release notes with source archives only (Source code (zip) and Source code (tar.gz)), removing prebuilt binary asset clutter
    • Removed legacy internal staging utilities and enforced automated leak guards against local cluster node/project identifiers

SpiderPro v1.0.14

Choose a tag to compare

@github-actions github-actions released this 02 Dec 08:54

SpiderPro v1.0.14

Distributed Online IDE execution, offline package delivery, cross-node environment sync, standalone Docker Worker completeness, and scheduler/grant self-healing hardening.

Fixed

  • Remote Worker Online IDE debug-run & debug-code (src/crawler_management/service.py):
    • Routes /api/v1/projects/{id}/debug-run and /api/v1/environments/runtimes/{id}/debug-code directly to online remote Linux/Docker/Windows workers via sp_discover.py (debug_bundle, unpacking inside <install_dir>/runs so both remote Python venv packages and persistent <install_dir>/node_modules ESM/CommonJS imports resolve identically to production runs)
    • Supports multi-megabyte project debug bundles via --shell-file _sp_payload.json + _sp_bundle.zip without exceeding the 4096-byte crawler.task.v2 argv limit
    • Guards local path checks against PermissionError under hardened systemd units and falls back to sys.executable cleanly instead of returning 503 MANAGEMENT_UNAVAILABLE
  • Real Offline .whl / .tar.gz / .tgz / .zip Delivery & Persistent Worker npm Installs (src/crawler_management/service.py):
    • manage_env_admin_or_offline(..., action="OFFLINE_PKG") now transmits and installs the uploaded archive bytes on local or remote workers (--no-index --find-links first, mirror fallback if transitive dependencies are required) instead of discarding uploaded bytes
    • Remote npm install -g / npm uninstall -g now also mirrors into --prefix <install_dir> (<install_dir>/node_modules) when writable so Node ESM/CommonJS imports inside worker task directories persist across container recreations and non-root setups
  • Continuous Cron Scheduling, 24h Deployment Grant Renewal & On-Demand Trigger Self-Healing (src/crawler_management/api.py, src/crawler_management/service.py):
    • Background daemon continues running run_automation_tick() when unattended alert patrol notifications are paused, and run_automation_tick() automatically renews expiring 24h project deployment grants
    • trigger_schedule() self-heals missing/expired deployment receipts for SpiderPro tasks (including pool failover workers), and register_project_version() auto-deploys & syncs bound SpiderPro tasks on raw ZIP uploads
  • uv venv --seed, sync_environment_to_nodes, Proxy-Aware Webhook URLs, Quickstart SAN Refresh & Standalone deploy/docker-worker (src/crawler_management/service.py, src/crawler_management/api.py, deploy/quickstart/entrypoint.py, deploy/docker-worker/sp_discover.py):
    • Passes --seed to uv venv so python -m pip is always present inside newly created virtual environments
    • sync_environment_to_nodes() skips uninstalled (removed) entries and avoids double == on compound PEP 440 specs
    • manage_workflow_webhook() honors X-Forwarded-Host and X-Forwarded-Proto behind public_ui_proxy.py
    • Docker Quickstart ensure_pki() tracks .public-ui.sans (including detected edge_ip) and re-issues public-ui.crt when SPIDERPRO_PUBLIC_HOST changes
    • Bundles sp_discover.py directly inside standalone deploy/docker-worker/

SpiderPro v1.0.13

Choose a tag to compare

@github-actions github-actions released this 02 Dec 08:04

SpiderPro v1.0.13

Long-running live log viewer hardening in the SpiderPro Web UI: drains remaining buffered chunks after task completion before stopping polling, prevents live tail freeze after backtracking earlier history, caps multi-hour in-memory drawer lines, survives transient network errors without blanking rendered logs, and opens active runs directly at the latest tail on the run detail page.

Fixed

  • Long-Running Live Log Drawer & Run Detail Viewer (src/crawler_management/spiderpro/app.js):
    • refreshTpLogDrawer() now keeps auto-polling until !isActive && !tpDrawerState.hasMore (draining up to 8 pages per tick) so final chunks are never dropped when a long-running task finishes
    • Automatically clears preferHeadWindow when scrolling back near the live bottom and bounds live-streaming logLines memory to 20,000 lines (hasEarlier=true) so multi-hour terminals stay responsive without freezing or leaking browser memory
    • Preserves already-rendered logs during transient incremental poll errors (showing an inline retry hint in the footer instead of blanking the terminal)
    • loadRun() now opens active (RUNNING) runs directly at the latest tail (tail=true) with a 2 MiB rolling DOM tail cap and auto-scroll on loadMore()

SpiderPro v1.0.12

Choose a tag to compare

@github-actions github-actions released this 02 Dec 07:48

SpiderPro v1.0.12

Environment lifecycle and distributed Python package installation fixes discovered during live Docker Worker task migration: deactivated unbound system-path environments can now be cleanly deregistered, compound PEP 440 pip version ranges no longer fail with 503 MANAGEMENT_STORAGE_UNAVAILABLE, distributed venv creation avoids redundant double pip install, and the UI proxy upstream timeout supports heavy package installs.

Fixed

  • Deactivated Unbound System-Path Environments Stuck Undeletable (src/crawler_management/service.py):
    • _evaluate_runtime_protection() now accepts enabled: bool = True: environments with bound tasks (task_count > 0) and active OS-core runtimes (/usr/bin/*, /bin/*, C:\Windows\*) remain protected, while already-disabled (enabled=False) environments with 0 bound tasks can be cleanly deregistered without touching the host filesystem
    • _execute_true_runtime_uninstall() isolates deactivated system-path cleanup as strictly deregister-only (never cascade-deleting active profiles sharing the path and never poisoning env_excluded / envscan)
    • delete_worker_node() now automatically deregisters unbound (task_count == 0) environments on the deleted node while preserving bound profiles as disabled until their tasks are rebound
  • Compound PEP 440 Version Ranges Causing 503 MANAGEMENT_STORAGE_UNAVAILABLE (src/crawler_management/service.py):
    • install_runtime_package() now passes the full compound version specifier (e.g. curl_cffi>=0.15.0,<1) to pip install while normalizing version_spec via _normalize_db_pip_version_spec() to satisfy PostgreSQL platform_runtime_package_revisions CHECK(version_spec ~ '^[A-Za-z0-9][A-Za-z0-9._+-]{0,63}$')
  • Single Mirror-Accelerated pip install & Extended UI Proxy Timeout (src/crawler_management/service.py, deploy/scripts/public_ui_proxy.py):
    • create_distributed_environment() now creates the remote isolated venv first (packages: []) and performs a single configured-mirror, exit-code-checked install_runtime_package() pass (and forwards pypi_index_url to create_managed_venv)
    • public_ui_proxy.py raises default upstream timeout from 90s to 300s (configurable via SPIDERPRO_UPSTREAM_TIMEOUT_SEC) so heavy package installs do not prematurely return 502

SpiderPro v1.0.11

Choose a tag to compare

@github-actions github-actions released this 02 Dec 07:07

SpiderPro v1.0.11

Real-machine Windows & Linux Docker one-click Worker onboarding fixes (CA/binary auto-discovery, pinned-CA multi-NIC TLS resilience, re-adding deleted/disabled workers, stale environment cleanup on delete, tombstoned default-env handling on rejoin, honest startup verification) and streamlined GitHub Release assets.

Fixed

  • Automatic Master CA, Public UI Cert & Worker Binary Discovery (src/crawler_management/service.py):
    • _read_master_public_ca_pem() and _maybe_provision_worker_mtls_bundle() now automatically discover <master_root>/secrets/public-ui/tls.crt, <master_root>/secrets/worker-ca/{ca.pem,ca.key}, <master_root>/pki/{ca.crt,ca.key}, and <master_root>/worker-bins/ when explicit SPIDERPRO_* env vars are not set—enabling full mTLS-ready one-click bundles on native Linux systemd Masters as well as Docker Quickstart
  • Pinned-CA TLS Verification Across Self-Signed & Multi-NIC/NAT/VPN Masters (src/crawler_management/service.py, deploy/docker-worker/worker_daemon.py):
    • Clears Python 3.13 VERIFY_X509_STRICT on bundled Master self-signed certs while keeping ssl.CERT_REQUIRED against the pinned master_ui_ca.pem / tls/ca.pem
    • Automatically falls back to check_hostname=False with strict ssl.CERT_REQUIRED against the pinned CA when accessing Master over a secondary NIC/NAT/VPN IP not listed in initial SANs
  • Re-Adding Previously Deleted or Disabled worker_id (src/crawler_management/service.py):
    • issue_worker_join_token() now re-activates crawler.workers.status='ACTIVE' via crawler.set_worker_registry_status even when reusing a historical onboarding record—fixing HTTP 401 on /join and WORKER_DISABLED on mTLS reconnect
    • delete_worker_node() now disables all stale runtime profiles bound to the deleted node and clears stale env_excluded:* / envscan:* metadata so re-adding the same worker_id on a new host or container starts clean
    • join_worker_with_token() now checks visible (include_deleted=False) runtimes before reviving disabled profiles and automatically allocates a fresh visible profile ID (e.g., <worker_id>-docker-py311) when the legacy <worker_id>-default-env was tombstoned in platform_env_admin_revisions, plus passes real clean_arch for auto-created Node.js profiles
  • Honest Windows One-Click Startup & UI Bundle Status (src/crawler_management/service.py, src/crawler_management/spiderpro/app.js):
    • start_worker.ps1 sets UTF-8 console encoding ([Console]::OutputEncoding = [System.Text.Encoding]::UTF8) to prevent garbled Chinese output and actively waits for Joined Master: in worker_daemon.out.log (exiting non-zero with exact diagnostics instead of printing [OK] on connection failure)
    • Web UI + 添加节点 result title accurately distinguishes complete mTLS bundles from probe-only bundles based on mtls_ready and *_agent_bundled
  • Streamlined Release Assets (.github/workflows/release-binaries.yml):
    • Removed the duplicate crawler-monitor.zip asset (already provided by GitHub's auto-generated Source code (zip)), leaving the 6 static Go binaries + 6 .sha256 + SHA256SUMS.txt (13 assets)

SpiderPro v1.0.10

Choose a tag to compare

@github-actions github-actions released this 02 Dec 05:44

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)

SpiderPro v1.0.9

Choose a tag to compare

@summer12433 summer12433 released this 01 Dec 08:15

SpiderPro v1.0.9

3-layer configurable per-worker parallel execution (1..16, including Windows headed interactive runs), Worker journal auto-compaction beyond 64 attempts, unaccepted LEASED cancel loop fix (PostgreSQL migration 0046), and Gateway reconnect recovery self-healing for orphaned/expired-terminal Redis PEL entries with handshake offline rollback.

Added

  • 3-Layer Multi-Task Parallel Execution (1..16 per Worker):
    • Gateway (gateway/server/server.go, gateway/daemon/config.go, gateway/daemon/runtime_config.go): added max_concurrent_offers (1..16, default 1), multi-slot inFlight tracking with out-of-order terminal release, and increased outboundQueueCapacity (64 → 256).
    • Worker Agent (worker/agent/config.go, worker/agent/agent.go, worker/cmd/worker-agent/main.go): opened max_concurrent_tasks to 1..16 with concurrent per-dispatch execution/streaming while still blocking concurrent attempts for the same RunId and enforcing WORKER_AGENT_BUSY.
    • Windows Headed InteractiveRunner (worker/interactive/runner.go, pipe_windows.go, pipe_server_windows.go, worker/cmd/interactive-runner/main.go): opened max_concurrent_runs to 1..16 using a fixed N-slot persistent Named Pipe pool (preserving slot-0 FILE_FLAG_FIRST_PIPE_INSTANCE, per-slot DACL, PIPE_REJECT_REMOTE_CLIENTS, and PID→SID verification).
  • Expanded Prebuilt Static Release Binaries (.github/workflows/release-binaries.yml): automatically cross-compiles and attaches worker-agent-*, gateway-daemon-*, and interactive-runner-windows-amd64.exe with .sha256 and SHA256SUMS.txt.

Fixed

  • Worker Journal & Session 64-Attempt Quota Compaction (worker/agent/journal.go, worker/agent/agent.go): compacts oldest fully committed (RESULT + TerminalAck + all chunks acked + different RunId) journal entries when exceeding 64 attempts / 24 MiB, and prunes committed in-memory session attempts to avoid WORKER_AGENT_REPLAY_QUOTA on the 65th run.
  • Unaccepted LEASED Cancel Retry Loop (migrations/0046_cancel_unaccepted_leased_attempt.sql, src/crawler_management/service.py, worker/agent/agent.go, gateway/controlplane/service.go): immediately cancels unaccepted LEASED runs/attempts in PG (crawler.cancel_unaccepted_leased_attempt, with SAVEPOINT fallback for pre-0046 schemas), logs WORKER_AGENT_CONTROL_IGNORED on unknown cancel/renew instead of dropping Worker sessions, and applies bounded exponential backoff (5s → 60s) on control retry failures.
  • Gateway Reconnect Recovery Orphan/Terminal PEL Self-Healing & Handshake Offline Rollback (gateway/postgres/backend.go, gateway/daemon/recovery.go): discards provably unrecoverable Redis PEL entries (purged PG outbox_messages rows or expired unresolved terminal attempts) via DiscardStale during reconnect recovery while keeping fail-closed guards on cross-worker/tampered/unresolved-stale-generation entries; rolls back ONLINE presence via MarkWorkerOffline whenever EnsureGroup or RecoverPendingDeliveries fails during RecordHello.

SpiderPro v1.0.0

Choose a tag to compare

@summer12433 summer12433 released this 30 Nov 03:38

Initial open-source production release of SpiderPro.

Added

  • One-Command Master Quickstart (deploy/quickstart/):
    • install-master.sh, docker-compose.yml, multi-stage non-root Dockerfile (CGO_ENABLED=0), and idempotent entrypoint.py
    • Isolated internal: true network for PostgreSQL 17 and dedicated Redis 7 Streams (zero host DB/Redis ports)
    • Automatic migrations (0001–0045), least-privilege non-superuser PG login roles, self-signed CA & TLS/mTLS PKI, four-binary --check-config preflight, and five-process supervisor
  • Distributed Go mTLS Control & Worker Runtime (gateway/, worker/):
    • Single-port ALPN edge-router, gateway-daemon with durable PostgreSQL Outbox + Redis PEL + pacedOfferLoop dispatch pacing, and native Linux/Windows/Docker worker-agent
    • 30-second least-privilege (SECURITY DEFINER) automatic lease renewal supporting up to 24-hour (86400s) crawler tasks
    • Graceful live-log stream quota muting (never terminates verbose crawlers) and fail-closed attempt-* / old version pruner preserving persistent checkpoints/
    • Deterministic SHA-256 identity-refresh audit deduplication preventing empty-poll table bloat
  • Management API & Responsive /spiderpro Web UI (src/crawler_management/):
    • 15 core views: Dashboard (2.5s live refresh, 30-day heatmap, 4D node telemetry, Gantt/calendar), Distributed Nodes, Immutable Projects (ZIP/Git/online edits/version pointers/auto Cron sync), Distributed Python/Node Virtual Environments (pip/npm, mirror speed test, Web Shell, remote build), Python/Browser Profiles, Tasks & Cron Schedules (with --no-fresh auto/manual backfill & Unattended Patrol Daemon), Visual DAG Workflows & HTTP Webhooks, Live Logs (tail-first >1500-line windowing & .log export), Native SVG Metrics, Alerts & Multi-Channel Notifications, Persistent Files, AI Ops Copilot, RBAC Access Control & Unified Audit Trail, and System Settings
    • Mandatory interactive login (SPIDERPRO_REQUIRE_AUTH=1), native HTTPS + same-port HTTP → HTTPS 308 redirect, idempotent initial admin / admin123 bootstrap preserving password changes across restarts/upgrades
  • Crawler Telemetry SDK & Operations Toolkit (sdk/, deploy/scripts/):
    • Zero-dependency SpiderProReporter (sdk/spiderpro_telemetry.py) separating business empty results from technical failures
    • Automated daily PG17 backup (pg_backup_daily.py), weekly --network none isolated PG17 restore drill (pg_restore_drill.py), zero-trust CSR mTLS certificate rotation (rotate_worker_mtls_cert.py), incremental deployer (management_increment.py), and session/token readiness & WeCom morning digest CLI (nightly_run_audit.py)
  • Complete Documentation & CI (docs/guide/, .github/workflows/ci.yml):
    • 17-chapter Chinese User & Operations Manual (docs/guide/README.md) covering every feature, API, SDK sample, and 12 FAQs
    • 4-job GitHub Actions CI: Python unit/API suite (360 tests), Go Gateway/Worker suite (20 packages), Node UI DOM behavior suite (52 tests), and Secret/Internal-Leak Guard