Skip to content

test(sdk): synchronize restart activity cleanup - #1393

Merged
samuv merged 1 commit into
mainfrom
t3code/address-issue-1386
Sep 11, 2026
Merged

samuv merged 1 commit into
mainfrom
t3code/address-issue-1386

Conversation

@samuv

@samuv samuv commented Sep 11, 2026

Copy link
Copy Markdown
Contributor

Summary

  • make the durable activity restart test use process exit as the local flock handoff boundary instead of sleeping past an artificial lease TTL
  • restore the production lease TTL in the E2E harness so CI scheduling cannot make the replacement daemon lose its own lease
  • explicitly close the adopted session and await server acknowledgement before destructive teardown

Development stage

  • Plan / Interface — Bounded/Architectural behavioral and exact-interface contract; no implementation
  • Implementation — based on an approved, merged Plan / Interface PR
  • Combined — compact one-task Bounded/Architectural exception; no separate plan PR,
    and the in-PR plan declares **Expected tasks:** 1, a non-placeholder
    **Combined rationale:**, and no runtime/public/operator/persistence/trust-boundary
    interface change (None — rationale; workflow-only meta-changes may review process
    docs/skills here)
  • Spike / Routine — acceptance-plan spine exempt; Spike evidence does not ship as-is

Contract linkage

  • Work classification: Routine
  • Classification rationale: test-only synchronization fix; no runtime, public, persistence, or trust-boundary interface changes
  • Decision record: None — no architectural decision changes
  • Human waiver of spine: No
  • Acceptance plan: N/A — Routine test fix
  • Human decisions resolved and recorded: N/A — no product decision required
  • Plan / Interface PR: N/A
  • Approved commit baseline: N/A
  • Combined/exemption rationale: N/A — Routine

Interface conformance

  • No interface changes. The E2E harness now follows the existing local flock and Session.close() lifecycle contracts.

Issue relationship

Fixes #1386

Type of change

  • Behavioral/interface plan
  • Bug fix
  • New feature
  • Refactoring (no behavior change)
  • Dependency update
  • Documentation/process
  • Other (describe):

Test plan

Baseline checks

  • Acceptance-plan checker — Routine change
  • Linting (task lint) — SDK lint run directly
  • Offline test suite (task test) — SDK tests run directly
  • Offline demo (go run ./cmd/mecademo) — not applicable
  • Markdown changed: docs generation/link checks (task docs) — no Markdown changed
  • User docs/user-facing behavior changed: site build (task site:build) — no user-facing change
  • Guarded engine API affected: compatibility check (task api:check) — engine API unaffected
  • Intentional engine API change: task api:update + engine/CHANGELOG.md — no engine API change
  • Landed plan: strict acceptance trace (task ac-trace-strict) — no acceptance plan
  • Final implementation review: /panel-review

Focused verification:

  • pnpm run lint
  • pnpm run typecheck
  • pnpm run test — 210 tests passed
  • activity restart E2E — 5 consecutive runs passed
  • Node-capable full E2E paths — 28 tests passed

Changes

File Change
sdk/typescript/e2e/harness.ts Remove the TTL sleep and artificial 300 ms lease lifetime
sdk/typescript/e2e/activity.e2e.test.ts Await explicit session close before deletion

User-facing change

None.

Special notes for reviewers

The complete local Bun matrix could not run because bun is not installed in this workspace. CI provides Bun and will exercise those two runtime-dependent paths.

Co-authored-by: OpenAI <[email protected]>

Signed-off-by: Samuele Verzi <[email protected]>
@samuv samuv self-assigned this Sep 11, 2026
@samuv
samuv merged commit dd5e799 into main Sep 11, 2026
33 checks passed
@samuv
samuv deleted the t3code/address-issue-1386 branch September 11, 2026 09:42
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.

test(sdk): make daemon-restart activity E2E wait for lease release

1 participant