Skip to content

Dual-populate HSM routing fields in CHASM callback tokens#10193

Open
stephanos wants to merge 1 commit intomainfrom
stephanos/failed-get-ns
Open

Dual-populate HSM routing fields in CHASM callback tokens#10193
stephanos wants to merge 1 commit intomainfrom
stephanos/failed-get-ns

Conversation

@stephanos
Copy link
Copy Markdown
Contributor

@stephanos stephanos commented May 7, 2026

What changed?

Populate (deprecated) namespaceId and workflowId fields in CHASM completion token as well.

Why?

When the Nexus caller is on CHASM but the Nexus handler is a workflow with HSM-based completion callbacks, the system callback router cannot extract a namespace ID and fails with "NamespaceID is empty".

See also #10194 which attempts to patch this on the handler side (likely not sufficient, though).

How did you test it?

  • built
  • run locally and tested manually
  • covered by existing tests
  • added new unit test(s)
  • added new functional test(s)

@stephanos stephanos force-pushed the stephanos/failed-get-ns branch 2 times, most recently from a83389c to fd3f14a Compare May 7, 2026 20:55
@stephanos stephanos changed the title [SANO] Dual-populate HSM routing fields in CHASM callback tokens Dual-populate HSM routing fields in CHASM callback tokens May 7, 2026
@stephanos stephanos force-pushed the stephanos/failed-get-ns branch 4 times, most recently from d8af7db to f73c50c Compare May 7, 2026 21:22
require.Equal(t, enumspb.NEXUS_OPERATION_EXECUTION_STATUS_COMPLETED, descResp.GetInfo().GetStatus())
}, 30*time.Second, 200*time.Millisecond)
}

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

^ repro for issue

@stephanos stephanos force-pushed the stephanos/failed-get-ns branch 3 times, most recently from 2749db6 to 78f4a37 Compare May 7, 2026 21:35
@stephanos stephanos force-pushed the stephanos/failed-get-ns branch from 78f4a37 to 17f8fb0 Compare May 7, 2026 21:38
ComponentRef: serializedRef,
NamespaceId: namespaceID,
WorkflowId: businessID,
RunId: runID,
Copy link
Copy Markdown
Contributor Author

@stephanos stephanos May 7, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

RunId is not strictly needed, but still setting it for consistency.

@stephanos stephanos marked this pull request as ready for review May 7, 2026 21:39
@stephanos stephanos requested review from a team as code owners May 7, 2026 21:39
@stephanos stephanos requested a review from bergundy May 7, 2026 21:48
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