Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PostHog/duckgres
/ functions
Functions
5,901 in github.com/PostHog/duckgres
⨍
Functions
5,901
◇
Types & classes
803
Function
TestK8sPoolClaimSpecificWorkerRetiresUnhealthyWorker
(t *testing.T)
controlplane/k8s_pool_test.go:1588
Function
TestK8sPoolClaimSpecificWorkerReturnsEpochMismatchError
(t *testing.T)
controlplane/k8s_pool_test.go:1566
Function
TestK8sPoolClaimSpecificWorkerTakesOverRuntimeWorker
(t *testing.T)
controlplane/k8s_pool_test.go:1508
Function
TestK8sPoolCleanDeadWorkersDropsStaleRuntimeLeaseWithoutDeletingPod
(t *testing.T)
controlplane/k8s_pool_test.go:2629
Function
TestK8sPoolCleanDeadWorkersLeavesCurrentRuntimeLeaseForHealthLoop
(t *testing.T)
controlplane/k8s_pool_test.go:2719
Function
TestK8sPoolCleanDeadWorkersLeavesSameLeaseAlreadyLostForHealthLoop
(t *testing.T)
controlplane/k8s_pool_test.go:2817
Function
TestK8sPoolCleanDeadWorkersLeavesSameOwnerNewerRuntimeEpoch
(t *testing.T)
controlplane/k8s_pool_test.go:2674
Function
TestK8sPoolCleanDeadWorkersRetiresDrainingWorkerAfterPodExit
(t *testing.T)
controlplane/k8s_pool_test.go:2768
Function
TestK8sPoolFindIdleWorkerSkipsReservedSharedWorker
(t *testing.T)
controlplane/k8s_pool_test.go:1342
Function
TestK8sPoolHealthCheckLoopCompletesSameLeaseAlreadyLost
(t *testing.T)
controlplane/k8s_pool_test.go:1897
Function
TestK8sPoolHealthCheckLoopCurrentLeaseDeletesPodAndNotifiesCrash
(t *testing.T)
controlplane/k8s_pool_test.go:1958
Function
TestK8sPoolHealthCheckLoopDropsStaleLeaseWithoutDeletingPod
(t *testing.T)
controlplane/k8s_pool_test.go:1750
Function
TestK8sPoolHealthCheckLoopKeepsDrainingWorkerOnHealthFailure
(t *testing.T)
controlplane/k8s_pool_test.go:2166
Function
TestK8sPoolHealthCheckLoopMarksActiveDrainingWorkerDurableDraining
(t *testing.T)
controlplane/k8s_pool_test.go:2327
Function
TestK8sPoolHealthCheckLoopMarksDrainingWorkerUnschedulable
(t *testing.T)
controlplane/k8s_pool_test.go:2089
Function
TestK8sPoolHealthCheckLoopRepairsInconsistentLocalDrainingDurableHotWorkerAfterPodExit
(t *testing.T)
controlplane/k8s_pool_test.go:2446
Function
TestK8sPoolHealthCheckLoopRepairsLocalDrainingDurableHotWorkerOnHealth
(t *testing.T)
controlplane/k8s_pool_test.go:2392
Function
TestK8sPoolHealthCheckLoopRepairsLocalDrainingDurableHotWorkerOnHealthFailure
(t *testing.T)
controlplane/k8s_pool_test.go:2247
Function
TestK8sPoolHealthCheckLoopRetiresDrainingWorkerAfterPodExit
(t *testing.T)
controlplane/k8s_pool_test.go:2514
Function
TestK8sPoolHealthCheckLoopRetriesSameOwnerNewerRuntimeEpoch
(t *testing.T)
controlplane/k8s_pool_test.go:1826
Function
TestK8sPoolHealthCheckLoopSnapshotsLeaseUnderPoolLock
(t *testing.T)
controlplane/k8s_pool_race_test.go:12
Function
TestK8sPoolIdleReaperSkipsReservedSharedWorker
(t *testing.T)
controlplane/k8s_pool_test.go:2857
Function
TestK8sPoolMarkWorkerLostIfCurrentLeaseAllowsUnstampedLocalWorker
(t *testing.T)
controlplane/k8s_pool_test.go:2582
Function
TestK8sPoolParkIdleHotWorkerNoDecrement
parkIdleHotWorker must NOT decrement the session count (unlike the session-release callback TransitionToHotIdleIfNoSessions): it is a sweep over alrea
controlplane/k8s_pool_test.go:1074
Function
TestK8sPoolReleaseIdleHotWorkersParksIdleSkipsBusy
ReleaseIdleHotWorkers parks Hot/0-session workers into hot_idle (so the hot-idle TTL reaper can reclaim them) and leaves busy Hot workers untouched. T
controlplane/k8s_pool_test.go:1026
Function
TestK8sPoolRemoveWorkerAfterLostLeaseRejectsNewerLocalEpoch
(t *testing.T)
controlplane/k8s_pool_test.go:2610
Function
TestK8sPoolReserveClaimedWorkerRejectsDuplicateActivatingClaim
(t *testing.T)
controlplane/k8s_pool_test.go:1365
Function
TestK8sPoolReserveClaimedWorkerRejectsStaleInMemoryEpoch
(t *testing.T)
controlplane/k8s_pool_test.go:1398
Function
TestK8sPoolReserveClaimedWorkerUnlocksPoolOnTransitionError
(t *testing.T)
controlplane/k8s_pool_test.go:1238
Function
TestK8sPoolReserveSharedWorkerFreesSlotOnSpawnFailure
Regression for the spawning-slot leak: when the pod spawn fails, the durable spawning-slot row must be CAS'd terminal on the request thread (freeing t
controlplane/k8s_pool_test.go:1464
Function
TestK8sPoolReserveSharedWorkerReturnsOrgCapFromHotIdleClaim
(t *testing.T)
controlplane/k8s_pool_test.go:1431
Function
TestK8sPoolRetireWorkerPersistsRetiredWorkerRecord
(t *testing.T)
controlplane/k8s_pool_test.go:1710
Function
TestK8sPoolRetireWorkerUsesTrackedPodName
(t *testing.T)
controlplane/k8s_pool_test.go:3202
Function
TestK8sPoolTransitionToHotIdlePersistFailureStaysHot
Regression for fix #3: a transient persist failure at the hot->hot_idle park must leave the worker Hot (still reusable), NOT advance in-memory to hot_
controlplane/k8s_pool_test.go:999
Function
TestK8sPoolWorkerRecordForIdleStampsOwnerCPInstanceID
TestK8sPoolWorkerRecordForIdleStampsOwnerCPInstanceID guards against the idle worker churn loop. workerRecordFor used to clear OwnerCPInstanceID whene
controlplane/k8s_pool_test.go:1678
Function
TestK8sPool_CleanDeadWorkers
(t *testing.T)
controlplane/k8s_pool_test.go:1278
Function
TestK8sPool_EnsureWorkerRPCSecret_CreatesNew
(t *testing.T)
controlplane/k8s_pool_test.go:634
Function
TestK8sPool_EnsureWorkerRPCSecret_DefaultsToPerWorkerPrefix
(t *testing.T)
controlplane/k8s_pool_test.go:659
Function
TestK8sPool_EnsureWorkerRPCSecret_ExistingIsPreserved
(t *testing.T)
controlplane/k8s_pool_test.go:680
Function
TestK8sPool_EnsureWorkerRPCSecret_UsesDistinctCredentialsPerWorker
(t *testing.T)
controlplane/k8s_pool_test.go:711
Function
TestK8sPool_FindIdleWorker
(t *testing.T)
controlplane/k8s_pool_test.go:1298
Function
TestK8sPool_IdleReaper
(t *testing.T)
controlplane/k8s_pool_test.go:3310
Function
TestK8sPool_InformerDeleteClosesPodReadyWaiter
(t *testing.T)
controlplane/k8s_pool_test.go:770
Function
TestK8sPool_LeastLoadedWorker
(t *testing.T)
controlplane/k8s_pool_test.go:1311
Function
TestK8sPool_LiveWorkerCount
(t *testing.T)
controlplane/k8s_pool_test.go:1325
Function
TestK8sPool_OnPodTerminated
(t *testing.T)
controlplane/k8s_pool_test.go:3245
Function
TestK8sPool_ReadWorkerRPCSecurity
(t *testing.T)
controlplane/k8s_pool_test.go:743
Function
TestK8sPool_ReleaseWorker
(t *testing.T)
controlplane/k8s_pool_test.go:926
Function
TestK8sPool_RetireWorker
(t *testing.T)
controlplane/k8s_pool_test.go:943
Function
TestK8sPool_RetireWorkerDeletesWorkerRPCSecret
(t *testing.T)
controlplane/k8s_pool_test.go:3070
Function
TestK8sPool_RetireWorkerIfNoSessions_LastSession
(t *testing.T)
controlplane/k8s_pool_test.go:977
Function
TestK8sPool_RetireWorkerIfNoSessions_WithSessions
(t *testing.T)
controlplane/k8s_pool_test.go:960
Function
TestK8sPool_ShutdownAll
(t *testing.T)
controlplane/k8s_pool_test.go:3148
Function
TestK8sPool_SpawnWorkerCleansUpPodAndSecretWhenRPCSecurityReadFails
(t *testing.T)
controlplane/k8s_pool_test.go:814
Function
TestK8sPool_SpawnWorkerCleansUpWhenRPCSecurityReadCancelsContext
(t *testing.T)
controlplane/k8s_pool_test.go:860
Function
TestK8sPool_SpawnWorkerCreatesCorrectPod
(t *testing.T)
controlplane/k8s_pool_test.go:2892
Function
TestK8sPool_WorkerLookup
(t *testing.T)
controlplane/k8s_pool_test.go:909
Function
TestKafkaQueryLogSinkPublishesEnvelope
(t *testing.T)
server/querylog_kafka_test.go:78
Function
TestKafkaQueryLogSinkStopBoundsBlockedPublish
(t *testing.T)
server/querylog_kafka_test.go:164
Function
TestKafkaQueryLogSinkStopContextBoundsTotalDrain
(t *testing.T)
server/querylog_kafka_test.go:214
Function
TestKillSwitchRequiresAdmin
TestKillSwitchRequiresAdmin: all three actions are POSTs, so RoleGate (applied at the group level in production) rejects a viewer with 403.
controlplane/admin/kill_switch_test.go:189
Function
TestKillUserSessionsFansOut
TestKillUserSessionsFansOut: the kill endpoint kills locally AND sums peer counts, reporting cluster-wide totals.
controlplane/admin/kill_switch_test.go:36
Function
TestKillUserSessionsScopeLocal
TestKillUserSessionsScopeLocal: a peer (scope=local) call kills only locally and must NOT fan out again (recursion guard).
controlplane/admin/kill_switch_test.go:64
Function
TestKindConfigStoreSeedSQL
(t *testing.T)
tests/configstore/seed_sql_test.go:54
Function
TestLatencyProxy
(t *testing.T)
tests/integration/latency_proxy_test.go:10
Function
TestLeaderOnlyLoopStartsAndStopsBackgroundRun
(t *testing.T)
controlplane/leader_loop_test.go:9
Function
TestLeastLoadedWorkerLocked
(t *testing.T)
controlplane/worker_mgr_process_test.go:693
Function
TestLifecyclePairFiresOnExecuteQueryDirect
TestLifecyclePairFiresOnExecuteQueryDirect covers the simple-query DML entrypoint (BEGIN, INSERT, UPDATE, DELETE, etc.). Pre-PR #519 this path only lo
server/conn_querylog_lifecycle_test.go:114
Function
TestLifecyclePairFiresOnExecuteQueryDirectOnError
TestLifecyclePairFiresOnExecuteQueryDirectOnError verifies the deferred logQueryFinished fires even when the executor returns an error — pre-PR #519 t
server/conn_querylog_lifecycle_test.go:138
Function
TestLifecyclePairFiresOnExecuteSelectQuery
TestLifecyclePairFiresOnExecuteSelectQuery covers the simple-query SELECT path. This path already had logQueryStarted pre-#519, but error returns (Sca
server/conn_querylog_lifecycle_test.go:162
Function
TestLifecyclePairFiresOnHandleExecuteExec
TestLifecyclePairFiresOnHandleExecuteExec covers the extended-query Exec path (handleExecute → executor.Exec). This is the prod-traffic path that drov
server/conn_querylog_lifecycle_test.go:182
Function
TestLifecyclePairFiresOnHandleExecuteQuery
TestLifecyclePairFiresOnHandleExecuteQuery covers the extended-query Query path (handleExecute → executor.Query for SELECTs). Same rationale as the Ex
server/conn_querylog_lifecycle_test.go:303
Function
TestListExpiredHotIdleWorkersPerWorkerTTL
Per-worker TTL: ListExpiredHotIdleWorkers retires a hot-idle worker once its own ttl_minutes has elapsed since updated_at (last became idle); ttl=0 fa
tests/configstore/runtime_store_postgres_test.go:370
Function
TestListExpiredHotIdleWorkersSparesReclaimableFlightSessions
Regression: the hot-idle TTL reaper must NOT retire a hot-idle worker that still backs a reclaimable (Active/Reconnecting) Flight session — the custom
tests/configstore/runtime_store_postgres_test.go:423
Function
TestListExpiredHotIdleWorkersUsesHotIdleSinceNotUpdatedAt
Regression: the hot-idle reaper must measure idle age from hot_idle_since, not updated_at. Lease and credential-refresh writes (BumpWorkerEpoch, MarkC
tests/configstore/runtime_store_postgres_test.go:2627
Function
TestListLiveControlPlaneInstanceIDsPostgres
(t *testing.T)
tests/configstore/runtime_store_postgres_test.go:817
Function
TestListOrgsIncludesWarehouse
(t *testing.T)
controlplane/admin/api_test.go:523
Function
TestListOrphanedAndStuckWorkersPostgres
(t *testing.T)
tests/configstore/runtime_store_postgres_test.go:1105
Function
TestListOrphanedWorkersExcludesFreshOwnerlessWorker
TestListOrphanedWorkersExcludesFreshOwnerlessWorker guards against over-eager cleanup. The spawn path creates the worker pod first, then inserts the D
tests/configstore/runtime_store_postgres_test.go:1312
Function
TestListOrphanedWorkersExcludesWorkersWithActiveFlightSessions
TestListOrphanedWorkersExcludesWorkersWithActiveFlightSessions: a worker whose owning CP has expired is normally an orphan-cleanup candidate. But if a
tests/configstore/runtime_store_postgres_test.go:1717
Function
TestListOrphanedWorkersIncludesDanglingOwnerWorkers
TestListOrphanedWorkersIncludesDanglingOwnerWorkers covers the "owner_cp_instance_id is set but no matching cp_instances row exists" case — the CP row
tests/configstore/runtime_store_postgres_test.go:1281
Function
TestListOrphanedWorkersIncludesOwnerlessIdleWorkers
TestListOrphanedWorkersIncludesOwnerlessIdleWorkers seeds a row that reproduces the mw-dev incident: an unassigned idle worker whose owner_cp_instance
tests/configstore/runtime_store_postgres_test.go:1211
Function
TestListOrphanedWorkersIncludesWorkersWithExpiredFlightSessions
TestListOrphanedWorkersIncludesWorkersWithExpiredFlightSessions: once the Flight session record has been moved to a terminal state (expired or closed)
tests/configstore/runtime_store_postgres_test.go:1832
Function
TestListOrphanedWorkersIncludesWorkersWithReconnectingFlightSessions
TestListOrphanedWorkersIncludesWorkersWithReconnectingFlightSessions: the reconnecting state means a Flight client is mid-handshake for a token-backed
tests/configstore/runtime_store_postgres_test.go:1777
Function
TestListWorkerLifecycleStatsPostgres
(t *testing.T)
tests/configstore/runtime_store_postgres_test.go:145
Function
TestListWorkersDueForCredentialRefreshScopesByOwner
TestListWorkersDueForCredentialRefreshScopesByOwner: only workers owned by the calling CP are returned. Workers owned by another CP — even if their cr
tests/configstore/runtime_store_postgres_test.go:1443
Function
TestListWorkersDueForCredentialRefreshSkipsHealthyAndUnassigned
TestListWorkersDueForCredentialRefreshSkipsHealthyAndUnassigned: - Healthy row (expiry comfortably in the future): not returned. - Unassigned row (org
tests/configstore/runtime_store_postgres_test.go:1563
Function
TestListWorkersDueForCredentialRefreshSkipsReservedAndActivatingRows
TestListWorkersDueForCredentialRefreshSkipsReservedAndActivatingRows protects the initial activation path. Reserved/activating rows are org-bound befo
tests/configstore/runtime_store_postgres_test.go:1518
Function
TestListWorkersDueForCredentialRefreshTreatsNullAsDue
TestListWorkersDueForCredentialRefreshTreatsNullAsDue: a row with s3_credentials_expires_at = NULL needs immediate refresh. This covers pre-migration
tests/configstore/runtime_store_postgres_test.go:1486
Function
TestLiteralTransform_BitString
(t *testing.T)
transpiler/transform/literals_test.go:46
Function
TestLiteralTransform_ByteaEscapeLeftAlone
(t *testing.T)
transpiler/transform/literals_test.go:37
Function
TestLiteralTransform_ByteaHex
(t *testing.T)
transpiler/transform/literals_test.go:26
Function
TestLiteralTransform_NonLiteralUnchanged
(t *testing.T)
transpiler/transform/literals_test.go:58
Function
TestLiveControlPlaneManifestsReadinessProbeTargetsAPIHealthEndpoint
(t *testing.T)
k8s_manifest_test.go:32
Function
TestLiveWorkerCountLocked
(t *testing.T)
controlplane/worker_mgr_process_test.go:627
Function
TestLiveWorkerStats
(t *testing.T)
controlplane/headroom_test.go:360
Function
TestLoadArtifactsParsesSummaryAndResults
(t *testing.T)
tests/perf/publisher/publisher_test.go:69
Function
TestLoadArtifactsRejectsSummaryFinishedBeforeStarted
(t *testing.T)
tests/perf/publisher/publisher_test.go:128
Function
TestLoadArtifactsRejectsSummaryMissingStartedAt
(t *testing.T)
tests/perf/publisher/publisher_test.go:110
Function
TestLoadArtifactsRejectsUnexpectedHeader
(t *testing.T)
tests/perf/publisher/publisher_test.go:96
← previous
next →
4,601–4,700 of 5,901, ranked by callers