Repository Analysis

temporalio/temporal

Temporal service

0.5 Likely human-written View on GitHub
0.5
Adjusted Score
0.5
Raw Score
100%
Time Factor
2026-05-30
Last Push
20,636
Stars
Go
Language
936,402
Lines of Code
3085
Files
397
Pattern Hits
2026-05-31
Scan Date

Score History

Severity Breakdown

CRITICAL 3HIGH 1MEDIUM 16LOW 377

Pattern Findings

397 matches across 10 categories. Click a row to expand file-level details.

Over-Commented Block367 hits · 364 pts
SeverityFileLineSnippet
LOWtemporal/fx.go981 })
LOWcmd/tools/test/find_altered_tests.go21// - Target Git Reference (-t): The target Git reference (commit SHA, branch, etc.).
LOWcmd/tools/check-dependencies/main.go181// resolveModuleOriginForSpec reports whether shortHash is reachable from the
LOWtemporaltest/server_test.go281 // TODO(jlegrone): investigate why custom search attribute missing here while setting it from workflow succeeds.
LOWtemporaltest/internal/lite_server.go41 // This is required if Ephemeral is false.
LOWtools/flakereport/doc.go1// Package flakereport implements Bayesian commit bisection for identifying which commit
LOWtools/flakereport/doc.go21//
LOWtools/flakereport/doc.go41//
LOWtools/flakereport/doc.go61// # Output
LOWtools/tdbg/util.go101// - week/w
LOWtools/tdbg/util.go141 res := now.Add(time.Duration(-num) * dur) // using server's local timezone
LOWdevelop/buf-breaking.sh1#!/usr/bin/env bash
LOWdevelop/github/monitor_test.sh1#!/bin/bash
LOWchasm/path_encoder.go21
LOWchasm/tree.go41
LOWchasm/tree.go101 valueState valueState
LOWchasm/tree.go461 return nil, err
LOWchasm/tree.go861
LOWchasm/tree.go2421 // Root node can never be deleted
LOWchasm/task.go21 // Destination is an optional routing key for outbound tasks (e.g., a URL host for HTTP
LOWchasm/task.go41
LOWchasm/task.go61 // is updated to run at a different time, making the previously scheduled task invalid for the new state).
LOWchasm/visibility.go261}
LOWchasm/ref.go41 //
LOWchasm/search_attribute.go21// var testComponentStartTimeSearchAttribute = NewSearchAttributeTime("StartTime", SearchAttributeFieldDateTime01)
LOWchasm/context.go21 Ref(Component) ([]byte, error)
LOWchasm/context.go41 Value(key any) any
LOWchasm/context.go81 // referencing the component.
LOWchasm/engine.go101// - ExecutionRef: A serialized reference to the newly created root component.
LOWchasm/engine.go121// This can be passed to [UpdateComponent], [ReadComponent], or [PollComponent]
LOWchasm/engine.go181
LOWchasm/engine.go281 }, nil
LOW…sm/lib/activity/gen/activitypb/v1/activity_state.pb.go41 // A worker has accepted a task for the current attempt.
LOW…sm/lib/activity/gen/activitypb/v1/activity_state.pb.go141type ActivityState struct {
LOW…sm/lib/activity/gen/activitypb/v1/activity_state.pb.go161 ScheduleToStartTimeout *durationpb.Duration `protobuf:"bytes,4,opt,name=schedule_to_start_timeout,json=scheduleToStartT
LOW…sm/lib/activity/gen/activitypb/v1/activity_state.pb.go441 // The time when the last activity attempt completed. If activity has not been completed yet, it will be null.
LOWchasm/lib/scheduler/migration/migration.go21// The migrationTime parameter is used for initializing timestamps that don't have a
LOWchasm/lib/workflow/events.go21 // CherryPick (a.k.a "reapply") an event from a different history branch.
LOW…nexusoperation/gen/nexusoperationpb/v1/operation.pb.go221 Status OperationStatus `protobuf:"varint,1,opt,name=status,proto3,enum=temporal.server.chasm.lib.nexusoperation.proto.v
LOW…nexusoperation/gen/nexusoperationpb/v1/operation.pb.go241 StartToCloseTimeout *durationpb.Duration `protobuf:"bytes,10,opt,name=start_to_close_timeout,json=startToCloseTimeout,p
LOWconfig/jwt/generate-token.sh1#!/bin/bash
LOWconfig/dynamicconfig/development-cass.yaml1#history.persistenceMaxQPS:
LOWconfig/dynamicconfig/development-sql.yaml1#history.persistenceMaxQPS:
LOWconfig/dynamicconfig/development-sql.yaml21# MaximumAttempts: 0
LOWconfig/dynamicconfig/development-xdc.yaml1#history.persistenceMaxQPS:
LOWtests/premature_eos_test.go21}
LOWtests/premature_eos_test.go41// With the gap-detection fix:
LOWtests/versioning_3_test.go1341
LOWtests/versioning_3_test.go2241 Pinned: &workflowpb.VersioningOverride_PinnedOverride{
LOWtests/versioning_3_test.go2441// Unlike the AUTO_UPGRADE variants, this test does not vary WFT type (normal/speculative/transient).
LOWtests/versioning_3_test.go2881 s.Equal(int32(2), lastScheduledEvent.GetWorkflowTaskScheduledEventAttributes().GetAttempt())
LOWtests/versioning_3_test.go6261}
LOWtests/versioning_3_test.go6401 "up-to-date partition with higher revision should fire signal")
LOWtests/versioning_3_test.go6501 }
LOWtests/versioning_3_test.go6641// again, the signal fires again.
LOWtests/versioning_3_test.go6781// TestPinnedCaN_NeverSignaled_NewRunGetsSignalForUnversioned verifies that when a
LOWtests/task_queue_test.go261}
LOWtests/timeskipping_bound_test.go581 s.True(bi.GetHasReached())
LOWtests/timeskipping_bound_test.go601// Sequence:
LOWtests/signal_with_start_from_workflow_test.go661}
307 more matches not shown…
Decorative Section Separators10 hits · 30 pts
SeverityFileLineSnippet
MEDIUMtests/history_node_cleanup_test.go105 // ── Step 1: start and complete run A ─────────────────────────────────────
MEDIUMtests/history_node_cleanup_test.go146 // ── Step 2: reset A → run B ───────────────────────────────────────────────
MEDIUMtests/history_node_cleanup_test.go162 // ── Step 3: force-delete run A ────────────────────────────────────────────
MEDIUMtests/history_node_cleanup_test.go174 // ── Step 4: force-delete run B ────────────────────────────────────────────
MEDIUMtests/history_node_cleanup_test.go183 // ── Assertions ────────────────────────────────────────────────────────────
MEDIUMtests/timeskipping_test.go903 // ── Assertion 1/2/3: the three history events are present. ────────────────
MEDIUMtests/timeskipping_test.go1046 // ── Assertion 7: activity-2 events are stamped with virtual time. ─────────
MEDIUMtests/timeskipping_test.go1084 // ── Assertion 8: activity-2 timeout task is anchored to wall clock. ──────
MEDIUMservice/history/workflow/mutable_state_impl_test.go7540 // ── closeTransactionHandleActivityUserTimerTasks scenarios ──────────────────
MEDIUMservice/history/workflow/mutable_state_impl_test.go7659 // closeTransactionRegenerateTimerTasksForTimeSkipping ───────────
Hallucination Indicators3 hits · 30 pts
SeverityFileLineSnippet
CRITICALservice/matching/physical_task_queue_manager_test.go118 s.tqMgr.backlogMgr.taskReader.gorogrp.Cancel()
CRITICALservice/matching/physical_task_queue_manager_test.go119 s.tqMgr.backlogMgr.taskReader.gorogrp.Wait()
CRITICALservice/history/api/multioperation/api.go191 updateID := uws.updateReq.Request.Request.Meta.GetUpdateId()
AI Slop Vocabulary5 hits · 15 pts
SeverityFileLineSnippet
MEDIUMtemporal/fx.go391// into fx providers here. Essentially, we want an `fx.In` object in the server graph, and an `fx.Out` object in the
MEDIUMcommon/persistence/execution_manager.go441 // try to utilize resp as much as possible, for RebuildMutableState API
MEDIUMcommon/persistence/execution_manager.go861 // try to utilize resp as much as possible, for RebuildMutableState API
MEDIUMservice/frontend/fx.go78 // A more robust approach would require using fx groups but we shouldn't overcomplicate until this becomes an issue.
MEDIUMservice/history/tasks/task_category_registry.go26// each entry point that uses it. Essentially, get it from the dependency graph instead of calling this method, unless
Verbosity Indicators5 hits · 8 pts
SeverityFileLineSnippet
LOWtests/versioning_3_test.go6713 // Step 3: CaN run starts on v1. Target=v2, declined=v2 → case 4 suppresses signal.
LOWtests/versioning_3_test.go6734 // Step 4: Rollback — set v1 as current again. Target becomes v1.
LOWtests/versioning_3_test.go6756 // Step 5: Set v2 as current again. Target goes back to v2.
LOWcommon/archiver/history_iterator.go181 // We need to check if there's more history batches.
LOWservice/history/statemachine_environment.go147 // for close workflow we need to check if it is still the current run
Synthetic Comment Markers1 hit · 8 pts
SeverityFileLineSnippet
HIGHtests/client_misc_test.go883// Server complete workflow as requested.
Example Usage Blocks3 hits · 4 pts
SeverityFileLineSnippet
LOWdevelop/github/monitor_test.sh7# Usage:
LOWdevelop/github/memory_monitor.sh8# Usage:
LOWcommon/log/interface.go11 // Usage example:
Self-Referential Comments1 hit · 3 pts
SeverityFileLineSnippet
MEDIUM…rker/workerdeployment/replaytester/generate_history.sh41# Create the default namespace
Slop Phrases1 hit · 2 pts
SeverityFileLineSnippet
LOWservice/matching/counter/map.go87 // don't forget to fix the map:
Fake / Example Data1 hit · 1 pts
SeverityFileLineSnippet
LOWcmd/tools/check-dependencies/main_test.go142 run("config", "user.email", "test@test.com")