Skip to content

Add test verifying worker command polls omit versioning metadata - #3004

Merged
rkannan82 merged 4 commits into
mainfrom
kannan/fix-versioning-test
Aug 13, 2026
Merged

Add test verifying worker command polls omit versioning metadata#3004
rkannan82 merged 4 commits into
mainfrom
kannan/fix-versioning-test

Conversation

@rkannan82

@rkannan82 rkannan82 commented Aug 12, 2026

Copy link
Copy Markdown
Contributor

What

Harden the versioning assertions in ActivityCancellationTokenIntegrationTest by configuring the worker with deployment options and asserting both sides: normal nexus polls carry deploymentOptions, worker-command polls do not.

Why

The test added in #2987 uses an unversioned worker, so the assertions that worker-command polls omit versioning metadata pass trivially — no poll carries versioning info.

How did you test it?

Unit test verified against real server in CI ("Unit test with CLI" job).

🤖 Generated with Claude Code

@rkannan82 rkannan82 changed the title Strengthen versioning test for worker command nexus polls Harden versioning test for worker command nexus polls Aug 12, 2026
Add a dedicated test that starts a worker with deployment options and
verifies via gRPC interceptor that normal nexus polls carry
deploymentOptions while worker-command polls do not. This strengthens
the coverage from #2987 where the existing test used an unversioned
worker, making the assertions pass trivially.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@rkannan82
rkannan82 force-pushed the kannan/fix-versioning-test branch from f93b3bc to 7ff9ebd Compare August 12, 2026 22:31
@rkannan82 rkannan82 changed the title Harden versioning test for worker command nexus polls Add test verifying worker command polls omit versioning metadata Aug 12, 2026
rkannan82 and others added 2 commits August 12, 2026 17:58
- Register EchoNexusServiceImpl so the normal nexus poller starts
  (without it, NexusTaskHandlerImpl.start() returns false and no
  normal nexus polls are issued, making the positive assertion fail)
- Bump test timeout from 15s to 30s for headroom

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@rkannan82
rkannan82 marked this pull request as ready for review August 13, 2026 17:10
@rkannan82
rkannan82 requested a review from a team as a code owner August 13, 2026 17:10
@rkannan82
rkannan82 requested a review from Sushisource August 13, 2026 17:10
Configure deployment options (without useVersioning) on the existing
ActivityCancellationTokenIntegrationTest worker, register a nexus
service so the normal poller starts, and assert both sides: normal
polls carry deploymentOptions, worker-command polls do not.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@rkannan82
rkannan82 merged commit 28619b8 into main Aug 13, 2026
28 of 29 checks passed
@rkannan82
rkannan82 deleted the kannan/fix-versioning-test branch August 13, 2026 19: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.

2 participants