Repository navigation
Conversation
TEMPORARY, not for merge. Creates and deletes one Nexus endpoint through the Cloud Ops API in the Cloud job, logging whether the CI API key is permitted to. Nexus suites can only run against Cloud if endpoints can be created this way, since Cloud rejects the OperatorService. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Temporal Cloud only manages Nexus endpoints through the Cloud Ops API, and new endpoints take minutes to become callable, so tests cannot create their own. - List the task queue of every test that calls registerNexusEndpoint() in a checked-in manifest. registerNexusEndpoint() fails for a missing entry, so local runs catch new or renamed tests. - Add a `nexus-endpoints` command to cloud-namespace.ts. It creates one endpoint per task queue of the Cloud-eligible test files, named after the run's namespace, then calls each endpoint until it responds and waits 30s more, as the Nexus team's own Cloud tests do. - On Cloud, registerNexusEndpoint() returns the pre-created endpoint's name. - The delete step removes the run's endpoints before the namespace, and creation removes endpoints leaked by runs that died before cleanup. - Remove redundant endpoint deletion from test-nexus-workflow-caller; the helper's teardown already deletes the endpoint. - Run test-integration-extstore-nexus on Cloud as the first Nexus suite. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…' into ci/cloud-nexus-endpoint-pool
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What was changed
packages/test/src/nexus-endpoint-manifest.tslists the task queue of every test that callsregisterNexusEndpoint(), grouped by test file name (including suffixes such as.cloud-unavailable).registerNexusEndpoint()fails for a task queue missing from it, so local runs catch new or renamed tests.nexus-endpoints <namespace>command in.github/scripts/cloud-namespace.tscreates one endpoint per task queue of the Cloud-eligible test files. Each name is<namespace name>-<hash of task queue>. It then calls each endpoint until it responds (every 200ms, up to 3 min) and waits 30s more, as the Nexus team's own Cloud tests do.TEMPORAL_TEST_NEXUS_ENDPOINT_PREFIXset),registerNexusEndpoint()returns the pre-created endpoint's name instead of creating one. Local behavior is unchanged.sdk-typescript-ci-*endpoints whose namespace no longer exists, left behind by runs that died before cleanup.deleteNexusEndpointcalls fromtest-nexus-workflow-caller; the helper's teardown already deletes the endpoint.test-integration-extstore-nexusnow runs on Cloud, as the first Nexus suite.Why?
The Nexus suites are
.cloud-unavailablebecause they create endpoints through the OperatorService, which Cloud rejects. Cloud manages endpoints through the Cloud Ops API instead, and new endpoints take minutes to become callable. So tests can't create their own, and we create them all once per run.Endpoints are per-run because each one routes to a single namespace and task queue, and every run has its own namespace. Over Oct 7-13, 101 of 116 Cloud jobs overlapped another, so endpoints shared between runs would collide on task queues.
How was this tested?
query Nexus operation attaches the response link..., which fails the same way onmain.Follow-ups
.cloud-unavailableand renaming the suite's manifest key to match (the manifest check flags a stale key locally). Several need account dynamic config first.MaxNexusEndpointsbefore about 85 endpoints per run times concurrent runs exceeds it.🤖 Generated with Claude Code