Skip to content

patrol_plus v5.0.2

Choose a tag to compare

@github-actions github-actions released this 29 Jun 17:14
· 72 commits to master since this release
a8085e9
  • FIX(patrol_plus): web init no longer reports a spurious "Total: 0" by capping the $dartRunMain (DDC-detection) waitForFunction timeout at min(initTimeout, 60s). Previously initTimeout (e.g. PATROL_WEB_INIT_TIMEOUT=300s) was used for that wait; in profile/release/WASM builds $dartRunMain never appears, so the wait ran until the per-test --web-timeout (e.g. 120s) fired and Playwright closed the page — the catch then swallowed the "Target page, context or browser has been closed" error and the subsequent waitForFunction(__patrol__onInitialised) rethrew on the dead page, so PatrolLogReader saw zero Dart test events. With the cap, in profile mode the detection fails fast (≤60s) while the page is alive and __patrol__onInitialised (set by the auto-executing dart2js bundle) is found; in DDC mode 60s is comfortably enough for all modules to load from localhost. Fixes #6. (0d575b2d)
  • FIX(patrol_plus): make web --web-shard deterministic and immune to the flaky empty-shard "Total: 0" hang. globalSetup now persists the discovered test list to a worker-safe file (.patrol_tests.json) instead of relying solely on the PATROL_TESTS env mutation, which does not cross Playwright's main->worker process boundary. test.spec.ts round-robin self-shards on PATROL_WEB_SHARD (disjoint subsets, exact union, balanced, never empty while shards <= test count), native Playwright shard is removed to avoid double-sharding, and an over-provisioned shard registers a passing placeholder so the run exits 0 instead of idling to the global timeout.

Published to pub.dev: https://pub.dev/packages/patrol_plus/versions/5.0.2