message.pb.go ×5

Frontier kind: Code frontier

unlabeled · c_96a373c81ee4

3 tests · 2862 LOC · 137 files · introduces 0 tests · 48 LOC · 2 files

Introduces — evidence that enters the hierarchy at this concept

Code
9 ranges48 lines · 2 files
Tests
0 tests

Contains — complete concept membership

All code (extent)
444 ranges2862 lines · 137 files · Browse complete extent
All tests (intent)
3 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: 48 introduced LOC across 9 ranges. Expand a file to inspect source; the > gutter marks introduced lines.

go.temporal.io/server/api/deployment/v1/message.pb.go 26 introduced LOC · 5 ranges

Open complete file

3702 }
3703
3704 > func (x *UpdateComputeConfigArgs) Reset() { message.pb.go
3705 > *x = UpdateComputeConfigArgs{}
3706 > mi := &file_temporal_server_api_deployment_v1_message_proto_msgTypes[55]
3707 > ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
3708 > ms.StoreMessageInfo(mi)
3709 > }
3710
3711 func (x *UpdateComputeConfigArgs) String() string {
3715 func (*UpdateComputeConfigArgs) ProtoMessage() {}
3716
3717 > func (x *UpdateComputeConfigArgs) ProtoReflect() protoreflect.Message { message.pb.go
3718 > mi := &file_temporal_server_api_deployment_v1_message_proto_msgTypes[55]
3719 > if x != nil {
3720 > ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
3721 > if ms.LoadMessageInfo() == nil {
3722 > ms.StoreMessageInfo(mi)
3723 > }
3724 > return ms
3725 }
3726 return mi.MessageOf(x)
3732 }
3733
3734 > func (x *UpdateComputeConfigArgs) GetIdentity() string { message.pb.go
3735 > if x != nil {
3736 > return x.Identity
3737 > }
3738 return ""
3739 }
3746 }
3747
3748 > func (x *UpdateComputeConfigArgs) GetUpsertScalingGroups() map[string]*v12.ComputeConfigScalingGroupUpdate { message.pb.go
3749 > if x != nil {
3750 > return x.UpsertScalingGroups
3751 > }
3752 return nil
3753 }
3754
3755 > func (x *UpdateComputeConfigArgs) GetRemoveScalingGroups() []string { message.pb.go
3756 > if x != nil {
3757 > return x.RemoveScalingGroups
3758 > }
3759 return nil
3760 }
go.temporal.io/server/service/worker/workerdeployment/version_workflow.go 22 introduced LOC · 4 ranges

Open complete file

433 }
434
435 > func (d *VersionWorkflowRunner) validateUpdateVersionComputeConfig(args *deploymentspb.UpdateComputeConfigArgs) error { version_workflow.go
436 > return d.ensureNotDeleted()
437 > }
438
439 > func (d *VersionWorkflowRunner) handleUpdateVersionComputeConfig(ctx workflow.Context, args *deploymentspb.UpdateComputeConfigArgs) (*deploymentspb.UpdateComputeConfigResponse, error) { version_workflow.go
440 > if err := d.preUpdateChecks(ctx); err != nil {
441 return nil, err
442 }
443
444 > if err := d.computeConfigLock.Lock(ctx); err != nil { version_workflow.go
445 d.logger.Error("Could not acquire compute config lock in version workflow", "error", err)
446 return nil, err
447 }
448 > defer d.computeConfigLock.Unlock() version_workflow.go
449 >
450 > // Update or delete the Worker Controller Instance based on the new config.
451 > apiVersion := &deploymentpb.WorkerDeploymentVersion{
452 > DeploymentName: d.VersionState.Version.DeploymentName,
453 > BuildId: d.VersionState.Version.BuildId,
454 > }
455 > activityCtx := workflow.WithActivityOptions(ctx, defaultActivityOptions)
456 > var computeConfigSummary *computepb.ComputeConfigSummary
457 > err := workflow.ExecuteActivity(activityCtx, d.a.UpdateWorkerControllerInstance, &deploymentspb.UpdateWorkerControllerInstanceInput{
458 > Version: apiVersion,
459 > Identity: args.GetIdentity(),
460 > UpsertScalingGroups: args.GetUpsertScalingGroups(),
461 > RemoveScalingGroups: args.GetRemoveScalingGroups(),
462 > }).Get(ctx, &computeConfigSummary)
463 > if err != nil {
464 var appErr *temporal.ApplicationError
465 if errors.As(err, &appErr) && appErr.Type() == errInvalidComputeConfig {