Skip to content

Fix Windows-breaking workflowsPath + version drift + coverage (45->49)#1

Merged
madetocreate merged 1 commit into
mainfrom
oss-improve/coverage-and-correctness
Jun 21, 2026
Merged

Fix Windows-breaking workflowsPath + version drift + coverage (45->49)#1
madetocreate merged 1 commit into
mainfrom
oss-improve/coverage-and-correctness

Conversation

@madetocreate

Copy link
Copy Markdown
Contributor

What

Template-correctness + fork DX. (Determinism audited clean against the current Temporal TS SDK via context7 — genuinely solid repo.) Built against public HEAD 4604293.

  • Windows-breaking bug: all 5 worker.ts used new URL(...).pathname for workflowsPath, which yields /C:/... on Windows (invalid path -> worker will not boot). Switched to fileURLToPath (matching what the tests already use).
  • Version drift fixed: all 7 package.json were 0.0.1 while README said v0.1.0 and CI v0.1.1 — aligned to 0.1.1 + CHANGELOG.
  • Coverage: HostedMemoryClient timeout/AbortController path + saga all-compensations-succeed branch.
  • +4 tests.

Tests 45 -> 49. Version 0.0.1 -> 0.1.1 (resolves drift). No publish in this PR.

…version sync

All five worker.ts files resolved workflowsPath via
`new URL("./workflows.js", import.meta.url).pathname`. On Windows
URL.pathname returns a drive-prefixed path (`/C:/...`) that is not a
valid filesystem path, so Worker.create() cannot find the workflow
bundle and the worker fails to boot. Switched to
`fileURLToPath(new URL(...))` — the same ESM-correct helper the test
files already use and that the v0.1.0 anti-patterns section documents.
Forks on Windows now boot.

Coverage:
- HostedMemoryClient: tested the per-request timeout/AbortController path
  (hung backend aborts after timeoutMs → status-less MemoryClientError =
  retryable at the activity layer, original AbortError preserved on
  `cause`), plus decide() HTTP success + missing-id paths and baseUrl
  trailing-slash normalization. Adapter suite 16 -> 20.
- T03 saga: the all-compensations-succeed rollback path now asserts the
  persisted mistake learning takes the "All compensations succeeded"
  branch and does NOT carry the `compensation-failure` tag.

Version consistency: every workspace package.json was 0.0.1 while the
README badge said v0.1.0 and the CI comment said v0.1.1. Aligned all
seven packages + lockfile + README + CI + CHANGELOG to 0.1.1.

Determinism audit: all five workflow files are clean (no
Date.now/Math.random/IO in workflow code; T04 correctly captures
wall-clock via a captureRunAt activity). No determinism fixes needed.

Build green, 49/49 tests pass (was 45/45), npm ci consistent.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@madetocreate madetocreate merged commit 4028791 into main Jun 21, 2026
2 checks passed
@madetocreate madetocreate deleted the oss-improve/coverage-and-correctness branch June 21, 2026 16:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant