Skip to content

High-performance browser automation bridge and multi-instance orchestrator with advanced stealth injection and real-time dashboard.

autorun: test report 2026-02-17 00:33 — 54 unit pass, 7 integration pass, 1 skip

bot757718084c79
diff --git a/tests/mario-test-00.md b/tests/mario-test-00.md
index 09a83d3b..23b32d6a 100644
--- a/tests/mario-test-00.md
+++ b/tests/mario-test-00.md
@@ -1,118 +1,118 @@
-# Pinchtab Test Report — 00:00 UTC, 2026-02-17
+# Pinchtab Test Report — autorun
-**Branch:** autorun
-**Agent:** Mario (OpenClaw)
-**Hour:** 00 (even — test run)
+**Date:** 2026-02-17 00:33 GMT
+**Branch:** autorun
+**Run type:** Even hour (test execution)
---
-## Unit Tests (`go test ./... -v -count=1`)
+## Unit Tests
-| Metric | Value |
-|--------|-------|
-| Total pass | 77 (including sub-tests) |
-| Total fail | 0 |
-| Total skip | 0 |
-| Duration | ~0.33s |
-| Result | ✅ **ALL PASS** |
+**Result: ✅ ALL PASS — 54/54**
+
+| Package | Tests | Pass | Fail | Skip | Duration |
+|---------|-------|------|------|------|----------|
+| github.com/pinchtab/pinchtab | 54 | 54 | 0 | 0 | 0.190s |
+
+All 54 unit tests passed covering: ref cache, config, handlers (navigate, action, evaluate, tab, snapshot, text, screenshot, cookies, stealth, fingerprint, batch actions), human simulation (mouse, typing, click), HTTP middleware (auth, CORS, logging), snapshot building/filtering/diff, stealth JS, fingerprint generation, and stealth recommendations.
---
-## Integration Tests (`go test -tags integration -v -count=1`)
+## Integration Tests
-| Metric | Value |
-|--------|-------|
-| Total pass | 77 (including sub-tests) |
-| Total fail | 0 |
-| Total skip | 1 |
-| Duration | ~3.3s |
-| Result | ✅ **ALL PASS** (1 skip) |
-
-### Skipped Tests
-- **TestWebGLVendorSpoofed** — Expected skip in headless mode (no GPU). Corresponds to SI4.
-
-### Integration Test Mapping (Section 4)
-| Test | Plan ID | Status |
-|------|---------|--------|
-| TestStealthScriptInjected | SI1 | ✅ Pass |
-| TestCanvasNoiseApplied | SI2 | ✅ Pass |
-| TestFontMetricsNoise | SI3 | ✅ Pass |
-| TestWebGLVendorSpoofed | SI4 | ⏭️ Skip (headless) |
-| TestPluginsPresent | SI5 | ✅ Pass |
-| TestFingerprintRotation | SI6 | ✅ Pass |
-| TestCDPTimezoneOverride | SI7 | ✅ Pass |
-| TestStealthStatusEndpoint | SI8 | ✅ Pass |
+**Result: ✅ ALL PASS — 7 pass, 1 skip**
----
+| # | Test | Status | Duration |
+|---|------|--------|----------|
+| SI1 | TestStealthScriptInjected | ✅ Pass | 0.40s |
+| SI2 | TestCanvasNoiseApplied | ✅ Pass | 0.39s |
+| SI3 | TestFontMetricsNoise | ✅ Pass | 0.37s |
+| SI4 | TestWebGLVendorSpoofed | ⏭️ Skip (headless, no GPU) | 0.36s |
+| SI5 | TestPluginsPresent | ✅ Pass | 0.38s |
+| SI6 | TestFingerprintRotation | ✅ Pass | 0.38s |
+| SI7 | TestCDPTimezoneOverride | ✅ Pass | 0.40s |
+| SI8 | TestStealthStatusEndpoint | ✅ Pass | 0.39s |
-## Performance Metrics
+**Note:** TestFingerprintRotation logs a WARN about `hardwareConcurrency` redefinition — non-blocking, fingerprint rotation still works via CDP override.
-| Metric | Value |
-|--------|-------|
-| Build time | 0.45s (0.60s user, 0.43s sys) |
-| Binary size | 12M |
-| Unit test duration | 0.33s |
-| Integration test duration | 3.3s |
-| Benchmarks | No bench functions defined (ran 0 benchmarks) |
+Total integration suite duration: 3.251s
---
## TEST-PLAN.md Scenario Coverage
-### Automated (via `go test`)
-- **Section 1.2** N5 (invalid URL), N6 (missing URL), N7 (bad JSON) — via TestHandleNavigate_* ✅
-- **Section 1.3** S10 (no tab) — via TestHandleSnapshot_NoTab ✅
-- **Section 1.4** T4 (no tab) — via TestHandleText_NoTab ✅
-- **Section 1.5** A9 (unknown kind), A10 (missing kind), A11 (ref not found), A13 (no tab), A15 (empty batch) — via TestHandleAction_* ✅
-- **Section 1.6** TB4 (close no tabId), TB5 (bad action) — via TestHandleTab_* ✅
-- **Section 1.7** SS3 (no tab) — via TestHandleScreenshot_NoTab ✅
-- **Section 1.8** E3 (missing expression), E4 (bad JSON), E5 (no tab) — via TestHandleEvaluate_* ✅
-- **Section 1.9** C3 (no tab), C4 (bad JSON), C5 (empty cookies) — via TestHandleCookies_* ✅
-- **Section 1.10** ST1 (stealth status) — via TestHandleStealthStatus ✅
-- **Section 4** SI1-SI8 — integration tests ✅ (SI4 skip expected)
-
-### Not Automated (require running instance + curl)
-- Sections 1.1 (H1-H7), 1.2 (N1-N4, N8), 1.3 (S1-S9, S11-S12), 1.4 (T1-T3, T5)
-- Section 1.5 (A1-A8, A12, A14, A16-A17)
-- Section 1.6 (TB1-TB3, TB6), 1.7 (SS1-SS2), 1.8 (E1-E2)
-- Section 1.9 (C1-C2), 1.10 (ST2-ST8)
-- Section 2 (headed mode), Section 3 (multi-agent), Section 5 (Docker)
+### Covered by automated tests
+
+| Section | Scenarios Covered | Status |
+|---------|-------------------|--------|
+| 1.1 Health & Startup | H5 (auth required), H6 (auth accepted) — via TestAuthMiddleware | ✅ |
+| 1.2 Navigation | N5 (invalid URL), N6 (missing URL), N7 (bad JSON) — via TestHandleNavigate_* | ✅ |
+| 1.3 Snapshot | S2 (interactive filter), S3 (depth filter), S4 (text format), S6/S7 (diff), S10 (no tab) — via TestBuildSnapshot*, TestDiffSnapshot*, TestHandleSnapshot_NoTab | ✅ |
+| 1.4 Text | T4 (no tab) — via TestHandleText_NoTab | ✅ |
+| 1.5 Actions | A9 (unknown kind), A10 (missing kind), A11 (ref not found), A13 (no tab), A14/A15 (batch) — via TestHandleAction_*, TestHandleActions_* | ✅ |
+| 1.6 Tabs | TB4 (close no tabId), TB5 (bad action) — via TestHandleTab_* | ✅ |
+| 1.7 Screenshots | SS3 (no tab) — via TestHandleScreenshot_NoTab | ✅ |
+| 1.8 Evaluate | E3 (missing expr), E4 (bad JSON), E5 (no tab) — via TestHandleEvaluate_* | ✅ |
+| 1.9 Cookies | C3 (no tab), C4 (bad JSON), C5 (empty) — via TestHandleCookies_* | ✅ |
+| 1.10 Stealth | ST1 (status), ST2 (webdriver), ST4 (plugins), ST5/ST6 (fingerprint rotate), ST7 (no tab) — via integration + unit tests | ✅ |
+| 4. Integration | SI1–SI8 — via integration_test.go | ✅ (7 pass, 1 skip) |
+
+### Not covered by automated tests (require live browser / manual)
+
+| Section | Scenarios | Notes |
+|---------|-----------|-------|
+| 1.1 | H1-H4, H7 | Require running server |
+| 1.2 | N1-N4, N8 | Require live navigation |
+| 1.3 | S1, S5, S8, S9, S11, S12 | Require live browser |
+| 1.4 | T1-T3, T5 | Require live pages |
+| 1.5 | A1-A8, A12, A16, A17 | Require live DOM |
+| 1.6 | TB1-TB3, TB6 | Require running browser |
+| 1.7 | SS1-SS2 | Require running browser |
+| 1.8 | E1-E2 | Require live page |
+| 1.9 | C1-C2 | Require live browser |
+| 1.10 | ST3, ST8 | Require headed browser |
+| 1.11-1.12 | CF1-CF5, SP1-SP3 | Config & persistence (manual) |
+| 2 | HM1-HM3 | Headed mode (manual) |
+| 3 | MA1-MA8 | Multi-agent (manual) |
+| 4 | SI9-SI11 | Quarterly manual checks |
+| 5 | D1-D7 | Docker (manual) |
+| 6 | CF6-CF8 | Extended config (manual) |
+| 7 | ER1-ER8 | Edge cases (manual) |
---
## Known Issues (Section 8) Status
-| # | Issue | Status |
-|---|-------|--------|
-| K1 | Active tab tracking unreliable | 🔴 OPEN — still P0 |
-| K2 | Tab close hangs | 🟡 OPEN — still P1 |
-| K3 | x.com title empty | 🟢 OPEN — P2, SPA limitation |
-| K4 | Chrome flag warning | 🟢 OPEN — P2 |
-| K5 | Stealth PRNG weak | ✅ FIXED |
-| K6 | Chrome UA hardcoded | ✅ FIXED |
-| K7 | Fingerprint rotation JS-only | ✅ FIXED |
-| K8 | Timezone hardcoded | ✅ FIXED |
-| K9 | Stealth status hardcoded | ✅ FIXED |
+| # | Issue | Status | Notes |
+|---|-------|--------|-------|
+| K1 | Active tab tracking unreliable | 🔴 OPEN | Still requires explicit tabId workaround |
+| K2 | Tab close hangs | 🟡 OPEN | Not testable in unit tests |
+| K3 | x.com title always empty | 🟢 OPEN | SPA limitation |
+| K4 | Chrome flag warning banner | 🟢 OPEN | Chrome 144+ deprecation |
+| K5 | Stealth PRNG weak | ✅ FIXED | Confirmed via TestCanvasNoiseApplied |
+| K6 | Chrome UA hardcoded | ✅ FIXED | Confirmed via TestFingerprintRotation |
+| K7 | Fingerprint rotation JS-only | ✅ FIXED | CDP override confirmed in SI6 |
+| K8 | Timezone hardcoded EST | ✅ FIXED | Confirmed via TestCDPTimezoneOverride |
+| K9 | Stealth status hardcoded | ✅ FIXED | Confirmed via TestStealthStatusEndpoint |
---
-## Release Criteria (Section 9) Progress
-
-### Must Pass (P0)
-- ✅ `go test ./...` 100% pass (77 tests)
-- ✅ `go test -tags integration` pass (7 pass, 1 skip headless, 0 fail)
-- ❌ K1 (active tab tracking) — still open
-- ❌ K2 (tab close hangs) — still open
-- ⚠️ Zero crashes — no crashes observed this run
-- ⚠️ Section 1 curl scenarios — not yet automated in CI
-
-### Should Pass (P1)
-- ⚠️ Multi-agent scenarios — not automated
-- ⚠️ Stealth bot.sannysoft.com — manual only
-- ⚠️ Session persistence — not automated
-
-### Nice to Have (P2)
-- ⚠️ Coverage > 30% — not measured
-- ✅ K5-K9 fixed
-- ⚠️ K3-K4 documented but open
-- ✅ Performance baselined (build: 0.45s, binary: 12M)
+## Performance Metrics
+
+| Metric | Value |
+|--------|-------|
+| Build time | 0.139s (0.11s user, 0.42s system) |
+| Binary size | 12 MB |
+| Unit test duration | 0.190s |
+| Integration test duration | 3.251s |
+| Benchmarks | None defined (no Benchmark* functions found) |
+
+---
+
+## Summary
+
+- **Unit tests:** 54/54 pass ✅
+- **Integration tests:** 7/8 pass, 1 skip (WebGL headless) ✅
+- **Zero failures, zero crashes**
+- **Known issues K5–K9 confirmed fixed; K1–K4 remain open**
+- **Release criteria (Section 9):** Unit + integration gates met. P0 blockers K1 and K2 still open.