var testClusterRouter *clusterRouter
sharedSize := max(1, runtime.GOMAXPROCS(0)/2)
if v := os.Getenv("TEMPORAL_TEST_SHARED_CLUSTERS"); v != "" {
n, err := strconv.Atoi(v)
if err != nil || n <= 0 {
Frontier kind: Code frontier
unlabeled · c_7e16692941c6
18 tests · 2952 LOC · 153 files · introduces 0 tests · 44 LOC · 3 files
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.
Every exact file and test below is linked only from the concept that introduces it.
go.temporal.io/server/common/persistence/client/TestQuotasSuite/TestAPITypeCallOriginPriorityOverrideMappinggo.temporal.io/server/common/persistence/client/TestQuotasSuite/TestBackgroundTypeAPIPriorityOverrideMappinggo.temporal.io/server/common/persistence/client/TestQuotasSuite/TestCallerTypeDefaultPriorityMappinggo.temporal.io/server/common/persistence/client/TestQuotasSuite/TestRequestPrioritiesOrderedgo.temporal.io/server/common/rpc/interceptor/TestMethodToPatternMappinggo.temporal.io/server/common/rpc/interceptor/TestNamespaceSuite/TestFrontendAPIMetricsgo.temporal.io/server/common/rpc/interceptor/TestNamespaceSuite/TestHistoryAPIMetricsgo.temporal.io/server/common/rpc/interceptor/TestNamespaceSuite/TestMatchingAPIMetricsgo.temporal.io/server/common/circuitbreaker/TestTSCBWithDynamicSettingsgo.temporal.io/server/common/dynamicconfig/TestDeepCopy_OtherReferenceTypes_Nilgo.temporal.io/server/service/matching/configs/TestQuotasSuite/TestAPIPrioritiesOrderedgo.temporal.io/server/service/matching/configs/TestQuotasSuite/TestAPIToPriorityMappingEvery collected test enters the hierarchy at exactly one concept.
No tests are introduced at this concept. Its intent tests are introduced by other concepts.
Every collected source range enters the hierarchy at exactly one concept.
3 files ranked by introduced lines: 44 introduced LOC across 10 ranges. Expand a file to inspect source; the > gutter marks introduced lines.
var testClusterRouter *clusterRouter
sharedSize := max(1, runtime.GOMAXPROCS(0)/2)
if v := os.Getenv("TEMPORAL_TEST_SHARED_CLUSTERS"); v != "" {
n, err := strconv.Atoi(v)
if err != nil || n <= 0 {
}
if v := os.Getenv("TEMPORAL_TEST_DEDICATED_CLUSTERS"); v != "" {
n, err := strconv.Atoi(v)
if err != nil || n <= 0 {
// In CI, recreate clusters after 50 tests to prevent resource accumulation.
// Locally, clusters are reused indefinitely for faster iteration.
if os.Getenv("CI") != "" {
maxLeases = 50
}
if path := os.Getenv("TEMPORAL_TEST_CLUSTER_EVENTS_FILE"); path != "" {
f, err := os.OpenFile(path, os.O_APPEND|os.O_CREATE|os.O_WRONLY, 0o644)
if err != nil {
log.Printf("cluster events disabled: cannot open %q: %v", path, err)
}
}
shared: newClusterPool(sharedSize, false, maxLeases),
dedicated: newClusterPool(dedicatedSize, true, maxLeases),
eventsFile: eventsFile,
}
}
}
func newClusterPool(size int, exclusive bool, maxLeases int) *clusterPool {
test_cluster_pool.go
p := &clusterPool{
allSlots: make([]*clusterPoolSlot, size),
}
for i := range size {
p.allSlots[i] = &clusterPoolSlot{
idx: i,
maxLeases: maxLeases,
}
}
if exclusive {
p.availableSlots = make(chan *clusterPoolSlot, size)
for _, slot := range p.allSlots {
p.availableSlots <- slot
}
}
}
)
// By default, the SDK worker will calculate a checksum of the binary and use that as an identifier.
// But given the size of the test binary, that has a significant performance impact (100 ms or more).
// By specifying a checksum here, we can avoid that overhead.
sdkworker.SetBinaryChecksum("oss-server-test")
}
func WithDCRedirectionPolicy(policy config.DCRedirectionPolicy) TestClusterOption {
}
flag.StringVar(&cliFlags.persistenceType, "persistenceType", "sql", "type of persistence - [nosql or sql]")
flag.StringVar(&cliFlags.persistenceDriver, "persistenceDriver", "sqlite", "driver of nosql/sql - [cassandra, mysql8, postgres12, sqlite]")
flag.StringVar(&cliFlags.enableFaultInjection, "enableFaultInjection", "", "enable global fault injection")
}
func UseSQLVisibility() bool {