From 072c684589221036adb17a97e584ddc16b79306d Mon Sep 17 00:00:00 2001 From: "pulse-triage[bot]" <249995291+pulse-triage[bot]@users.noreply.github.com> Date: Sat, 28 Nov 2026 09:43:32 +0000 Subject: [PATCH 1/2] Speed up Pulse backend CI shards and refresh internal/api weights Refresh .github/scripts/internal-api-test-seconds.txt from the four complete post-#5366 Build and Test runs (46124957837, 46125831000, 46125846026, 46126504079), cutting 4-shard PR peak task-seconds by 16.8s to 54.9s in LOO-CV and narrowing spread on all four holdouts for both 4-shard PR and 5-shard main cuts. Reuse the existing retrySleepFn test seam via skipRetrySleep(t) in seven non-timing internal/agentupdate HTTP tests (33.05s -> 0.56s under -race; full internal/agentupdate -race passes in 17.35s). Add t.Parallel() to verified global-free slow timer, HTTP, retention, AST-scan, and release-identity build tests across internal/relay, internal/notifications, internal/unifiedresources, and cmd/pulse-agent (all pass under go test -race -count=2, and -count=1 for release_identity_test.go). Zero production code or test assertions changed. Contract-Neutral: Test-only speedups and CI shard timing refresh; no production behavior or subsystem contract changes. Change-source: pulse-maintainer --- .github/scripts/internal-api-test-seconds.txt | 647 +++++++++--------- cmd/pulse-agent/release_identity_test.go | 3 + internal/agentupdate/coverage_test.go | 4 + internal/agentupdate/update_http_test.go | 10 + .../firing_grouping_occurrence_test.go | 2 + .../pinned_connectivity_linux_test.go | 3 + internal/notifications/rehearsal_test.go | 6 + .../resolved_grouping_contract_test.go | 2 + .../tag_routing_recipient_test.go | 1 + .../telegram_text_budget_test.go | 4 + .../notifications/webhook_enhanced_test.go | 4 + internal/notifications/webhook_retry_test.go | 4 + .../relay/client_abrupt_disconnect_test.go | 3 + .../relay/client_license_lifecycle_test.go | 7 + internal/relay/client_session_resume_test.go | 1 + internal/relay/client_test.go | 1 + .../canonical_id_succession_test.go | 2 + .../unifiedresources/code_standards_test.go | 5 + internal/unifiedresources/retention_test.go | 9 + 19 files changed, 389 insertions(+), 329 deletions(-) diff --git a/.github/scripts/internal-api-test-seconds.txt b/.github/scripts/internal-api-test-seconds.txt index 39aa06dbc9..b7e5504839 100644 --- a/.github/scripts/internal-api-test-seconds.txt +++ b/.github/scripts/internal-api-test-seconds.txt @@ -6,394 +6,383 @@ # missing, stale or renamed entry can make the shards uneven but can never # drop or repeat a test. # -# Generated 2026-11-27 by .github/scripts/refresh-internal-api-test-seconds.py -# from run 45960103935, run 45962187605 and run 45962901987 (all post-#5251). Every api shard uploads an +# Generated 2026-11-28 by .github/scripts/refresh-internal-api-test-seconds.py +# from run 46124957837, run 46125831000, run 46125846026 and run 46126504079 (all post-#5366). Every api shard uploads an # internal-api-test-seconds-N artifact, so rerun that script with recent # passing runs when one api shard runs well over the others. DEFAULT_WEIGHT 0.05 -TestActionRunnerRotationProductionRouterTLSPersistenceRestart 0.76 -TestMockActionInboxAndDetailUseCanonicalResponses 2.30 -TestMockActionInboxHonorsLimitAndLegacyPendingProjection 1.72 -TestMockActionMutationsFailReadOnly 0.93 +TestActionRunnerRotationProductionRouterTLSPersistenceRestart 0.77 +TestMockActionInboxAndDetailUseCanonicalResponses 2.34 +TestMockActionInboxHonorsLimitAndLegacyPendingProjection 1.75 +TestMockActionMutationsFailReadOnly 0.94 TestAgentActionDisclosureAcrossProducersAndScopes 0.80 -TestHistoryReadDayNotRecordedInMockMode 0.92 -TestAgentEventTokenRefreshKeepsBoundedContext 14.48 +TestHistoryReadDayNotRecordedInMockMode 0.95 +TestAgentEventTokenRefreshKeepsBoundedContext 8.43 TestAgentEventTokenLifecycleRejectsWithdrawnAuthority 2.91 +TestHandleAgentFleetDiagnosticsReturnsFleetPayload 0.98 TestAgentHistoryWithdrawnSessionCannotDisclose 1.00 -TestAgentReportHandlersClassifyBodyFailures 1.32 +TestAgentReportHandlersClassifyBodyFailures 1.33 TestAgentReportHandlersRejectReportsOverItemLimits 0.68 -TestAgentReportHandlersRefuseTimesTheServerCannotEncode 2.78 +TestAgentReportHandlersRefuseTimesTheServerCannotEncode 2.77 TestExternalAgentReadinessReadsTheTokenInventoryUnderTheConfigLock 0.95 -TestAgentSnapshotsWithdrawnTokenCannotDisclose 11.44 -TestAgentSnapshotsWithdrawnSessionCannotDisclose 4.76 +TestAgentSnapshotsWithdrawnTokenCannotDisclose 11.45 +TestAgentSnapshotsWithdrawnSessionCannotDisclose 4.74 TestAgentSnapshotsKeepAdmissionAndRecovery 0.96 TestStartingTheAlertBridgeGivesPatrolTheBrokersRunnableActions 0.59 -TestPatrolAlertBridgeFollowsTheAlertManagerAfterAMonitorReload 0.70 -TestPatrolHearsAlertsAfterARealMonitorReload 1.79 +TestPatrolAlertBridgeFollowsTheAlertManagerAfterAMonitorReload 0.69 +TestPatrolHearsAlertsAfterARealMonitorReload 1.78 TestAlertBridgeWiring_RepeatCriticalAlertRequestsARunEachEpisode 1.02 TestAlertBridgeWiring_AlertTriggersSwitchedOffRequestNoRun 1.50 -TestAIApprovalReviewSessionRoutes 1.47 +TestAIApprovalReviewSessionRoutes 1.46 TestAIApprovalReviewTokenCompatibility 1.05 -TestStart_MockModeStartsChatServiceWhenPersistedConfigDisabled 0.91 +TestStart_MockModeStartsChatServiceWhenPersistedConfigDisabled 0.95 TestRestart_MockModeStartsChatServiceWhenPersistedConfigDisabled 0.91 TestHandleChat_EmitsIdleProgressWhileServiceIsSilent 2.53 TestMonitorReloadKeepsTenantChatServiceOnTenantReadState 0.60 -TestAISettingsHandler_ProviderSettersConcurrentServiceCreation 6.65 +TestAISettingsHandler_ProviderSettersConcurrentServiceCreation 6.74 TestAISettingsHandler_GetAIService_NonDefaultWithoutTenantReadStateFailsClosed 0.54 -TestAISettingsHandler_GetAIService_NonDefaultWithoutTenantUnifiedProviderFailsClosed 0.55 +TestAISettingsHandler_GetAIService_NonDefaultWithoutTenantUnifiedProviderFailsClosed 0.54 TestHandlePatrolStream_LastEventIDHeaderTakesPrecedenceOverQueryFallback 2.10 -TestHandleExecuteStream_LicenseRequired 0.99 -TestHandleExecuteStream_PromptRequired 1.00 +TestHandleExecuteStream_LicenseRequired 1.05 +TestHandleExecuteStream_PromptRequired 1.04 TestHandleExecuteStream_Success 1.73 -TestHandleExecuteStream_EmitsIdleProgressWhileServiceIsSilent 1.74 -TestHandleInvestigateAlert_EmitsIdleProgressWhileServiceIsSilent 1.64 -TestHandleInvestigateAlert_UsesVisibleIdleProgressStream 1.63 -TestAssistantSettingsProjectionAndUnrelatedSave 0.97 -TestHandleGetPatterns_UnlockedWithData 1.00 -TestHandleGetPredictions_WithData 0.99 -TestHandleGetCorrelations_WithData 0.98 -TestHandleGetCorrelations_UsesCanonicalIntelligenceFacade 1.00 -TestStartPatrolForContextKeepsTenantFindingsOffInstanceRelay 1.55 +TestHandleExecuteStream_EmitsIdleProgressWhileServiceIsSilent 1.75 +TestHandleInvestigateAlert_EmitsIdleProgressWhileServiceIsSilent 1.66 +TestHandleInvestigateAlert_UsesVisibleIdleProgressStream 1.65 +TestAssistantSettingsProjectionAndUnrelatedSave 0.98 +TestHandleGetPatterns_UnlockedWithData 1.04 +TestHandleGetPredictions_WithData 1.02 +TestHandleGetCorrelations_WithData 1.04 +TestHandleGetCorrelations_UsesCanonicalIntelligenceFacade 1.02 +TestStartPatrolForContextKeepsTenantFindingsOffInstanceRelay 1.58 TestAlertPolicyRoutesAdmitRequestOrganizationManagers 0.57 -TestApplianceTenantSavesStampPolicyAndIgnoreForgedMetadata 0.59 -TestApplianceCloudSaveRetainsPublicOnlyPolicy 0.57 -TestAssistantJSONWithdrawAuthority 6.66 -TestAssistantJSONPreserveReaders 1.22 -TestAssistantStreamsWithdrawAuthority 9.35 -TestAssistantStreamsPreserveScopeAlternativesAndNonTokenReaders 2.64 +TestApplianceTenantSavesStampPolicyAndIgnoreForgedMetadata 0.58 +TestApplianceCloudSaveRetainsPublicOnlyPolicy 0.56 +TestAssistantJSONWithdrawAuthority 6.62 +TestAssistantJSONPreserveReaders 1.21 +TestAssistantStreamsWithdrawAuthority 9.31 +TestAssistantStreamsPreserveScopeAlternativesAndNonTokenReaders 2.62 TestAssistantStreamsRetainAdminAndLicenseGates 0.60 TestAssistantStreamsPreserveExecutionLifetimes 11.64 -TestAssistantStreamsClearNativeServerDeadline 1.26 -TestAuditExportBoundedCompleteResults 0.54 -TestAuditReadExtensionBoundary 3.15 -TestAuditReadNativeWithdrawal 4.84 +TestAssistantStreamsClearNativeServerDeadline 1.25 +TestAuditExportBoundedCompleteResults 0.53 +TestAuditReadExtensionBoundary 3.10 +TestAuditReadNativeWithdrawal 4.81 TestAuditReadPreservesAdmission 0.55 TestRBACEndpointsRequireFullAccessScope 0.53 -TestAvailabilityHandlersListReturnsMockTargetsInMockMode 0.97 -TestAvailabilityHandlersTestSavedMockTargetUsesSyntheticStatus 0.93 +TestAvailabilityHandlersListReturnsMockTargetsInMockMode 0.96 +TestAvailabilityHandlersTestSavedMockTargetUsesSyntheticStatus 0.94 TestAvailabilityHistoryWithdrawnTokenCannotDisclose 2.67 -TestAvailabilityHistoryWithdrawnSessionCannotDisclose 1.07 -TestAvailabilityHistoryWithdrawalWithholdsErrors 0.63 -TestBasicAuthObeysOrganizationMembership 1.47 +TestAvailabilityHistoryWithdrawnSessionCannotDisclose 1.10 +TestAvailabilityHistoryWithdrawalWithholdsErrors 0.64 +TestBasicAuthObeysOrganizationMembership 1.46 TestBasicAuthCannotMintTokensForForeignOrganization 0.58 -TestBasicAuthOrganizationDenialKeepsCredentialSemantics 0.60 -TestChangePasswordRefusesNonAdminSession 0.82 -TestChangePasswordAllowsConfiguredAdminSession 1.49 -TestChangePasswordBasicAuthPathUnaffected 3.45 -TestChangePasswordRefusesTokenWithoutSettingsWrite 0.83 -TestChangePasswordCountsFailuresAgainstTheAccount 4.07 -TestChangePasswordFixtureOwnsRouterLifecycle 0.82 -TestNoInternalLicenseImportFromConsumerPackages 0.62 -TestConfigExportCurrentAdmission 19.68 -TestConfigExportNativeWithdrawal 11.95 -TestConfigImportPublishesRestoredSSOConfig 2.82 -TestTenantAdministratorImportIsHeldToTheSettingsRouteLimits 9.89 -TestAISettingsHandler_PatrolReadinessBranches 1.53 -TestJTIReplayStoreQueryPlanUsesExpiryIndex 0.55 -TestConfigImportAppliesOnlySelectedTenant 2.87 -TestConfigTransferAnonymousAuthenticatedModesDenyBeforeBodyRead 0.57 -TestConfigTransferAuthorizedInstanceModesReachHandler 0.79 -TestConfigTransferTenantSessionsRequireManagement 0.65 -TestConfigTransferVerifiedUsersRequireTenantManagement 1.21 -TestConfigImportTokenAuthorityBoundsAccessCredentials 4.14 -TestConfigImportOrganizationManagerKeepsAccessCredentials 5.72 -TestConnectionsLedger_GroupsHostAgentWithPBSByReportedNodeName 1.70 -TestPlatformAlertInputsDoNotLoadAvailabilityChecks 2.25 -TestConnectionAlertsSurviveMonitorReload 30.51 -TestConnectionsHandleListIncludesMockAvailabilityTargets 1.12 -TestConnectionsHandleListDropsRealSourcesInMockMode 1.07 -TestConnectionsLedgerKeepsRealSourcesWhenRealPollingRetained 1.11 -TestContractChartSLOProofCLIClassifiesExecution 0.78 -TestContract_MockAvailabilityTargetsUseSavedTargetPayloads 1.03 -TestContract_MockChartRoutesUseCanonicalMockUnifiedReadStateForVMwareHosts 2.57 -TestContract_PlatformMockToggleRebindsRuntimeConnectionsAndResources 7.31 -TestContract_PlatformMockConnectionListsUseSharedFixtureMetadata 1.09 -TestContract_RecoveryPointsMockPathReturnsCanonicalProviderBackedFixtures 1.62 -TestContract_DemoModeUpgradeHeadersDoNotExemptWrites 6.05 -TestContract_SecurityStatusPresentationPolicyProEditionCommercialContext 0.56 -TestContract_SecurityStatusPatrolRunTracksRunRouteGate 0.75 -TestSecurityStatusPatrolRunFollowsInstanceAdminOnOrgScopedSession 0.88 -TestContract_MetricsHistoryDiskLivePointOnlyForCollectedTemperature 1.21 -TestContract_MetricsHistoryLivePointOnlyWhileSourceReports 1.48 -TestContract_StateAndResourceListShareCanonicalMockResourceContract 4.33 -TestContract_AgentCommandConfigGateMirrorsChannelAdmission 1.32 -TestContract_HostedDiagnosticsDockerPrepareTokenValidatesOriginBeforeMutation 1.66 -TestContract_HostedInstallerOriginsFailClosedAtRouter 4.35 -TestContract_UnifiedAgentReportAckNamesCommandIdentityOnlyWhenTheBindingAdmitsIt 0.70 -TestContract_RuntimeDisplayServesPresentationValuesWithoutAdmin 0.82 -TestSecurityStatusCurrentUserForScopedLocalSession 0.82 -TestSecurityStatusOrgBoundSettingsFollowOrgManagementRule 0.82 -TestSecurityStatusOrgBoundReportingRespectsAuthorizer 0.82 -TestRouterPlatformConnectionAlertsFollowRuntime 80.44 -TestContract_ConfigImportReplayRemainsAuthenticatedAndScoped 3.72 -TestContract_ConfigImportIncompleteRuntimeKeepsCommittedOutcome 2.06 +TestBasicAuthOrganizationDenialKeepsCredentialSemantics 0.59 +TestNoInternalLicenseImportFromConsumerPackages 0.60 +TestConfigExportCurrentAdmission 2.79 +TestJTIReplayStoreQueryPlanUsesExpiryIndex 0.54 +TestAISettingsHandler_PatrolReadinessBranches 1.52 +TestConfigExportNativeWithdrawal 0.75 +TestTenantAdministratorImportIsHeldToTheSettingsRouteLimits 0.69 +TestConfigImportAppliesOnlySelectedTenant 0.85 +TestConfigTransferAnonymousAuthenticatedModesDenyBeforeBodyRead 0.52 +TestConfigTransferAuthorizedInstanceModesReachHandler 0.71 +TestConfigTransferTenantSessionsRequireManagement 0.56 +TestConfigTransferVerifiedUsersRequireTenantManagement 1.12 +TestConfigImportOrganizationManagerKeepsAccessCredentials 0.69 +TestPlatformAlertInputsDoNotLoadAvailabilityChecks 2.09 +TestConnectionAlertsSurviveMonitorReload 30.40 +TestConnectionsHandleListIncludesMockAvailabilityTargets 1.02 +TestConnectionsHandleListDropsRealSourcesInMockMode 0.99 +TestConnectionsLedgerKeepsRealSourcesWhenRealPollingRetained 1.01 +TestContractChartSLOProofCLIClassifiesExecution 0.79 +TestContract_MockAvailabilityTargetsUseSavedTargetPayloads 0.96 +TestContract_MockChartRoutesUseCanonicalMockUnifiedReadStateForVMwareHosts 2.45 +TestContract_PlatformMockToggleRebindsRuntimeConnectionsAndResources 6.62 +TestContract_PlatformMockConnectionListsUseSharedFixtureMetadata 1.03 +TestContract_RecoveryPointsMockPathReturnsCanonicalProviderBackedFixtures 1.45 +TestContract_DemoModeUpgradeHeadersDoNotExemptWrites 5.46 +TestContract_SecurityStatusPresentationPolicyProEditionCommercialContext 0.53 +TestContract_SecurityStatusPatrolRunTracksRunRouteGate 0.69 +TestContract_MetricsHistoryDiskLivePointOnlyForCollectedTemperature 1.05 +TestContract_MetricsHistoryLivePointOnlyWhileSourceReports 1.38 +TestContract_StateAndResourceListShareCanonicalMockResourceContract 3.99 +TestContract_AgentCommandConfigGateMirrorsChannelAdmission 1.19 +TestContract_HostedDiagnosticsDockerPrepareTokenValidatesOriginBeforeMutation 1.27 +TestContract_HostedInstallerOriginsFailClosedAtRouter 4.27 +TestContract_UnifiedAgentReportAckNamesCommandIdentityOnlyWhenTheBindingAdmitsIt 0.69 +TestRouterPlatformConnectionAlertsFollowRuntime 80.37 +TestContract_ConfigImportReplayRemainsAuthenticatedAndScoped 0.91 TestContract_AssistantStreamsWithdrawAfterPersistedTokenDelete 0.66 -TestContract_AssistantStreamDeadlineSurvivesAPIWrappers 1.24 +TestContract_AssistantStreamDeadlineSurvivesAPIWrappers 1.25 TestContract_AssistantJSONMediaBoundary 0.80 -TestContractReportDownloadWithdrawal 2.67 +TestContractReportDownloadWithdrawal 2.71 TestContractAuditReadWithdrawal 4.74 -TestAgentHistoryWithdrawnTokenCannotDisclose 3.19 +TestAgentHistoryWithdrawnTokenCannotDisclose 3.33 TestMetricHistoryWithdrawnTokenCannotDisclose 5.00 TestRecoveryTokenPersistenceHTTP 0.55 TestCSRFPersistenceMutationsReleaseMemoryBeforeIO 0.62 -TestComputeDiagnosticsClassifiesMissingNodeSecrets 1.01 -TestComputeDiagnostics_PVE_HonoursClusterEndpointTrust 0.63 -TestComputeDiagnosticsTLSHandshakeDeadline 2.28 -TestComputeDiagnosticsAPIRejectionsPreserveCredentials 0.59 -TestDockerAgentReportSizeContractAcceptsOrdinaryAndLargeFleets 4.77 -TestDockerAgentReportSizeContractBoundaries 2.57 -TestDockerCommandSessionOnlyReachesTheResourcesOwnAgent 0.57 +TestComputeDiagnostics_PVE_HonoursClusterEndpointTrust 0.64 +TestComputeDiagnosticsTLSHandshakeDeadline 2.27 +TestComputeDiagnosticsAPIRejectionsPreserveCredentials 0.58 +TestDockerAgentReportSizeContractAcceptsOrdinaryAndLargeFleets 3.21 +TestDockerAgentReportSizeContractBoundaries 1.65 +TestDockerCommandSessionOnlyReachesTheResourcesOwnAgent 0.56 TestDockerContainerActionExecutorRefusesAnotherSpellingOfAContainerID 0.66 -TestHostAgentCredentialFileHandoff 74.30 -TestCollectorUninstallTransactionFailsClosedAndRetriesAfterRestart 2.34 +TestHostAgentCredentialFileHandoff 75.69 +TestCollectorUninstallTransactionFailsClosedAndRetriesAfterRestart 2.33 TestHostInstallTokenInUseElsewhereCannotClaimStoppedHostIdentity 0.67 -TestHostedClientWorkspaceInstallTokenAuthenticatesAgentReports 1.15 +TestHostedClientWorkspaceInstallTokenAuthenticatesAgentReports 1.85 TestHostedClientWorkspaceInstallTokenSurvivesTenantReload 0.62 -TestHostedClientWorkspaceAgentRemovalRevokesInstanceToken 0.56 -TestHostedTenantAgentInstallCommand_GeneratesOrgBoundTokenAndCommand 1.10 -TestGenerateHostedTenantAgentInstallCommandEnforcesHostedOrgBoundary 0.91 -TestHostedTenantAgentInstallCommandCarriesCommandPolicyIntent 0.88 -TestHostedTenantAgentInstallTokenCannotReportToOtherTenant 0.55 +TestHostedClientWorkspaceAgentRemovalRevokesInstanceToken 0.57 +TestHostedTenantAgentInstallCommand_GeneratesOrgBoundTokenAndCommand 1.14 +TestGenerateHostedTenantAgentInstallCommandEnforcesHostedOrgBoundary 0.89 +TestHostedTenantAgentInstallCommandCarriesCommandPolicyIntent 0.89 +TestHostedTenantAgentInstallTokenCannotReportToOtherTenant 0.56 TestRouteAllocationMeasurementExcludesBackgroundFixtures 2.09 TestNormalizeRoute_BoundedAllocations 1.05 TestNormalizeRoute_LabelAllocationProfile 1.05 -TestNormalizeSegment_DoesNotAllocate 1.05 -TestNormalizeRoute_RootFastPathDoesNotAllocate 1.05 -TestInvestigationRecoverySourceFollowsRuntimeMode 2.48 -TestInvestigationBackupTasksUseCommunityRecoverySource 2.92 -TestInvestigationBackupInventoryMatchesCommunityPoints 6.45 -TestIssue1753SameNameProxmoxAgentsAuthenticateAndStayDistinctEndToEnd 2.33 -TestSyncReleaseDemoFixtureRuntime_DoesNotPoliceMockFixturesInDevBuilds 0.91 +TestNormalizeSegment_DoesNotAllocate 1.04 +TestNormalizeRoute_RootFastPathDoesNotAllocate 1.04 +TestInvestigationRecoverySourceFollowsRuntimeMode 2.55 +TestInvestigationBackupTasksUseCommunityRecoverySource 2.95 +TestInvestigationBackupInventoryMatchesCommunityPoints 6.44 +TestIssue1753SameNameProxmoxAgentsAuthenticateAndStayDistinctEndToEnd 2.32 +TestSyncReleaseDemoFixtureRuntime_DoesNotPoliceMockFixturesInDevBuilds 0.94 TestSupportBundleNativeWithdrawal 0.54 TestLogStreamRejectsWithdrawnTokenAuthority 2.77 -TestLogStreamIdleTokenWithdrawal 15.18 -TestMetricHistoryWithdrawnSessionCannotDisclose 1.80 -TestMetricHistoryWithdrawnOrganizationCannotDisclose 0.75 -TestMetricsHistoryFallbackSynthesizesUnseededMockWorkloadHistory 0.93 -TestMetricsHistoryFallbackSynthesizesMockHostAndNodeDrawerSeries 0.93 -TestMetricsHistoryFallbackSupplementsPartialMockStoreSeries 0.95 +TestLogStreamIdleTokenWithdrawal 15.17 +TestMetricHistoryWithdrawnSessionCannotDisclose 1.77 +TestMetricHistoryWithdrawnOrganizationCannotDisclose 0.74 +TestMetricsHistoryFallbackSynthesizesUnseededMockWorkloadHistory 0.94 +TestMetricsHistoryFallbackSynthesizesMockHostAndNodeDrawerSeries 0.92 +TestMetricsHistoryFallbackSupplementsPartialMockStoreSeries 0.94 TestMetricsHistoryFallbackMockDiskSynthesizesSeries 1.13 -TestMetricsHistoryFallbackMockUnifiedStorageSynthesizesSeries 1.54 -TestMetricsHistoryFallbackMockStorageBypassesSparseStoreSeries 1.54 -TestNotificationDestinationsAreOrganizationBound 0.62 -TestDeliveryRehearsalsStayWithinTheRequestOrganization 0.82 -TestNotificationDestinationSavedByOrganizationOwnerStaysInThatOrganization 0.79 +TestMetricsHistoryFallbackMockUnifiedStorageSynthesizesSeries 1.52 +TestMetricsHistoryFallbackMockStorageBypassesSparseStoreSeries 1.56 +TestNotificationDestinationsAreOrganizationBound 0.60 +TestDeliveryRehearsalsStayWithinTheRequestOrganization 0.81 +TestNotificationDestinationSavedByOrganizationOwnerStaysInThatOrganization 0.78 TestNotificationQueueRoutesStayInstanceAdministration 0.56 -TestAppriseCommandLineStaysWithInstanceAdministrators 0.82 -TestNotificationDestinationsRefuseOrganizationBoundTokens 0.55 -TestOIDCCABundleRevalidationRefusesFIFO 1.05 -TestSSOOnlyExplicitAdminReachesEveryAdminGuard 1.11 -TestUnrelatedSSOUserStillRefusedWhenLocalAdminConfigured 1.77 -TestOIDCRefreshCompletionReleasesMemoryBeforePersistence 0.65 -TestOrgBoundSettingsTokenRouterMatrix 0.58 +TestAppriseCommandLineStaysWithInstanceAdministrators 0.81 +TestNotificationDestinationsRefuseOrganizationBoundTokens 0.54 +TestOIDCCABundleRevalidationRefusesFIFO 1.04 +TestSSOOIDCCallbackMissingCodePreservesNativeLogin 0.58 +TestOIDCServiceJOSECompatibilityAndRejection 0.60 +TestOIDCRefreshCompletionReleasesMemoryBeforePersistence 0.66 +TestOrgBoundSettingsTokenRouterMatrix 0.56 TestPatrolActionBrokerAutonomyModeIsAnUpperBound 0.54 -TestPatrolReceiptLifecycleRetainsOldDispositionUntilOwnerCanSettleIt 0.82 -TestPlatformAdminRouteRefusesUnrelatedSSOUser 0.82 -TestGuestStartRefusalSaysWhyOnEachKindOfNode 0.80 +TestPatrolReceiptLifecycleRetainsOldDispositionUntilOwnerCanSettleIt 0.81 +TestGuestStartRefusalSaysWhyOnEachKindOfNode 0.79 TestGuestStartRunsOnlyOnTheAgentLinkedToTheGuestsNode 0.58 TestAgentRunStartIsConfirmedOnlyByPulsesOwnProxmoxCheck 0.81 TestJourneyGeneralAPIBudgetIsolation 0.71 -TestRBACAdminResetRequestLifetime 1.21 -TestTenantRBACProvider_ConcurrentGetAndRemove 0.52 -TestTenantRBACProvider_NoConnectionLeak 1.57 -TestHandleListPointsAcceptsCanonicalPlatformQuery 1.48 -TestHandleListRollupsExposeCanonicalPlatformsPayload 1.41 -TestHandleListRollupsMetaReportsNormalizedPagination 2.03 -TestHandleListPointsMetaReportsNormalizedPagination 2.09 -TestHandleListRollupsFutureClockEvidenceAndCorrection 0.90 -TestReportingActivityMockDownloadsAreSuppressed 0.94 -TestReportingSubjectBoundaryExemptionIsExact 8.17 -TestParkedRequestBodyFollowsCredentialWithdrawal 1.91 -TestResourceReadsWithdrawnTokenCannotDisclose 20.39 -TestResourceReadsWithdrawnSessionCannotDisclose 8.48 -TestResourceReadsWithdrawalWithholdsErrors 0.74 -TestResourceReadsKeepAdmissionAndRecovery 1.70 -TestResourceReadsStoreOnlyEntrancesKeepAdmission 0.75 -TestResourceReadScopeCannotMutate 1.21 -TestReleaseNoteImageRouteAuthorization 0.53 -TestBackupJobsRouteAuthorization 0.51 -TestRegisteredTestNotificationStaysWithRequestOrganization 1.77 -TestRegisteredTestNotificationAdmitsRequestOrganizationManagers 0.57 -TestAgentHistoryPreservesAdmittedReaders 1.21 -TestMetricHistoryPreservesAdmittedReaders 2.16 -TestStartPatrolForContext_DoesNotOverwriteOtherTenantPatrolComponents 1.91 -TestStartPatrolForContext_RejectsMismatchedAIServiceOrg 1.14 -TestRouterShutdownJoinsEveryOwnedLimiter 1.06 -TestRouterMockMode_SeedsTrueNASAndVMwareSupplementalResources 1.27 -TestRouterMockMode_SeedsVMwareSupplementalActivity 0.94 -TestRouteExecuteStream_UseCaseCaseInsensitive 0.69 -TestRouteExecuteStream_AutofixLicenseRequired 0.78 -TestRouteExecuteStream_InvalidJSON 0.79 -TestRouteExecuteStream_TargetIDTooLong 0.79 -TestRouteExecuteStream_WhitespaceOnlyPrompt 0.79 -TestRouteExecuteStream_InvalidTargetType 0.79 -TestRouteExecuteStream_AIDisabled 0.79 -TestRouteExecuteStream_ServiceError 0.79 -TestRouteExecuteStream_ValidTargetTypes 2.38 -TestRouteExecuteStream_EmptyPrompt 0.79 -TestRouteExecuteStream_EmptyJSONObject 0.81 -TestRouteExecuteStream_WrongScope 0.81 -TestRouteExecuteStream_NullPrompt 0.81 -TestRouteExecuteStream_NoAuth 0.81 -TestRouteExecuteStream_EmptyBody 0.80 -TestRouteExecuteStream_MethodNotAllowed 0.81 -TestRouteExecuteStream_CompleteEventBeforeDone 0.80 -TestRouteExecuteStream_InvalidHistoryRole 0.74 -TestRouteExecuteStream_OversizedBody 0.82 -TestRouteExecuteStream_Success 0.79 -TestRouteExecuteStream_SSEHeaders 0.85 -TestRouteExecuteStream_EmptyTargetTypeAllowed 1.56 -TestLicensePurchaseStartRequiresLicenseActivationAuthority 0.70 -TestRouter_HandleState_MockIsolation 3.34 -TestHandleVersion_Success 0.93 -TestAlertConnectionSnapshotsDoNotRebuildTheMockViewAfterFixtureTicks 1.55 -TestAlertConnectionSnapshotsMatchTheFullAggregatorOnPlatformRows 1.52 -TestPatrolOperatorStateResolverDoesNotRebuildTheMockViewAfterFixtureTicks 1.36 -TestSAMLCallbackPolicyWithdrawal 0.54 -TestAgentInstallCommandCannotGrantExecBeyondCaller 1.19 -TestReportHandlerOffersOnlyQualifyingLiveReportsToTheRecorder 1.14 -TestReportAckNamesNoCommandIdentityInMockMode 1.20 -TestBasicAuthenticatedBrowserWritesRequireExactOrigin 0.58 -TestQuickSecuritySetupFixturesInFreshProcesses 3.24 -TestSettingsCapabilitiesMatchRouteEnforcementWithoutRBAC 0.84 -TestSettingsCapabilitiesGrantConfiguredAdminWithoutRBAC 0.84 -TestSecurityTokenMutationRoutesAllowAuthenticationDuringOutput 0.51 -TestSecurityTokenReadRoutesAllowAuthenticationDuringOutput 0.51 -TestSecurityTokenMutationRoutesFollowCallerWithdrawal 3.11 -TestSecurityTokenMutationTransactionsFollowCallerWithdrawal 2.40 -TestSecurityTokenMutationUsesCurrentGrantScopes 1.37 -TestSecurityTokenMutationKeepsLiveSelfWithdrawal 0.51 -TestSecurityTokensDeleteRevokesTenantAgentInstallToken 0.56 +TestRBACAdminResetRequestLifetime 1.19 +TestTenantRBACProvider_ConcurrentGetAndRemove 0.55 +TestTenantRBACProvider_NoConnectionLeak 1.81 +TestHandleListPointsAcceptsCanonicalPlatformQuery 1.75 +TestHandleListRollupsExposeCanonicalPlatformsPayload 1.69 +TestHandleListRollupsMetaReportsNormalizedPagination 2.42 +TestHandleListPointsMetaReportsNormalizedPagination 2.40 +TestHandleListRollupsFutureClockEvidenceAndCorrection 1.01 +TestReportingActivityMockDownloadsAreSuppressed 1.11 +TestReportingSubjectBoundaryExemptionIsExact 4.96 +TestParkedRequestBodyFollowsCredentialWithdrawal 2.18 +TestResourceReadsWithdrawnTokenCannotDisclose 23.26 +TestResourceReadsWithdrawnSessionCannotDisclose 9.66 +TestResourceReadsWithdrawalWithholdsErrors 0.83 +TestResourceReadsKeepAdmissionAndRecovery 1.94 +TestResourceReadsStoreOnlyEntrancesKeepAdmission 0.85 +TestResourceReadScopeCannotMutate 1.38 +TestReleaseNoteImageRouteAuthorization 0.72 +TestBackupJobsRouteAuthorization 0.58 +TestRegisteredTestNotificationStaysWithRequestOrganization 1.93 +TestRegisteredTestNotificationAdmitsRequestOrganizationManagers 0.64 +TestAgentHistoryPreservesAdmittedReaders 1.38 +TestMetricHistoryPreservesAdmittedReaders 2.47 +TestStartPatrolForContext_DoesNotOverwriteOtherTenantPatrolComponents 2.29 +TestStartPatrolForContext_RejectsMismatchedAIServiceOrg 1.34 +TestRouterShutdownJoinsEveryOwnedLimiter 1.21 +TestRouterMockMode_SeedsTrueNASAndVMwareSupplementalResources 1.46 +TestRouterMockMode_SeedsVMwareSupplementalActivity 1.10 +TestLicensePurchaseStartRequiresLicenseActivationAuthority 0.80 +TestRouter_HandleState_MockIsolation 3.83 +TestHandleMetricsHistory_EveryPlanServesEveryRange 0.51 +TestAlertConnectionSnapshotsDoNotRebuildTheMockViewAfterFixtureTicks 1.63 +TestAlertConnectionSnapshotsMatchTheFullAggregatorOnPlatformRows 1.62 +TestPatrolOperatorStateResolverDoesNotRebuildTheMockViewAfterFixtureTicks 1.42 +TestSAMLCallbackPolicyWithdrawal 0.69 +TestAgentInstallCommandCannotGrantExecBeyondCaller 1.39 +TestReportHandlerOffersOnlyQualifyingLiveReportsToTheRecorder 1.37 +TestReportAckNamesNoCommandIdentityInMockMode 1.44 +TestBasicAuthenticatedBrowserWritesRequireExactOrigin 0.64 +TestQuickSecuritySetupFixturesInFreshProcesses 1.14 +TestSettingsCapabilitiesGrantConfiguredAdminWithoutRBAC 0.69 +TestSecurityTokenMutationRoutesAllowAuthenticationDuringOutput 0.67 +TestSecurityTokenReadRoutesAllowAuthenticationDuringOutput 0.66 +TestSecurityTokenMutationRoutesFollowCallerWithdrawal 4.02 +TestSecurityTokenMutationTransactionsFollowCallerWithdrawal 3.17 +TestSecurityTokenMutationUsesCurrentGrantScopes 1.79 +TestSecurityTokenMutationKeepsLiveSelfWithdrawal 0.67 +TestSecurityTokensDeleteRevokesTenantAgentInstallToken 0.72 TestSecurityTokens_PollWithdrawsLocallyCreatedTokenAfterRestore 15.00 -TestSessionPersistenceMutationsReleaseMemoryBeforeIO 0.61 -TestSessionReadLogoutAssistantStreams 0.66 +TestSessionPersistenceMutationsReleaseMemoryBeforeIO 0.85 +TestSessionReadLogoutLogsAndEvents 0.51 +TestSessionReadLogoutAssistantStreams 0.86 +TestRouteExecute_TargetIDTooLong 0.78 +TestRouteExecuteStream_InvalidHistoryRole 0.79 +TestRouteExecute_EmptyTargetTypeAllowed 0.79 +TestRouteExecuteStream_InvalidJSON 0.91 +TestRouteExecuteStream_TargetIDTooLong 0.79 +TestAITestProviderRouteRejectsWrongScope 0.90 +TestRouteExecute_InvalidHistoryRole 0.91 +TestRouteExecute_InvalidTargetType 0.91 +TestAITestConnectionRouteWithValidScope 0.91 +TestRouteExecuteStream_ServiceError 0.91 +TestRouteExecute_ValidTargetTypes 2.79 +TestRouteTestProvider_ValidProviderNameEdgeCases 0.92 +TestRouteExecute_ServiceError 0.94 +TestRouteExecuteStream_InvalidTargetType 0.93 +TestRouteExecuteStream_EmptyJSONObject 0.91 +TestRouteTestProvider_InvalidProviderNames 0.91 +TestRouteExecuteStream_NullPrompt 0.91 +TestRouteTestProvider_WrongScope 0.92 +TestRouteExecute_NullPrompt 0.95 +TestRouteExecute_UseCaseCaseInsensitive 0.92 +TestRouteExecuteStream_SSEHeaders 1.02 +TestRouteTestProvider_MultipleProviders 0.92 +TestRouteExecute_EmptyBody 0.92 +TestRouteTestProvider_NoAuth 0.93 +TestRouteExecute_EmptyJSONObject 0.93 +TestRouteTestProvider_MethodNotAllowed 0.92 +TestRouteExecute_OversizedBody 0.91 +TestRouteExecuteStream_UseCaseCaseInsensitive 0.92 +TestRouteExecuteStream_OversizedBody 0.92 +TestRouteExecuteStream_CompleteEventBeforeDone 0.92 +TestRouteTestProvider_ConnectionFailure 0.91 +TestRouteExecuteStream_AutofixLicenseRequired 0.91 +TestRouteExecute_RemediationLicenseRequired 0.91 +TestRouteExecuteStream_RemediationLicenseRequired 1.02 +TestRouteTestProvider_PathTraversal 0.91 +TestRouteExecuteStream_AIDisabled 0.91 +TestRouteTestProvider_UnconfiguredProvider 0.91 +TestRouteExecuteStream_WhitespaceOnlyPrompt 0.91 +TestRouteExecute_AIDisabled 0.91 +TestRouteExecuteStream_EmptyPrompt 0.91 +TestRouteTestProvider_Success 0.91 +TestRouteTestProvider_UnknownProvider 0.91 +TestRouteExecute_AutofixLicenseRequired 0.91 +TestRouteExecute_InvalidJSON 0.90 +TestAITestProviderRouteWithValidScope 0.90 +TestAITestConnectionRouteRejectsWrongScope 0.87 +TestRouteTestConnection_WrongScope 0.91 +TestRouteTestConnection_NoConfig 0.90 +TestRouteTestConnection_NoAuth 0.91 +TestRouteTestConnection_MethodNotAllowed 0.92 +TestRouteExecuteStream_WrongScope 0.90 +TestRouteExecuteStream_MethodNotAllowed 0.91 +TestRouteTestConnection_ConnectionFailure 1.02 +TestRouteTestConnection_Success 0.79 +TestRouteExecuteStream_Success 0.84 +TestRouteExecuteStream_NoAuth 0.86 +TestRouteListModels_HEADMethod 0.91 +TestRouteListModels_MalformedProviderResponse 0.79 +TestRouteListModels_CachedField 0.88 +TestRouteListModels_ResponseContentType 0.92 +TestRouteListModels_ProviderError 0.92 +TestRouteListModels_WrongScope 0.89 +TestRouteExecuteStream_ModelFieldPassedThrough 0.90 +TestRouteListModels_NoAuth 0.90 +TestRouteExecute_WithConversationHistory 0.91 +TestRouteListModels_EmptyModelList 0.91 +TestRouteListModels_MethodNotAllowed 0.93 +TestRouteListModels_Success 0.92 +TestRouteExecute_WhitespaceOnlyPrompt 0.91 +TestRouteExecute_ModelFieldPassedThrough 0.92 +TestRouteExecuteStream_DefaultUseCaseIsChat 0.91 +TestRouteExecuteStream_FindingIDPassedThrough 0.91 +TestRouteExecute_WrongScope 0.82 +TestRouteExecute_FindingIDPassedThrough 0.91 +TestRouteExecuteStream_EmptyBody 0.92 +TestRouteExecute_DefaultUseCaseIsChat 0.79 +TestRouteExecuteStream_WithTargetContext 0.92 +TestRouteExecute_EmptyPrompt 0.92 +TestRouteExecute_NoAuth 0.94 +TestRouteExecuteStream_WithConversationHistory 0.92 +TestRouteExecute_MethodNotAllowed 0.93 +TestRouteExecute_WithTargetContext 0.92 +TestRouteExecute_Success 0.72 +TestRouteExecuteStream_EmptyTargetTypeAllowed 1.84 +TestRouteExecuteStream_ValidTargetTypes 2.23 TestSessionReadIdleExpiry 15.00 -TestSessionTrackingRepeatedRevocationWaitsForBothStores 0.81 +TestSessionTrackingRepeatedRevocationWaitsForBothStores 0.80 TestSessionTrackingPersistenceDoesNotBlockUnrelatedRequests 1.12 TestSSOLoadFailureRegisteredBoundary 0.70 -TestSSOLoadFailureAnonymousAdmissionCannotSurviveRecovery 3.57 -TestTenantAdministratorCannotPointOutboundConnectionsAtLoopback 0.66 -TestRequireOrgAdminAttachesTenantOutboundPolicyOnlyToTenantCallers 0.55 +TestSSOLoadFailureAnonymousAdmissionCannotSurviveRecovery 3.54 +TestTenantAdministratorCannotPointOutboundConnectionsAtLoopback 0.68 +TestRequireOrgAdminAttachesTenantOutboundPolicyOnlyToTenantCallers 0.56 TestTenantAdministratorCannotReachLoopbackThroughBlankSMTPServer 0.62 -TestPackageTestsBuildRoutersThroughLifecycleHelper 4.82 -TestProtectedReadStreamsWithdrawAuthority 10.06 +TestPackageTestsBuildRoutersThroughLifecycleHelper 4.79 +TestProtectedReadStreamsWithdrawAuthority 10.02 TestProtectedReadStreamsDurableDeletion 0.72 TestProtectedReadStreamsIdleWithdrawal 15.18 -TestProtectedReadStreamsPreserveSessionAndProxy 1.42 -TestProtectedReadStreamsKeepOrgAndInstanceSplit 0.71 -TestUpdateStreamChainShutdownInterruptsBlockedWrite 0.92 -TestUpdateStreamChainShutdownInterruptsBlockedPreamble 0.93 +TestProtectedReadStreamsPreserveSessionAndProxy 1.40 +TestProtectedReadStreamsKeepOrgAndInstanceSplit 0.70 +TestUpdateStreamChainShutdownInterruptsBlockedWrite 0.95 +TestUpdateStreamChainShutdownInterruptsBlockedPreamble 0.86 TestUpdateStreamChainWithdrawalInterruptsBlockedWrite 15.23 -TestUpdateStreamChainClientDisconnectWithBlockedWrite 0.87 -TestUpdateStreamChainRequestCancellationInterruptsBlockedWrites 3.44 +TestUpdateStreamChainClientDisconnectWithBlockedWrite 0.86 +TestUpdateStreamChainRequestCancellationInterruptsBlockedWrites 3.46 TestCORE13RESTReportingChartJourney 0.54 -TestCOREHistoryKeepsIntraPollIOAndDayCoverage 0.54 -TestTrueNASDiskHistoryAuthenticatedRoute 1.58 -TestCOREIndependentDiskTrajectories 0.72 -TestTrueNASHandlers_HandleList_ReturnsMockConnectionsInMockMode 0.93 -TestTrueNASHostIOHistoryWithPartialStore 0.93 -TestTrueNASScaleHostHistoryDisconnectPreservesPollingSession 0.61 -TestFreeBSDOfflineAgentPreflight 11.43 -TestDownloadUnifiedAgent_LocalWindowsReleaseUsesExecutableSignatures 4.35 -TestDownloadUnifiedAgent_ProxyFromGitHub_ArchiveFallback_Darwin 5.00 +TestCOREHistoryKeepsIntraPollIOAndDayCoverage 0.55 +TestTrueNASDiskHistoryAuthenticatedRoute 1.57 +TestCOREIndependentDiskTrajectories 0.71 +TestTrueNASHandlers_HandleList_ReturnsMockConnectionsInMockMode 1.00 +TestTrueNASHostIOHistoryWithPartialStore 0.94 +TestTrueNASScaleHostHistoryDisconnectPreservesPollingSession 0.60 +TestHandleDownloadUnifiedAgentSetsChecksumAndInvalidatesOnChange 0.52 +TestProxiedReleaseAssetIsReleasedWhenClientNeverReads 0.50 +TestFreeBSDOfflineAgentPreflight 12.72 +TestDownloadUnifiedAgent_LocalWindowsReleaseUsesExecutableSignatures 4.13 +TestDownloadUnifiedAgent_ProxyFromGitHub_ArchiveFallback_Darwin 4.85 TestDownloadUnifiedAgent_ProxyFromGitHub_ArchiveFallback_UsesConfiguredRepo 0.77 -TestBranchcov0723AmExtractFromZip 2.10 +TestBranchcov0723AmExtractFromZip 2.07 TestUpdateStreamServerShutdownWithHeldWrite 0.73 -TestUpdateStreamClientDisconnectWithHeldWrite 0.78 -TestUpdateStreamHeartbeatIsolationAndReconnect 0.69 +TestUpdateStreamClientDisconnectWithHeldWrite 0.76 +TestUpdateStreamHeartbeatIsolationAndReconnect 0.65 TestHandleApplyUpdate_BlocksWhenReadinessBlocked 0.92 -TestHandleGetUpdatePlan 0.89 -TestHandleGetUpdatePlan_DockerSavedDeployment 0.91 -TestHandleGetUpdatePlan_IncludesUpgradeReadiness 0.90 -TestHandleGetUpdatePlan_InvalidChannel 0.88 -TestHandleGetUpdatePlan_PrepareError 0.89 +TestHandleGetUpdatePlan 0.91 +TestHandleGetUpdatePlan_DockerSavedDeployment 0.89 +TestHandleGetUpdatePlan_IncludesUpgradeReadiness 0.91 +TestHandleGetUpdatePlan_InvalidChannel 0.89 +TestHandleGetUpdatePlan_PrepareError 0.90 TestHostWorkRoutesFollowRBACActionGrants 0.52 -TestVMwareHandlers_HandleList_ReturnsMockConnectionsInMockMode 0.90 -TestMonitoringWebSocketRejectsWithdrawnTokenAuthority 3.74 -TestAlertsEndpoints 1.33 -TestHealthEndpoint 0.84 -TestVersionEndpointUsesRepoVersion 0.86 -TestAlertAcknowledge_AllowsPrintableAlertIDs 0.84 -TestStateEndpointReturnsMockData 11.36 -TestRecoveryRollupsEndpointReturnsMockData 6.50 +TestVMwareHandlers_HandleList_ReturnsMockConnectionsInMockMode 0.92 +TestMonitoringWebSocketRejectsWithdrawnTokenAuthority 3.62 +TestAlertsEndpoints 1.31 +TestHealthEndpoint 0.82 +TestVersionEndpointUsesRepoVersion 0.88 +TestAlertAcknowledge_AllowsPrintableAlertIDs 0.83 +TestStateEndpointReturnsMockData 0.95 +TestRecoveryRollupsEndpointReturnsMockData 6.61 TestProtectedEndpointsRequireAuthentication 0.84 -TestAPIOnlyModeRequiresToken 0.93 +TestAPIOnlyModeRequiresToken 0.92 TestServerInfoEndpointReportsDevelopment 0.85 -TestRecoveryPointsEndpointReturnsMockData 7.23 -TestServerInfoEndpointMethodNotAllowed 0.83 -TestHealthEndpointMethodNotAllowed 0.83 -TestHealthEndpointHeadAllowed 0.85 -TestConfigNodesUsesMockTopology 5.53 -TestMockModeToggleEndpoint 11.90 -TestMockModeToggleFromRealDataRebindsPlatformSupplementalProviders 6.28 -TestAuthenticatedEndpointsRequireToken 0.86 -TestAPITokenQueryAndHeaderAuth 1.02 -TestRecoveryEndpointRequiresDirectLoopback 0.85 +TestRecoveryPointsEndpointReturnsMockData 7.08 +TestServerInfoEndpointMethodNotAllowed 0.81 +TestHealthEndpointMethodNotAllowed 0.81 +TestHealthEndpointHeadAllowed 0.81 +TestConfigNodesUsesMockTopology 0.82 +TestMockModeToggleEndpoint 1.56 +TestMockModeToggleFromRealDataRebindsPlatformSupplementalProviders 6.30 +TestAuthenticatedEndpointsRequireToken 0.83 +TestAPITokenQueryAndHeaderAuth 0.99 +TestRecoveryEndpointRequiresDirectLoopback 0.82 TestWebSocketSendsInitialState 1.54 -TestWebsocketPayloadContractShape 1.57 -TestWebsocketPayloadUsesCanonicalStateContract 1.57 -TestSessionCookieAllowsAuthenticatedAccess 0.87 -TestRevokedAPITokenImmediatelyLosesAccess 1.04 -TestLimitedAPITokenCannotCreateBroaderToken 0.85 -TestPublicURLDetectionUsesForwardedHeaders 0.82 -TestPublicURLDetectionRespectsEnvOverride 0.83 -TestRouteListModels_MalformedProviderResponse 0.79 -TestRouteExecute_EmptyBody 0.78 -TestRouteListModels_CachedField 0.79 -TestRouteListModels_EmptyModelList 0.79 -TestRouteListModels_ResponseContentType 0.79 -TestRouteListModels_ProviderError 0.80 -TestRouteListModels_NoAuth 0.80 -TestRouteListModels_WrongScope 0.79 -TestRouteListModels_MethodNotAllowed 0.78 -TestRouteListModels_Success 0.79 -TestAITestProviderRouteWithValidScope 0.79 -TestRouteExecute_ModelFieldPassedThrough 0.80 -TestAITestProviderRouteRejectsWrongScope 0.79 -TestAITestConnectionRouteWithValidScope 0.78 -TestAITestConnectionRouteRejectsWrongScope 0.78 -TestRouteExecute_FindingIDPassedThrough 0.80 -TestRouteExecute_TargetIDTooLong 0.80 -TestRouteExecute_InvalidHistoryRole 0.80 -TestRouteTestProvider_PathTraversal 0.79 -TestRouteExecute_EmptyTargetTypeAllowed 0.80 -TestRouteTestProvider_ValidProviderNameEdgeCases 0.83 -TestRouteExecute_InvalidTargetType 0.80 -TestRouteTestProvider_InvalidProviderNames 0.83 -TestRouteExecute_UseCaseCaseInsensitive 0.80 -TestRouteExecute_ServiceError 0.80 -TestRouteExecute_EmptyJSONObject 0.80 -TestRouteTestProvider_WrongScope 0.82 -TestRouteTestConnection_WrongScope 0.81 -TestRouteExecute_ValidTargetTypes 2.42 -TestRouteTestProvider_Success 0.80 -TestRouteTestProvider_UnknownProvider 0.80 -TestRouteTestProvider_MultipleProviders 0.82 -TestRouteTestProvider_NoAuth 0.80 -TestRouteTestConnection_MethodNotAllowed 0.82 -TestRouteTestConnection_ConnectionFailure 0.79 -TestRouteTestConnection_Success 0.80 -TestRouteTestConnection_NoAuth 0.79 -TestRouteTestProvider_ConnectionFailure 0.79 -TestRouteListModels_HEADMethod 0.79 -TestRouteTestProvider_UnconfiguredProvider 0.79 -TestRouteTestProvider_MethodNotAllowed 0.79 -TestRouteTestConnection_NoConfig 0.79 -TestRouteExecute_EmptyPrompt 0.79 -TestRouteExecute_OversizedBody 0.79 -TestRouteExecute_RemediationLicenseRequired 0.79 -TestRouteExecute_AutofixLicenseRequired 0.79 -TestRouteExecute_NullPrompt 0.79 -TestRouteExecute_WithTargetContext 0.80 -TestRouteExecute_DefaultUseCaseIsChat 0.80 -TestRouteExecute_AIDisabled 0.81 -TestRouteExecute_InvalidJSON 0.81 -TestRouteExecute_WhitespaceOnlyPrompt 0.81 -TestRouteExecute_Success 0.80 -TestRouteExecute_WithConversationHistory 0.80 -TestRouteExecute_NoAuth 0.80 -TestRouteExecute_MethodNotAllowed 0.80 -TestRouteExecute_WrongScope 0.79 -TestRouteExecuteStream_DefaultUseCaseIsChat 0.79 -TestRouteExecuteStream_FindingIDPassedThrough 0.80 -TestRouteExecuteStream_ModelFieldPassedThrough 0.80 +TestWebsocketPayloadContractShape 1.55 +TestWebsocketPayloadUsesCanonicalStateContract 1.53 +TestSessionCookieAllowsAuthenticatedAccess 0.84 +TestRevokedAPITokenImmediatelyLosesAccess 1.01 +TestLimitedAPITokenCannotCreateBroaderToken 0.83 +TestPublicURLDetectionUsesForwardedHeaders 0.81 +TestPublicURLDetectionRespectsEnvOverride 0.81 diff --git a/cmd/pulse-agent/release_identity_test.go b/cmd/pulse-agent/release_identity_test.go index 0b99a38e70..1a2f27ce0c 100644 --- a/cmd/pulse-agent/release_identity_test.go +++ b/cmd/pulse-agent/release_identity_test.go @@ -12,6 +12,7 @@ import ( ) func TestPublishedAgentReleaseIdentity(t *testing.T) { + t.Parallel() if testing.Short() { t.Skip("real release-style executable build") } @@ -51,6 +52,7 @@ func TestPublishedAgentReleaseIdentity(t *testing.T) { } func TestUnstampedAgentReleaseIdentityCannotUseLinkerLiteral(t *testing.T) { + t.Parallel() if testing.Short() { t.Skip("real unstamped executable control") } @@ -85,6 +87,7 @@ func TestUnstampedAgentReleaseIdentityCannotUseLinkerLiteral(t *testing.T) { } func TestPublishedAgentReleaseIdentityNonTrimpath(t *testing.T) { + t.Parallel() if testing.Short() { t.Skip("real non-trimpath release build") } diff --git a/internal/agentupdate/coverage_test.go b/internal/agentupdate/coverage_test.go index 490b48f839..410874c48d 100644 --- a/internal/agentupdate/coverage_test.go +++ b/internal/agentupdate/coverage_test.go @@ -444,6 +444,7 @@ func TestIsUnraidOverride(t *testing.T) { } func TestGetServerVersion(t *testing.T) { + skipRetrySleep(t) t.Run("Success", func(t *testing.T) { var sawToken bool server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { @@ -517,6 +518,7 @@ func TestGetServerVersion(t *testing.T) { } func TestCheckAndUpdateBranches(t *testing.T) { + skipRetrySleep(t) t.Run("Disabled", func(t *testing.T) { u := newUpdaterForTest("https://example") u.cfg.Disabled = true @@ -830,6 +832,7 @@ func TestPerformUpdatePersistsPreviousVersionForNextStart(t *testing.T) { } func TestPerformUpdateWrapper(t *testing.T) { + skipRetrySleep(t) t.Run("ExecPathError", func(t *testing.T) { origExec := osExecutableFn t.Cleanup(func() { osExecutableFn = origExec }) @@ -878,6 +881,7 @@ func TestPerformUpdateInvalidRequest(t *testing.T) { } func TestPerformUpdateDownloadErrorAndHeaders(t *testing.T) { + skipRetrySleep(t) _, execPath := writeTempExec(t) u := newUpdaterForTest("https://example") u.cfg.APIToken = "token" diff --git a/internal/agentupdate/update_http_test.go b/internal/agentupdate/update_http_test.go index c879722b04..1d72d238ba 100644 --- a/internal/agentupdate/update_http_test.go +++ b/internal/agentupdate/update_http_test.go @@ -298,7 +298,15 @@ func TestUpdater_getServerVersion_SetsAuthHeaders(t *testing.T) { } } +func skipRetrySleep(t *testing.T) { + t.Helper() + originalSleep := retrySleepFn + retrySleepFn = func(context.Context, time.Duration) error { return nil } + t.Cleanup(func() { retrySleepFn = originalSleep }) +} + func TestUpdater_getServerVersion_BadStatus(t *testing.T) { + skipRetrySleep(t) srv := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { w.WriteHeader(http.StatusInternalServerError) })) @@ -325,6 +333,7 @@ func TestUpdater_getServerVersion_BadJSON(t *testing.T) { } func TestUpdater_getServerVersion_RejectsRedirects(t *testing.T) { + skipRetrySleep(t) var redirectedHits int32 redirectTarget := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { atomic.AddInt32(&redirectedHits, 1) @@ -721,6 +730,7 @@ func TestUpdater_CheckAndUpdate_RecordsLifecycleStatus(t *testing.T) { } func TestUpdater_performUpdateWithExecPath_RejectsRedirects(t *testing.T) { + skipRetrySleep(t) var redirectedHits int32 redirectTarget := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { atomic.AddInt32(&redirectedHits, 1) diff --git a/internal/notifications/firing_grouping_occurrence_test.go b/internal/notifications/firing_grouping_occurrence_test.go index 6544adce92..027eeeab31 100644 --- a/internal/notifications/firing_grouping_occurrence_test.go +++ b/internal/notifications/firing_grouping_occurrence_test.go @@ -184,6 +184,7 @@ func TestPendingFiringGroupCancellationAndFlush(t *testing.T) { // Bootstrap restart, autonomous processing and recovery use normal entry points; // no synthetic successful receipt, direct dispatcher or edited queue clock. func TestPendingFiringGroupHTTPAcrossRestart(t *testing.T) { + t.Parallel() type message struct { destination string Event string `json:"event"` @@ -330,6 +331,7 @@ func TestPendingFiringGroupHTTPAcrossRestart(t *testing.T) { } func TestPendingFiringGroupStopCancelsTimer(t *testing.T) { + t.Parallel() received := make(chan struct{}, 4) server := newIPv4HTTPServer(t, http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { received <- struct{}{} diff --git a/internal/notifications/pinned_connectivity_linux_test.go b/internal/notifications/pinned_connectivity_linux_test.go index 19ef012efa..7fdc9a920b 100644 --- a/internal/notifications/pinned_connectivity_linux_test.go +++ b/internal/notifications/pinned_connectivity_linux_test.go @@ -107,6 +107,7 @@ func notificationLoopbackListenerPair(t *testing.T) (string, net.Listener) { } func TestQueuedWebhookFallbackVerdictSurvivesRestart(t *testing.T) { + t.Parallel() port, accepted := notificationStalledAddress(t) dir := t.TempDir() manager := NewNotificationManagerWithDeferredQueue("", dir) @@ -148,8 +149,10 @@ func TestQueuedWebhookFallbackVerdictSurvivesRestart(t *testing.T) { } func TestPinnedNotificationConnectivityReachesHealthyAddressAfterStall(t *testing.T) { + t.Parallel() for _, transport := range []string{"webhook", "shared-restricted-client"} { t.Run(transport, func(t *testing.T) { + t.Parallel() port, accepted := notificationStalledAddress(t) ips := []net.IP{net.ParseIP("127.0.0.2"), net.ParseIP("127.0.0.1")} var client *http.Client diff --git a/internal/notifications/rehearsal_test.go b/internal/notifications/rehearsal_test.go index b93e64d0e8..467fcf85f9 100644 --- a/internal/notifications/rehearsal_test.go +++ b/internal/notifications/rehearsal_test.go @@ -27,6 +27,7 @@ func openRehearsalManager(t *testing.T, dir, receiver string) *NotificationManag } func TestDeliveryRehearsalRealQueueAndRecoverySurviveRestart(t *testing.T) { + t.Parallel() var requests atomic.Int32 bodies := make(chan []byte, 4) server := newIPv4HTTPServer(t, http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { @@ -112,6 +113,7 @@ func TestDeliveryRehearsalUsesStableDiagnosticAliasForSavedEmail(t *testing.T) { } func TestDeliveryRehearsalKeepsMixedDestinationOutcomesSeparate(t *testing.T) { + t.Parallel() var accepted, rejected atomic.Int32 server := newIPv4HTTPServer(t, http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { if r.URL.Path == "/reject" { @@ -154,8 +156,10 @@ func TestDeliveryRehearsalKeepsMixedDestinationOutcomesSeparate(t *testing.T) { } func TestDeliveryRehearsalReportsRealSuppressionAndDeferral(t *testing.T) { + t.Parallel() for _, scenario := range []string{"paused", "severity", "tags", "grouping", "quiet-hours", "recovery-disabled", "no-destinations"} { t.Run(scenario, func(t *testing.T) { + t.Parallel() var requests atomic.Int32 server := newIPv4HTTPServer(t, http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { requests.Add(1); w.WriteHeader(http.StatusAccepted) })) defer server.Close() @@ -221,6 +225,7 @@ func TestDeliveryRehearsalReportsRealSuppressionAndDeferral(t *testing.T) { } func TestDeliveryRehearsalReportsTerminalFailureAndDoesNotInventRecovery(t *testing.T) { + t.Parallel() var requests atomic.Int32 server := newIPv4HTTPServer(t, http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { requests.Add(1) @@ -251,6 +256,7 @@ func TestDeliveryRehearsalReportsTerminalFailureAndDoesNotInventRecovery(t *test } func TestDeliveryRehearsalRetryUsesOrdinaryQueueAndKeepsAttemptEvidence(t *testing.T) { + t.Parallel() var requests atomic.Int32 server := newIPv4HTTPServer(t, http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { if requests.Add(1) == 1 { diff --git a/internal/notifications/resolved_grouping_contract_test.go b/internal/notifications/resolved_grouping_contract_test.go index 358cd33ed2..ddd303d546 100644 --- a/internal/notifications/resolved_grouping_contract_test.go +++ b/internal/notifications/resolved_grouping_contract_test.go @@ -29,6 +29,7 @@ func waitResolvedContract(t *testing.T, predicate func() bool) { // Ordinary firing establishes real receipts. Restart reloads those receipts; // no receipt or delivery job is manufactured by this test. func TestResolvedGroupingOrdinaryRestart(t *testing.T) { + t.Parallel() for _, stage := range []string{"same_process", "after_firing", "pending_recovery", "late_arrival"} { t.Run(stage, func(t *testing.T) { t.Parallel() @@ -231,6 +232,7 @@ func (s *resolvedContractServer) Close() {} // deliberately hits the unchanged internal 10/minute destination limit; grouped // recovery above sends one request instead and creates no dead letters. func TestResolvedGroupingDisabledBurstRetainsRateLimit(t *testing.T) { + t.Parallel() server := newResolvedContractServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { w.WriteHeader(http.StatusOK) })) m := NewNotificationManagerWithDataDir("", t.TempDir()) defer m.Stop() diff --git a/internal/notifications/tag_routing_recipient_test.go b/internal/notifications/tag_routing_recipient_test.go index 8c0c6032e2..a4bd199daf 100644 --- a/internal/notifications/tag_routing_recipient_test.go +++ b/internal/notifications/tag_routing_recipient_test.go @@ -13,6 +13,7 @@ import ( // Exercise the ordinary grouping timer, autonomous queue, real HTTP bodies and // occurrence receipts. Changed tags/floors must not steal an owed recovery. func TestNotificationBatchRoutingHTTPRecipients(t *testing.T) { + t.Parallel() type delivery struct { path string Event string `json:"event"` diff --git a/internal/notifications/telegram_text_budget_test.go b/internal/notifications/telegram_text_budget_test.go index 9b6c45a18c..76e7d40f8e 100644 --- a/internal/notifications/telegram_text_budget_test.go +++ b/internal/notifications/telegram_text_budget_test.go @@ -70,6 +70,7 @@ func awaitTelegramSizeQueue(t *testing.T, q *NotificationQueue, sent, dead, held // The receiver enforces just the built-in provider's documented text budget // after entity parsing; it is not a model of Telegram's network or service. func TestTelegramOversizedGroupDeliversEveryMember(t *testing.T) { + t.Parallel() url, received := telegramSizeReceiver(t, "") m, _ := telegramSizeManager(t, t.TempDir(), url) batch := telegramReportedAlerts() @@ -110,6 +111,7 @@ func mustTelegramDLQ(t *testing.T, q *NotificationQueue) []*QueuedNotification { } func TestTelegramOversizedSingletonFitsBeforeEscaping(t *testing.T) { + t.Parallel() url, received := telegramSizeReceiver(t, "") m, hook := telegramSizeManager(t, t.TempDir(), url) alert := telegramReportedAlerts()[0] @@ -139,6 +141,7 @@ func TestTelegramOversizedSingletonFitsBeforeEscaping(t *testing.T) { } func TestTelegramPartsKeepRateHoldAndProviderRejectionIndependent(t *testing.T) { + t.Parallel() url, received := telegramSizeReceiver(t, "reject-this-part") dir := t.TempDir() m, hook := telegramSizeManager(t, dir, url) @@ -218,6 +221,7 @@ func TestTelegramPartsKeepRateHoldAndProviderRejectionIndependent(t *testing.T) } func TestTelegramSizedRecoveriesKeepTheirWindowAndReceipts(t *testing.T) { + t.Parallel() url, received := telegramSizeReceiver(t, "") m, hook := telegramSizeManager(t, t.TempDir(), url) m.SetNotifyOnResolve(true) diff --git a/internal/notifications/webhook_enhanced_test.go b/internal/notifications/webhook_enhanced_test.go index 9c59fbbb6e..eb3ba32014 100644 --- a/internal/notifications/webhook_enhanced_test.go +++ b/internal/notifications/webhook_enhanced_test.go @@ -339,6 +339,7 @@ func TestSendWebhookWithRetry_RateLimitExhaustion(t *testing.T) { // A 503 may advertise a recovery delay longer than our initial backoff. // Observe request spacing, not merely eventual success, to detect ignored hints. func TestSendWebhookWithRetry_ServiceUnavailableRetryAfter(t *testing.T) { + t.Parallel() for _, tc := range []struct { name string header string @@ -348,6 +349,7 @@ func TestSendWebhookWithRetry_ServiceUnavailableRetryAfter(t *testing.T) { {"invalid", "not-a-number", WebhookInitialBackoff}, } { t.Run(tc.name, func(t *testing.T) { + t.Parallel() nm := NewNotificationManager("http://pulse.local") t.Cleanup(nm.Stop) require.NoError(t, nm.UpdateAllowedPrivateCIDRs("127.0.0.1")) @@ -446,6 +448,7 @@ func TestSendWebhookWithRetry_InvalidRetryAfterFallsBackToExponentialBackoff(t * } func TestSendWebhookWithRetry_RetriesRequestTimeoutResponses(t *testing.T) { + t.Parallel() nm := NewNotificationManager("http://pulse.local") _ = nm.UpdateAllowedPrivateCIDRs("127.0.0.1") @@ -533,6 +536,7 @@ func TestSendWebhookWithRetry_RetriesLockedResponses(t *testing.T) { } func TestSendWebhookWithRetry_RetriesTooEarlyResponses(t *testing.T) { + t.Parallel() nm := NewNotificationManager("http://pulse.local") _ = nm.UpdateAllowedPrivateCIDRs("127.0.0.1") diff --git a/internal/notifications/webhook_retry_test.go b/internal/notifications/webhook_retry_test.go index 3b19796047..53102832b4 100644 --- a/internal/notifications/webhook_retry_test.go +++ b/internal/notifications/webhook_retry_test.go @@ -13,8 +13,10 @@ import ( // A body interrupted after the response headers must not erase the server's // rejection. These fixtures use only the HTTP transport, without queue workers. func TestWebhookTruncatedResponseClassification(t *testing.T) { + t.Parallel() for _, code := range []int{200, 401, 403, 421, 422, 423, 425, 429, 503} { t.Run(fmt.Sprint(code), func(t *testing.T) { + t.Parallel() server := newIPv4HTTPServer(t, http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { w.Header().Set("Content-Length", "100") w.Header().Set("Retry-After", "0") @@ -51,8 +53,10 @@ func TestWebhookTruncatedResponseClassification(t *testing.T) { } func TestWebhookRetryTruncatedResponse(t *testing.T) { + t.Parallel() for _, code := range []int{403, 421, 423, 425, 503} { t.Run(fmt.Sprint(code), func(t *testing.T) { + t.Parallel() var attempts atomic.Int32 server := newIPv4HTTPServer(t, http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { if r.Header.Get("X-Pulse-Event-ID") != "synthetic:alert" { diff --git a/internal/relay/client_abrupt_disconnect_test.go b/internal/relay/client_abrupt_disconnect_test.go index b6b3dfd1ce..c5cedde2ed 100644 --- a/internal/relay/client_abrupt_disconnect_test.go +++ b/internal/relay/client_abrupt_disconnect_test.go @@ -23,6 +23,7 @@ import ( // 2. Channel state is cleaned up (channels map reset to empty). // 3. The client reconnects successfully. func TestClient_AbruptDisconnectCancelsInFlightHandlers(t *testing.T) { + t.Parallel() // Use Nop logger to avoid panics from async goroutines logging after test completion. logger := zerolog.Nop() @@ -214,6 +215,7 @@ func TestClient_AbruptDisconnectCancelsInFlightHandlers(t *testing.T) { // 2. The channels map is completely cleared on reconnect (no stale entries). // 3. New channels on the second connection work independently. func TestClient_AbruptDisconnectMultipleChannelCleanup(t *testing.T) { + t.Parallel() // Use Nop logger to avoid panics from async goroutines logging after test completion. logger := zerolog.Nop() @@ -478,6 +480,7 @@ func TestClient_AbruptDisconnectMultipleChannelCleanup(t *testing.T) { // ensures the relay server can resume the instance session rather than // creating a new one. func TestClient_AbruptDisconnectPreservesSessionToken(t *testing.T) { + t.Parallel() // Use Nop logger to avoid panics from async goroutines logging after test completion. logger := zerolog.Nop() diff --git a/internal/relay/client_license_lifecycle_test.go b/internal/relay/client_license_lifecycle_test.go index 70ef7eed0d..2dca2eef5d 100644 --- a/internal/relay/client_license_lifecycle_test.go +++ b/internal/relay/client_license_lifecycle_test.go @@ -18,6 +18,7 @@ import ( // when the licensing subsystem refreshes the grant JWT, the relay client must // use the fresh token on its next registration. func TestRunLoop_LicenseTokenRefreshedOnReconnect(t *testing.T) { + t.Parallel() logger := zerolog.New(zerolog.NewTestWriter(t)) var mu sync.Mutex @@ -137,8 +138,10 @@ func TestRunLoop_LicenseTokenRefreshedOnReconnect(t *testing.T) { // This contrast proves the license error path uses the extended delay, not // just that the first attempt happened. func TestRunLoop_LicenseErrorPausesReconnect(t *testing.T) { + t.Parallel() // Subtest 1: Non-license error allows quick reconnect t.Run("non_license_error_allows_retry", func(t *testing.T) { + t.Parallel() logger := zerolog.New(zerolog.NewTestWriter(t)) var mu sync.Mutex @@ -213,6 +216,7 @@ func TestRunLoop_LicenseErrorPausesReconnect(t *testing.T) { // Subtest 2: License error blocks reconnect for maxReconnectDelay (5 min) t.Run("license_error_blocks_retry", func(t *testing.T) { + t.Parallel() logger := zerolog.New(zerolog.NewTestWriter(t)) var mu sync.Mutex @@ -284,6 +288,7 @@ func TestRunLoop_LicenseErrorPausesReconnect(t *testing.T) { } func TestRunLoop_LicenseErrorSetsReconnectInStatus(t *testing.T) { + t.Parallel() logger := zerolog.New(zerolog.NewTestWriter(t)) attempted := make(chan struct{}, 1) @@ -528,8 +533,10 @@ func TestRunLoop_NonLicenseErrorIsNotLicenseError(t *testing.T) { // covers the gap where existing tests send the error immediately after // REGISTER_ACK without any channel activity first. func TestRunLoop_MidSessionLicenseErrorAfterChannelOpen(t *testing.T) { + t.Parallel() for _, code := range []string{ErrCodeLicenseExpired, ErrCodeLicenseInvalid} { t.Run(code, func(t *testing.T) { + t.Parallel() logger := zerolog.New(zerolog.NewTestWriter(t)) var mu sync.Mutex diff --git a/internal/relay/client_session_resume_test.go b/internal/relay/client_session_resume_test.go index e926feb239..b616f4edb2 100644 --- a/internal/relay/client_session_resume_test.go +++ b/internal/relay/client_session_resume_test.go @@ -102,6 +102,7 @@ func TestClientRegister_SessionResumeRejectionClearsCachedSession(t *testing.T) } func TestRunLoop_SessionResumeRejectionFallsBackToFreshRegister(t *testing.T) { + t.Parallel() logger := zerolog.New(zerolog.NewTestWriter(t)) type registerAttempt struct { diff --git a/internal/relay/client_test.go b/internal/relay/client_test.go index 86107bd9a2..1a6458601f 100644 --- a/internal/relay/client_test.go +++ b/internal/relay/client_test.go @@ -649,6 +649,7 @@ func TestClient_DrainTriggersReconnect(t *testing.T) { } func TestClient_SessionTokenReuse(t *testing.T) { + t.Parallel() logger := zerolog.New(zerolog.NewTestWriter(t)) type regCapture struct { diff --git a/internal/unifiedresources/canonical_id_succession_test.go b/internal/unifiedresources/canonical_id_succession_test.go index 6d94122864..932510210f 100644 --- a/internal/unifiedresources/canonical_id_succession_test.go +++ b/internal/unifiedresources/canonical_id_succession_test.go @@ -932,8 +932,10 @@ func TestRetiredCanonicalIDReadsWhatTheEndOfItsChainHolds(t *testing.T) { // read of either ID that answers "not locked" has walked the chain across a // move instead of reading one state. func TestRetiredCanonicalIDReadSeesOneStateWhileTheLockMoves(t *testing.T) { + t.Parallel() for storeName, newStore := range retiredIDTestStores() { t.Run(storeName, func(t *testing.T) { + t.Parallel() store := newStore(t) if err := store.(canonicalIDSuccessor).ApplyCanonicalIDSuccessions([]CanonicalIDSuccession{ {OldCanonicalID: "move-a", NewCanonicalID: "move-b"}, diff --git a/internal/unifiedresources/code_standards_test.go b/internal/unifiedresources/code_standards_test.go index 39e8a5bf95..886d511d58 100644 --- a/internal/unifiedresources/code_standards_test.go +++ b/internal/unifiedresources/code_standards_test.go @@ -116,6 +116,7 @@ func TestProviderNeutralVirtualMachineJSONContract(t *testing.T) { } func TestActionTruthTypesStayUnifiedResourceOwned(t *testing.T) { + t.Parallel() repoRoot := filepath.Join("..", "..") roots := []string{"internal/api", "internal/ai", "internal/agentexec", "internal/hostagent", "internal/dockeragent", "internal/relay", "internal/workflow", "internal/workflows"} forbidden := []*regexp.Regexp{ @@ -145,6 +146,7 @@ func TestActionTruthTypesStayUnifiedResourceOwned(t *testing.T) { } func TestOperationReceiptProtocolRemainsInternalToIngestAndRuntime(t *testing.T) { + t.Parallel() repoRoot := filepath.Join("..", "..") for _, path := range []string{ "internal/models/models_frontend.go", @@ -248,6 +250,7 @@ func TestProductionActionLifecycleDoesNotUseRecordActionAuditAsUpsert(t *testing } func TestActionPolicyDecisionProvenanceHasOneOwnerAndNoPublicAuthorityField(t *testing.T) { + t.Parallel() declaration := regexp.MustCompile(`(?m)^type\s+ActionPolicyDecisionProvenance\b`) found := []string{} for _, root := range []string{"..", "../../pkg"} { @@ -286,6 +289,7 @@ func TestActionPolicyDecisionProvenanceHasOneOwnerAndNoPublicAuthorityField(t *t } func TestCanonicalActionPlanConstructionCannotBypassPolicyProvenancePlanner(t *testing.T) { + t.Parallel() allowed := map[string]bool{ "../actionplanner/planner.go": true, // Boundary-only compatibility conversions and retired command-shaped @@ -1395,6 +1399,7 @@ func TestHostAPTTelemetryTruthStaysUnifiedResourceOwned(t *testing.T) { // TestNoLegacyMigrationHintsInRuntimeCode prevents reintroducing runtime // messages that point removed aliases at the wrong token guidance. func TestNoLegacyMigrationHintsInRuntimeCode(t *testing.T) { + t.Parallel() bannedPhrases := []string{ `no longer supported; use "agent"`, `no longer supported; use "agent:*"`, diff --git a/internal/unifiedresources/retention_test.go b/internal/unifiedresources/retention_test.go index b6650ed811..e1e1e618d6 100644 --- a/internal/unifiedresources/retention_test.go +++ b/internal/unifiedresources/retention_test.go @@ -7,6 +7,7 @@ import ( ) func TestPruneOldRecords_DeletesOldResourceChanges(t *testing.T) { + t.Parallel() store := newTestStore(t) now := time.Now().UTC() @@ -48,6 +49,7 @@ func TestPruneOldRecords_DeletesOldResourceChanges(t *testing.T) { } func TestPruneOldRecords_DeletesOldActionAudits(t *testing.T) { + t.Parallel() store := newTestStore(t) now := time.Now().UTC() @@ -78,6 +80,7 @@ func TestPruneOldRecords_DeletesOldActionAudits(t *testing.T) { } func TestPruneOldRecords_DeletesOldActionLifecycleEvents(t *testing.T) { + t.Parallel() store := newTestStore(t) now := time.Now().UTC() @@ -108,6 +111,7 @@ func TestPruneOldRecords_DeletesOldActionLifecycleEvents(t *testing.T) { } func TestPruneOldRecords_DeletesOldExportAudits(t *testing.T) { + t.Parallel() store := newTestStore(t) now := time.Now().UTC() @@ -138,6 +142,7 @@ func TestPruneOldRecords_DeletesOldExportAudits(t *testing.T) { } func TestPruneOldRecords_DeletesOldLoopReports(t *testing.T) { + t.Parallel() store := newTestStore(t) now := time.Now().UTC() @@ -168,6 +173,7 @@ func TestPruneOldRecords_DeletesOldLoopReports(t *testing.T) { } func TestMigrateAutoVacuum_SetsIncrementalMode(t *testing.T) { + t.Parallel() store := newTestStore(t) var mode int @@ -181,6 +187,7 @@ func TestMigrateAutoVacuum_SetsIncrementalMode(t *testing.T) { } func TestReclaimFreePages_ReducesFreelistAfterPrune(t *testing.T) { + t.Parallel() store := newTestStore(t) now := time.Now().UTC() @@ -220,6 +227,7 @@ func TestReclaimFreePages_ReducesFreelistAfterPrune(t *testing.T) { } func TestRetentionLoop_RunsInitialPrune(t *testing.T) { + t.Parallel() store := newTestStore(t) now := time.Now().UTC() @@ -261,6 +269,7 @@ func TestRetentionLoop_RunsInitialPrune(t *testing.T) { } func TestPruneOldRecords_NoErrorOnEmptyTables(t *testing.T) { + t.Parallel() store := newTestStore(t) store.pruneOldRecords() From 27193e5d78ca5e4306688837ea973458419279fc Mon Sep 17 00:00:00 2001 From: "pulse-triage[bot]" <249995291+pulse-triage[bot]@users.noreply.github.com> Date: Sat, 28 Nov 2026 10:56:09 +0000 Subject: [PATCH 2/2] Initialize auth stores in shard-order-sensitive internal/api tests TestEstablishSAMLSession panicked when refreshed internal/api shard weights placed it in api-3 before any test initialized the package-level session and CSRF stores (run 46133585552, job 140948795581). Initialize and restore the test auth stores via useSAMLTestAuthStores(t) in TestEstablishSAMLSession and newHostedAuthzTestRouter so both suites remain self-contained regardless of shard cut boundaries. Contract-Neutral: Test-only initialization fix for existing internal/api unit tests; no production behavior or subsystem contract changes. Change-source: pulse-maintainer --- internal/api/billing_state_authz_test.go | 2 ++ internal/api/saml_handlers_additional_test.go | 2 ++ 2 files changed, 4 insertions(+) diff --git a/internal/api/billing_state_authz_test.go b/internal/api/billing_state_authz_test.go index bbb28e194a..6d90fc12cc 100644 --- a/internal/api/billing_state_authz_test.go +++ b/internal/api/billing_state_authz_test.go @@ -14,6 +14,8 @@ import ( ) func newHostedAuthzTestRouter(t *testing.T) *Router { + t.Helper() + useSAMLTestAuthStores(t) baseDir := t.TempDir() hashed, err := internalauth.HashPassword("Password!1") diff --git a/internal/api/saml_handlers_additional_test.go b/internal/api/saml_handlers_additional_test.go index ceafb985bb..47e0e799c7 100644 --- a/internal/api/saml_handlers_additional_test.go +++ b/internal/api/saml_handlers_additional_test.go @@ -94,6 +94,8 @@ func TestHandleSAMLLogout_Fallback(t *testing.T) { } func TestEstablishSAMLSession(t *testing.T) { + useSAMLTestAuthStores(t) + router := &Router{} req := httptest.NewRequest(http.MethodGet, "/", nil) rec := httptest.NewRecorder()