Skip to content

release: To Prod#1379

Merged
suisuss merged 4 commits into
prodfrom
staging
May 26, 2026
Merged

release: To Prod#1379
suisuss merged 4 commits into
prodfrom
staging

Conversation

@suisuss

@suisuss suisuss commented May 26, 2026

Copy link
Copy Markdown

No description provided.

suisuss added 2 commits May 26, 2026 15:09
The test "TTL boundary: flag at TTL_MS - 1ms old is still fresh" was failing
due to timing precision issues. A gap between calculating the flag timestamp
and checking freshness allowed Date.now() to advance, causing the boundary
to shift and the test to fail intermittently.

Solution: Modified isFlagFresh() to accept a reference time parameter and
updated all callers to pass Date.now() at the same point in time. This
ensures consistent time calculations and eliminates the timing race condition.

Fixes: Failed test in pending-template-runner-auth-event.test.ts:213
fix: resolve TTL timing test flakiness by capturing reference time
suisuss added 2 commits May 26, 2026 16:03
…ispatch

Scheduled (K8s job + in-process) and MCP workflow executions never passed
ownerId into executeWorkflow, so the KEEP-613 database-query authorization
check ran with a null-userId principal and rejected org-visibility
integrations - surfacing to users as "DATABASE_URL is not configured".

Centralise executor input construction in buildExecutorInput so every
dispatch entry point derives ownerId/organizationId from the workflow row,
and add a unit test pinning the owner derivation.
fix: thread workflow owner into scheduled and MCP executor dispatch
@suisuss suisuss merged commit 0f283c6 into prod May 26, 2026
23 checks passed
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