workflow.go ×3

Frontier kind: Code frontier

unlabeled · c_56d46e2e2338

74 tests · 3284 LOC · 136 files · introduces 0 tests · 15 LOC · 2 files

Introduces — evidence that enters the hierarchy at this concept

Code
4 ranges15 lines · 2 files
Tests
0 tests

Contains — complete concept membership

All code (extent)
546 ranges3284 lines · 136 files · Browse complete extent
All tests (intent)
74 testsBrowse complete intent

Neighbourhood graph

The orange circle is the focus. Violet and green circles are every ancestor and descendant, broader and narrower, at any distance; blue squares and pink diamonds are the introduced files and exact introduced tests of every visible concept, not only the focus's. Arrows point from broader to narrower concepts and bridge only concepts omitted from this view. Undirected links show source or test introduction. Concept and file size follows LOC; exact test nodes use test-count units.

Introduced files, introduced tests, and structurally relevant concept specialization

In the embedded map, ordinary wheel input scrolls the page; use the visible controls to zoom and drag to pan. Open the full-screen map for canvas navigation: wheel pans, Ctrl/Command plus wheel zooms, and arrow keys pan when this region is focused. On touch screens, open the full-screen map to pan or pinch. If JavaScript or WebGL is unavailable, use the native relationship evidence on this page.

Graph controls are ready.

Interactive rendering requires JavaScript and WebGL. Use the native relationship evidence on this page while the interactive map is unavailable.

Native relationship evidence

Every exact file and test below is linked only from the concept that introduces it.

Introduced tests

Every collected test enters the hierarchy at exactly one concept.

No tests are introduced at this concept. Its intent tests are introduced by other concepts.

Introduced code

Every collected source range enters the hierarchy at exactly one concept.

2 files ranked by introduced lines: 15 introduced LOC across 4 ranges. Expand a file to inspect source; the > gutter marks introduced lines.

go.temporal.io/server/api/deployment/v1/message.pb.go 8 introduced LOC · 1 range

Open complete file

2358 func (*SetCurrentVersionResponse) ProtoMessage() {}
2359
2360 > func (x *SetCurrentVersionResponse) ProtoReflect() protoreflect.Message { message.pb.go
2361 > mi := &file_temporal_server_api_deployment_v1_message_proto_msgTypes[33]
2362 > if x != nil {
2363 > ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
2364 > if ms.LoadMessageInfo() == nil {
2365 > ms.StoreMessageInfo(mi)
2366 > }
2367 > return ms
2368 }
2369 return mi.MessageOf(x)
go.temporal.io/server/service/worker/workerdeployment/workflow.go 7 introduced LOC · 3 ranges

Open complete file

1428 d.setVersionSummaryDraining(prevCurrentVersion, updateTime)
1429 }
1430 > } else { workflow.go
1431 > // TODO (Shivam): remove the empty string check once canary stops flaking out
1432 > if prevCurrentVersion != worker_versioning.UnversionedVersionId && prevCurrentVersion != "" {
1433 // Tell previous current that it's no longer current
1434 prevUpdateArgs := &deploymentspb.SyncVersionStateUpdateArgs{
1450
1451 //nolint:staticcheck // deprecated stuff will be cleaned
1452 > if newCurrentVersion == worker_versioning.UnversionedVersionId && d.State.RoutingConfig.RampingVersion == worker_versioning.UnversionedVersionId && workflow.go
1453 > // this step is not needed in async mode because the task queues got full routing info (including removed ramp) through the previous version.
1454 > !asyncMode {
1455 // If the new current is unversioned, and it was previously ramping, we need to tell
1456 // all the task queues with unversioned ramp that they no longer have unversioned ramp.
1471 // unversioned ramps, because current and ramping cannot both be unversioned.
1472
1473 > d.State.RoutingConfig = pendingRoutingConfig workflow.go
1474 }
1475 }