Skip to content

NamespaceMetricCapture in Nexus tests#9938

Open
stephanos wants to merge 1 commit intomainfrom
stephanos/nexus-new-metrics
Open

NamespaceMetricCapture in Nexus tests#9938
stephanos wants to merge 1 commit intomainfrom
stephanos/nexus-new-metrics

Conversation

@stephanos
Copy link
Copy Markdown
Contributor

@stephanos stephanos commented Apr 13, 2026

What changed?

Use the new NamespaceMetricCapture etc in Nexus tests.

Why?

Allows to remove a few dedicated cluster options; ie run faster.

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/nexus-new-metrics branch 3 times, most recently from ed9af24 to 1655e0e Compare April 13, 2026 23:43
env *NexusTestEnv,
url string,
completion nexusrpc.CompleteOperationOptions,
) (map[string][]*metricstest.CapturedRecording, error) {
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.

Callers track metrics themselves now because they need to distinguish between namespace vs global

@stephanos stephanos force-pushed the stephanos/nexus-new-metrics branch 2 times, most recently from bfc5322 to da88682 Compare April 13, 2026 23:51
@stephanos stephanos force-pushed the stephanos/nexus-new-metrics branch from da88682 to b8aaae9 Compare April 13, 2026 23:58

func (s *NexusWorkflowTestSuite) sendNexusCompletionRequest(
ctx context.Context,
env *NexusTestEnv,
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.

Not needed anymore


s.Run("NamespaceNotFoundNoIdentifier", func(s *NexusWorkflowTestSuite) {
env := s.newNexusWorkflowTestEnv(chasmEnabled)
env := s.newNexusWorkflowTestEnv(chasmEnabled, testcore.WithDedicatedCluster())
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.

Added wherever StartGlobalMetricCapture was used

}

func (s *NexusAPIValidationTestSuite) TestNexusStartOperation_WithNamespaceAndTaskQueue_NamespaceNotFound() {
env := newNexusTestEnv(s.T(), false, testcore.WithDedicatedCluster())
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.

Not needed as using StartNamespaceMetricCapture

@stephanos stephanos marked this pull request as ready for review April 14, 2026 00:14
@stephanos stephanos requested review from a team as code owners April 14, 2026 00:14
@stephanos stephanos requested a review from long-nt-tran April 14, 2026 00:14
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