require_ctx.go ×4

Frontier kind: Code frontier

unlabeled · c_9e42d93e8d5f

47 tests · 91 LOC · 4 files · introduces 0 tests · 9 LOC · 1 file

Introduces — evidence that enters the hierarchy at this concept

Code
4 ranges9 lines · 1 files
Tests
0 tests

Contains — complete concept membership

All code (extent)
28 ranges91 lines · 4 files · Browse complete extent
All tests (intent)
47 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.

Introduced files, introduced tests, and structurally relevant concept specializationfx.go ×1 · 4 introduced LOCfx.go ×1collector.go ×7 · 33 introduced LOCcollector.go ×7data_store_factory.go ×29 · 703 introduced LOCdata_store_factory.go ×2…TestNewServer · 0 introduced LOCTestNewServermetric_client.go ×3 · 18 introduced LOCmetric_client.go ×3request_response.pb.go ×12 · 137 introduced LOCrequest_response.pb.go ×…TestFailAddTaskWithHistoryExhausted, TestFailAddTaskWithHistoryExhausted · 0 introduced LOCTestFailAddTaskWithHisto…TestFailAddTaskWithHistoryExhausted · 0 introduced LOCTestFailAddTaskWithHisto…TestFailAddTaskWithHistoryError, TestFailAddTaskWithHistoryError · 0 introduced LOCTestFailAddTaskWithHisto…TestFailAddTaskWithHistoryError · 0 introduced LOCTestFailAddTaskWithHisto…task_queue_partition_manager.go ×1 · 3 introduced LOCtask_queue_partition_man…TestTaskAddHooks_QueryDispatch_UsesSelectedQueueVersion · 0 introduced LOCTestTaskAddHooks_QueryDi…TestTaskAddHooks_QueryDispatch_UsesSelectedQueueVersion · 0 introduced LOCTestTaskAddHooks_QueryDi…TestTaskAddHooks_NexusDispatch_FiresWhenNoPollers · 0 introduced LOCTestTaskAddHooks_NexusDi…TestTaskAddHooks_QueryDispatch_UsesSelectedQueueVersion · 0 introduced LOCTestTaskAddHooks_QueryDi…TestTaskAddHooks_NexusDispatch_FiresWhenNoPollers · 0 introduced LOCTestTaskAddHooks_NexusDi…TestTaskAddHooks_QueryDispatch_FiresWhenNoPollers · 0 introduced LOCTestTaskAddHooks_QueryDi…TestTaskAddHooks_QueryDispatch_FiresWhenNoPollers · 0 introduced LOCTestTaskAddHooks_QueryDi…TestHasAnyPollerAfter · 0 introduced LOCTestHasAnyPollerAfterTestHasPollerAfter_Unversioned · 0 introduced LOCTestHasPollerAfter_Unver…TestHasPollerAfter_Versioned · 0 introduced LOCTestHasPollerAfter_Versi…TestTaskAddHooks_NexusDispatch_FiresWhenNoPollers · 0 introduced LOCTestTaskAddHooks_NexusDi…TestHasAnyPollerAfter · 0 introduced LOCTestHasAnyPollerAfterTestHasPollerAfter_Versioned · 0 introduced LOCTestHasPollerAfter_Versi…TestHasPollerAfter_Unversioned · 0 introduced LOCTestHasPollerAfter_Unver…task_queue_partition_manager.go ×6 · 16 introduced LOCtask_queue_partition_man…TestTaskAddHooks_QueryDispatch_FiresWhenNoPollers · 0 introduced LOCTestTaskAddHooks_QueryDi…TestHasAnyPollerAfter · 0 introduced LOCTestHasAnyPollerAfterTestHasPollerAfter_Versioned · 0 introduced LOCTestHasPollerAfter_Versi…TestHasPollerAfter_Unversioned · 0 introduced LOCTestHasPollerAfter_Unver…task_queue_partition_manager.go ×2 · 8 introduced LOCtask_queue_partition_man…task_queue_partition_manager.go ×1 · 4 introduced LOCtask_queue_partition_man…task_queue_partition_manager.go ×1 · 3 introduced LOCtask_queue_partition_man…task_queue_partition_manager.go ×1 · 1 introduced LOCtask_queue_partition_man…task_queue_partition_manager.go ×2 · 6 introduced LOCtask_queue_partition_man…config.go ×1 · 8 introduced LOCconfig.go ×1TestExpiredTasksOnRead_EmitTasksDropped · 0 introduced LOCTestExpiredTasksOnRead_E…TestExpiredTasksOnRead_EmitTasksDropped · 0 introduced LOCTestExpiredTasksOnRead_E…TestShrinksAgain · 0 introduced LOCTestShrinksAgainTestAwaitTrueFalseRetry · 0 introduced LOCTestAwaitTrueFalseRetryRequiref_includes_message_on_timeout · 0 introduced LOCRequiref_includes_messag…require_ctx.go ×1 · 1 introduced LOCrequire_ctx.go ×1reports_all_attempt_errors_on_timeout · 0 introduced LOCreports_all_attempt_erro…reports_timeout · 0 introduced LOCreports_timeoutmap_request_rate_limiter_impl.go ×1 · 2 introduced LOCmap_request_rate_limiter…report.go ×1 · 9 introduced LOCreport.go ×1report.go ×1 · 5 introduced LOCreport.go ×1RequireTruef_includes_message_on_timeout · 0 introduced LOCRequireTruef_includes_me…reports_timeout · 0 introduced LOCreports_timeoutTestRequireTrue_RetriesFalseUntilTrue · 0 introduced LOCTestRequireTrue_RetriesF…require_ctx.go ×1 · 2 introduced LOCrequire_ctx.go ×1require_true.go ×1 · 2 introduced LOCrequire_true.go ×1require_true.go ×1 · 2 introduced LOCrequire_true.go ×1Fatalf · 0 introduced LOCFatalfFatal · 0 introduced LOCFatalFailNow · 0 introduced LOCFailNowErrorf · 0 introduced LOCErrorfTestRequire_PollIntervalStartsAfterAttemptFinishes · 0 introduced LOCTestRequire_PollInterval…require_ctx.go ×1 · 3 introduced LOCrequire_ctx.go ×1require_ctx.go ×1 · 1 introduced LOCrequire_ctx.go ×1require_ctx.go ×1 · 1 introduced LOCrequire_ctx.go ×1require_ctx.go ×2 · 4 introduced LOCrequire_ctx.go ×2require_ctx.go ×3 · 11 introduced LOCrequire_ctx.go ×3require_ctx.go ×1 · 1 introduced LOCrequire_ctx.go ×1require_ctx.go ×1 · 1 introduced LOCrequire_ctx.go ×1require_ctx.go ×8 · 38 introduced LOCrequire_ctx.go ×8config.go ×1 · 12 introduced LOCconfig.go ×1config.go ×2 · 10 introduced LOCconfig.go ×2t.go ×1 · 3 introduced LOCt.go ×1TestOperatorServiceMetadata, TestWorkflowServiceMetadata · 0 introduced LOCTestOperatorServiceMetad…go.temporal.io/server/api/adminservice/v1/request_response.pb.go · 6661 LOCv1/request_response.pb.g…go.temporal.io/server/api/adminservice/v1/service_grpc.pb.go · 1894 LOCv1/service_grpc.pb.gogo.temporal.io/server/api/persistence/v1/executions.pb.go · 5768 LOCv1/executions.pb.gogo.temporal.io/server/api/persistence/v1/namespaces.pb.go · 560 LOCv1/namespaces.pb.gogo.temporal.io/server/client/history/client_gen.go · 1548 LOChistory/client_gen.gogo.temporal.io/server/client/history/metric_client.go · 119 LOChistory/metric_client.gogo.temporal.io/server/common/log/with_logger.go · 68 LOClog/with_logger.gogo.temporal.io/server/common/namespace/nsregistry/registry.go · 898 LOCnsregistry/registry.gogo.temporal.io/server/common/persistence/client/fx.go · 241 LOCclient/fx.gogo.temporal.io/server/common/persistence/persistence_metric_clients.go · 1465 LOCpersistence/persistence_…go.temporal.io/server/common/persistence/persistence_rate_limited_clients.go · 1186 LOCpersistence/persistence_…go.temporal.io/server/common/persistence/sql/sqlplugin/sqlite/plugin.go · 210 LOCsqlite/plugin.gogo.temporal.io/server/common/persistence/telemetry/cluster_metadata_store_gen.go · 314 LOCtelemetry/cluster_metada…go.temporal.io/server/common/persistence/telemetry/data_store_factory.go · 140 LOCtelemetry/data_store_fac…go.temporal.io/server/common/persistence/telemetry/execution_store_gen.go · 986 LOCtelemetry/execution_stor…go.temporal.io/server/common/persistence/telemetry/nexus_endpoint_store_gen.go · 195 LOCtelemetry/nexus_endpoint…go.temporal.io/server/common/persistence/telemetry/queue_gen.go · 483 LOCtelemetry/queue_gen.gogo.temporal.io/server/common/persistence/telemetry/queue_v2_gen.go · 251 LOCtelemetry/queue_v2_gen.g…go.temporal.io/server/common/persistence/telemetry/shard_store_gen.go · 342 LOCtelemetry/shard_store_ge…go.temporal.io/server/common/persistence/telemetry/shared_store_gen.go · 153 LOCtelemetry/shared_store_g…go.temporal.io/server/common/persistence/telemetry/task_store_gen.go · 566 LOCtelemetry/task_store_gen…go.temporal.io/server/common/quotas/map_request_rate_limiter_impl.go · 163 LOCquotas/map_request_rate_…go.temporal.io/server/common/resource/fx.go · 533 LOCresource/fx.gogo.temporal.io/server/common/rpc/interceptor/logtags/admin_service_server_gen.go · 231 LOClogtags/admin_service_se…go.temporal.io/server/common/rpc/interceptor/logtags/history_service_server_gen.go · 486 LOClogtags/history_service_…go.temporal.io/server/common/rpc/interceptor/logtags/matching_service_server_gen.go · 198 LOClogtags/matching_service…go.temporal.io/server/common/rpc/interceptor/logtags/workflow_service_server_gen.go · 663 LOClogtags/workflow_service…go.temporal.io/server/common/rpc/interceptor/logtags/workflow_tags.go · 63 LOClogtags/workflow_tags.gogo.temporal.io/server/common/telemetry/grpc.go · 197 LOCtelemetry/grpc.gogo.temporal.io/server/common/testing/await/config.go · 40 LOCawait/config.gogo.temporal.io/server/common/testing/await/report.go · 94 LOCawait/report.gogo.temporal.io/server/common/testing/await/require_ctx.go · 285 LOCawait/require_ctx.gogo.temporal.io/server/common/testing/await/require_true.go · 36 LOCawait/require_true.gogo.temporal.io/server/common/testing/await/t.go · 94 LOCawait/t.gogo.temporal.io/server/common/testing/testtelemetry/collector.go · 72 LOCtesttelemetry/collector.…go.temporal.io/server/common/util.go · 791 LOCcommon/util.gogo.temporal.io/server/service/frontend/admin_handler.go · 2629 LOCfrontend/admin_handler.g…go.temporal.io/server/service/frontend/fx.go · 1057 LOCfrontend/fx.gogo.temporal.io/server/service/frontend/http_api_server.go · 506 LOCfrontend/http_api_server…go.temporal.io/server/service/frontend/workflow_handler.go · 7521 LOCfrontend/workflow_handle…go.temporal.io/server/service/fx.go · 180 LOCservice/fx.gogo.temporal.io/server/service/history/queues/executable.go · 979 LOCqueues/executable.gogo.temporal.io/server/service/matching/config.go · 608 LOCmatching/config.gogo.temporal.io/server/service/matching/fair_task_reader.go · 728 LOCmatching/fair_task_reade…go.temporal.io/server/service/matching/physical_task_queue_manager.go · 1001 LOCmatching/physical_task_q…go.temporal.io/server/service/matching/task_queue_partition_manager.go · 2486 LOCmatching/task_queue_part…go.temporal.io/server/temporal/fx.go · 1273 LOCtemporal/fx.gogo.temporal.io/server/temporal/server_option.go · 227 LOCtemporal/server_option.g…TestOperatorServiceMetadata · introduced test · go.temporal.io/server/common/api/TestOperatorServiceMetadataTestOperatorServiceMetad…TestWorkflowServiceMetadata · introduced test · go.temporal.io/server/common/api/TestWorkflowServiceMetadataTestWorkflowServiceMetad…TestShrinksAgain · introduced test · go.temporal.io/server/common/goro/TestAdaptivePoolSuite/TestShrinksAgainTestShrinksAgainTestLazyCleanupOnAccess · introduced test · go.temporal.io/server/common/quotas/TestMapRequestRateLimiterSuite/TestLazyCleanupOnAccessTestLazyCleanupOnAccessTestConfig_OverrideAttemptTimeout · introduced test · go.temporal.io/server/common/testing/await/TestConfig_OverrideAttemptTimeoutTestConfig_OverrideAttem…RequireTruef_includes_message_on_timeout · introduced test · go.temporal.io/server/common/testing/await/TestRequireTrue_FailureScenarios/RequireTruef_includes_message_on_timeoutRequireTruef_includes_me…reports_timeout · introduced test · go.temporal.io/server/common/testing/await/TestRequireTrue_FailureScenarios/reports_timeoutreports_timeoutTestRequireTrue_RetriesFalseUntilTrue · introduced test · go.temporal.io/server/common/testing/await/TestRequireTrue_RetriesFalseUntilTrueTestRequireTrue_RetriesF…Requiref_includes_message_on_timeout · introduced test · go.temporal.io/server/common/testing/await/TestRequire_FailureScenarios/Requiref_includes_message_on_timeoutRequiref_includes_messag…reports_all_attempt_errors_on_timeout · introduced test · go.temporal.io/server/common/testing/await/TestRequire_FailureScenarios/reports_all_attempt_errors_on_timeoutreports_all_attempt_erro…reports_timeout · introduced test · go.temporal.io/server/common/testing/await/TestRequire_FailureScenarios/reports_timeoutreports_timeoutretries_after_attempt_timeout_until_await_timeout · introduced test · go.temporal.io/server/common/testing/await/TestRequire_FailureScenarios/retries_after_attempt_timeout_until_await_timeoutretries_after_attempt_ti…truncates_middle_attempts_when_many_fail · introduced test · go.temporal.io/server/common/testing/await/TestRequire_FailureScenarios/truncates_middle_attempts_when_many_failtruncates_middle_attempt…TestRequire_PollIntervalStartsAfterAttemptFinishes · introduced test · go.temporal.io/server/common/testing/await/TestRequire_PollIntervalStartsAfterAttemptFinishesTestRequire_PollInterval…Errorf · introduced test · go.temporal.io/server/common/testing/await/TestRequire_RetriesUntilAttemptPasses/ErrorfErrorfFailNow · introduced test · go.temporal.io/server/common/testing/await/TestRequire_RetriesUntilAttemptPasses/FailNowFailNowFatal · introduced test · go.temporal.io/server/common/testing/await/TestRequire_RetriesUntilAttemptPasses/FatalFatalFatalf · introduced test · go.temporal.io/server/common/testing/await/TestRequire_RetriesUntilAttemptPasses/FatalfFatalfTestAwaitTrueFalseRetry · introduced test · go.temporal.io/server/common/testing/parallelsuite/TestRun_AcceptsSuite/await_true/TestAwaitTrueFalseRetryTestAwaitTrueFalseRetryTestBacklogDelivery_WritePathWakesStuckReader · introduced test · go.temporal.io/server/service/matching/TestBacklogManager_Fair_Suite/TestBacklogDelivery_WritePathWakesStuckReaderTestBacklogDelivery_Writ…TestExpiredTasksOnRead_EmitTasksDropped · introduced test · go.temporal.io/server/service/matching/TestBacklogManager_Fair_Suite/TestExpiredTasksOnRead_EmitTasksDroppedTestExpiredTasksOnRead_E…TestExpiredTasksOnRead_EmitTasksDropped · introduced test · go.temporal.io/server/service/matching/TestBacklogManager_Pri_Suite/TestExpiredTasksOnRead_EmitTasksDroppedTestExpiredTasksOnRead_E…TestFailAddTaskWithHistoryError · introduced test · go.temporal.io/server/service/matching/TestMatchingEngine_Classic_Suite/TestFailAddTaskWithHistoryErrorTestFailAddTaskWithHisto…TestFailAddTaskWithHistoryExhausted · introduced test · go.temporal.io/server/service/matching/TestMatchingEngine_Classic_Suite/TestFailAddTaskWithHistoryExhaustedTestFailAddTaskWithHisto…TestFailAddTaskWithHistoryError · introduced test · go.temporal.io/server/service/matching/TestMatchingEngine_Fair_Suite/TestFailAddTaskWithHistoryErrorTestFailAddTaskWithHisto…TestFailAddTaskWithHistoryExhausted · introduced test · go.temporal.io/server/service/matching/TestMatchingEngine_Fair_Suite/TestFailAddTaskWithHistoryExhaustedTestFailAddTaskWithHisto…TestFailAddTaskWithHistoryError · introduced test · go.temporal.io/server/service/matching/TestMatchingEngine_Pri_Suite/TestFailAddTaskWithHistoryErrorTestFailAddTaskWithHisto…TestFailAddTaskWithHistoryExhausted · introduced test · go.temporal.io/server/service/matching/TestMatchingEngine_Pri_Suite/TestFailAddTaskWithHistoryExhaustedTestFailAddTaskWithHisto…TestHasAnyPollerAfter · introduced test · go.temporal.io/server/service/matching/TestTaskQueuePartitionManager_Classic_Suite/TestHasAnyPollerAfterTestHasAnyPollerAfterTestHasPollerAfter_Unversioned · introduced test · go.temporal.io/server/service/matching/TestTaskQueuePartitionManager_Classic_Suite/TestHasPollerAfter_UnversionedTestHasPollerAfter_Unver…TestHasPollerAfter_Versioned · introduced test · go.temporal.io/server/service/matching/TestTaskQueuePartitionManager_Classic_Suite/TestHasPollerAfter_VersionedTestHasPollerAfter_Versi…TestTaskAddHooks_NexusDispatch_FiresWhenNoPollers · introduced test · go.temporal.io/server/service/matching/TestTaskQueuePartitionManager_Classic_Suite/TestTaskAddHooks_NexusDispatch_FiresWhenNoPollersTestTaskAddHooks_NexusDi…TestTaskAddHooks_QueryDispatch_FiresWhenNoPollers · introduced test · go.temporal.io/server/service/matching/TestTaskQueuePartitionManager_Classic_Suite/TestTaskAddHooks_QueryDispatch_FiresWhenNoPollersTestTaskAddHooks_QueryDi…TestTaskAddHooks_QueryDispatch_UsesSelectedQueueVersion · introduced test · go.temporal.io/server/service/matching/TestTaskQueuePartitionManager_Classic_Suite/TestTaskAddHooks_QueryDispatch_UsesSelectedQueueVersionTestTaskAddHooks_QueryDi…TestHasAnyPollerAfter · introduced test · go.temporal.io/server/service/matching/TestTaskQueuePartitionManager_Fair_Suite/TestHasAnyPollerAfterTestHasAnyPollerAfterTestHasPollerAfter_Unversioned · introduced test · go.temporal.io/server/service/matching/TestTaskQueuePartitionManager_Fair_Suite/TestHasPollerAfter_UnversionedTestHasPollerAfter_Unver…TestHasPollerAfter_Versioned · introduced test · go.temporal.io/server/service/matching/TestTaskQueuePartitionManager_Fair_Suite/TestHasPollerAfter_VersionedTestHasPollerAfter_Versi…TestTaskAddHooks_NexusDispatch_FiresWhenNoPollers · introduced test · go.temporal.io/server/service/matching/TestTaskQueuePartitionManager_Fair_Suite/TestTaskAddHooks_NexusDispatch_FiresWhenNoPollersTestTaskAddHooks_NexusDi…TestTaskAddHooks_QueryDispatch_FiresWhenNoPollers · introduced test · go.temporal.io/server/service/matching/TestTaskQueuePartitionManager_Fair_Suite/TestTaskAddHooks_QueryDispatch_FiresWhenNoPollersTestTaskAddHooks_QueryDi…TestTaskAddHooks_QueryDispatch_UsesSelectedQueueVersion · introduced test · go.temporal.io/server/service/matching/TestTaskQueuePartitionManager_Fair_Suite/TestTaskAddHooks_QueryDispatch_UsesSelectedQueueVersionTestTaskAddHooks_QueryDi…TestHasAnyPollerAfter · introduced test · go.temporal.io/server/service/matching/TestTaskQueuePartitionManager_Pri_Suite/TestHasAnyPollerAfterTestHasAnyPollerAfterTestHasPollerAfter_Unversioned · introduced test · go.temporal.io/server/service/matching/TestTaskQueuePartitionManager_Pri_Suite/TestHasPollerAfter_UnversionedTestHasPollerAfter_Unver…TestHasPollerAfter_Versioned · introduced test · go.temporal.io/server/service/matching/TestTaskQueuePartitionManager_Pri_Suite/TestHasPollerAfter_VersionedTestHasPollerAfter_Versi…TestTaskAddHooks_NexusDispatch_FiresWhenNoPollers · introduced test · go.temporal.io/server/service/matching/TestTaskQueuePartitionManager_Pri_Suite/TestTaskAddHooks_NexusDispatch_FiresWhenNoPollersTestTaskAddHooks_NexusDi…TestTaskAddHooks_QueryDispatch_FiresWhenNoPollers · introduced test · go.temporal.io/server/service/matching/TestTaskQueuePartitionManager_Pri_Suite/TestTaskAddHooks_QueryDispatch_FiresWhenNoPollersTestTaskAddHooks_QueryDi…TestTaskAddHooks_QueryDispatch_UsesSelectedQueueVersion · introduced test · go.temporal.io/server/service/matching/TestTaskQueuePartitionManager_Pri_Suite/TestTaskAddHooks_QueryDispatch_UsesSelectedQueueVersionTestTaskAddHooks_QueryDi…TestNewServer · introduced test · go.temporal.io/server/temporal/TestNewServerTestNewServerTestNewServerWithJSONEncoding · introduced test · go.temporal.io/server/temporal/TestNewServerWithJSONEncodingTestNewServerWithJSONEnc…with_OTEL_Collector_running · introduced test · go.temporal.io/server/temporal/TestNewServerWithOTEL/with_OTEL_Collector_runningwith_OTEL_Collector_runn…without_OTEL_Collector_running · introduced test · go.temporal.io/server/temporal/TestNewServerWithOTEL/without_OTEL_Collector_runningwithout_OTEL_Collector_r…Focused concept · require_ctx.go ×4 · 9 introduced LOCrequire_ctx.go ×4

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.

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

go.temporal.io/server/common/testing/await/require_ctx.go 9 introduced LOC · 4 ranges

Open complete file

176
177 // Wait for pollInterval, or context is canceled or deadline is reached.
178 > sleep(awaitCtx, deadline, cfg.pollInterval) require_ctx.go
179 }
180 }
266 }
267
268 > func sleep(ctx context.Context, deadline time.Time, pollInterval time.Duration) { require_ctx.go
269 > remaining := time.Until(deadline)
270 > if remaining < pollInterval {
271 pollInterval = remaining
272 }
273
274 > timer := time.NewTimer(pollInterval) require_ctx.go
275 > defer timer.Stop()
276 >
277 > select {
278 case <-ctx.Done():
279 > case <-timer.C: require_ctx.go
280 }
281 }