Skip to content

ChronoStack 0.1.0-alpha.10

Latest

Choose a tag to compare

@github-actions github-actions released this 24 Nov 05:06
· 3 commits to main since this release
ecd1f81

ChronoStack 0.1.0-alpha.10 (alpha): Stripe Test Clocks for your Docker Compose stack.

Install

Linux / macOS:

curl -fsSL https://github.com/Asmodeus14/ChronoStack/releases/download/v0.1.0-alpha.10/install.sh | CHRONOSTACK_VERSION=0.1.0-alpha.10 sh

Windows (PowerShell):

$env:CHRONOSTACK_VERSION = "0.1.0-alpha.10"; irm https://github.com/Asmodeus14/ChronoStack/releases/download/v0.1.0-alpha.10/install.ps1 | iex

Homebrew (macOS, Linux) or Scoop (Windows); both are updated a few minutes after this release is published:

brew install asmodeus14/tap/chronostack
scoop bucket add chronostack https://github.com/Asmodeus14/scoop-bucket
scoop install chronostack/chronostack

crates.io: cargo install chronostack@0.1.0-alpha.10.

Node SDK and Playwright helper on npm: npm install --save-dev chronostack@0.1.0-alpha.10.

The CLI pulls the matching controller image (ghcr.io/asmodeus14/chronostack-clockd:0.1.0-alpha.10, pinned by digest) on first chronostack up. Every file below is listed in SHA256SUMS; the SBOM is SPDX JSON.

Verified for this release

  • Automated: unit tests on Linux, Windows and macOS; end-to-end tests (M1–M4, init, shared mounts, expose and simulated users) on Linux x86_64 and arm64; a nightly check that simulated users on the virtual clock give the same timeline run after run; nightly queue-barrier tests against real BullMQ, Sidekiq and Celery workers; M1 and M2 with the native macOS CLI on an Intel macOS runner (Docker in a Linux VM); a smoke test that installs from these files on fresh Linux x86_64 and arm64 runners and runs the demo scenario; an install test on Apple-silicon and Intel macOS runners (installer, native binary, init and config; no Docker engine).
  • Manual checklist (not automated):
    • macOS on Apple silicon with a running Docker engine (Docker Desktop or OrbStack): not yet tested, see issue #5
    • Windows 11 + Docker Desktop (WSL2): tested by the maintainers during development

Changes

Added

  • Seeded network faults: fault set --rate 0.3 fails a share of requests and forwards the rest; --delay 2s or --delay 500ms..3s slows each request (real time, at most 25 s); both combine with --status. Draws come from --seed (in a scenario, the step's number by default), so the same requests fail on every run. Also in scenario fault: steps and the MCP fault_set tool; events and reports show each request's delay and window. The proxy has 16 workers per target (was 4), so delayed requests don't hold up the others.
  • chronostack doctor flags a service whose main process still runs the shim from another ChronoStack version (SHIM IN PID1 = STALE, shim_stale in --json, exit 3), and says to run down and up. This happens when the controller is replaced by a newer version while the app containers keep running.
  • chronostack/playwright: syncClock(page) sets the browser clock of a Playwright page or context to the virtual time and follows every advance, freeze and unfreeze (Playwright's page.clock, 1.45+). Checked with Playwright 1.52 and Chromium against the demo stack.
  • The Node SDK is published to npm as chronostack with each release (npm.yml, with provenance), starting with this release: npm install --save-dev chronostack.

Changed

  • The controller leaves an installed shim alone when its contents are identical, so restarting the controller no longer replaces the file under running services.