Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:construction_worker: Shard MCP and utility tests within existing worker limits https://github.com/siyuan-note/siyuan/issues/20491

Daniel3bd68edcaaa6
diff --git a/scripts/kernel-mcp-tools-test-durations.json b/scripts/kernel-mcp-tools-test-durations.json
new file mode 100644
index 0000000000..197ef2bffd
--- /dev/null
+++ b/scripts/kernel-mcp-tools-test-durations.json
@@ -0,0 +1,450 @@
+{
+ "prefixLength": 32,
+ "defaultSeconds": 0.2,
+ "buckets": {
+ "TestAgentLogOutputLimitPreserves": {
+ "seconds": 0.001,
+ "tests": 1
+ },
+ "TestAgentLogToolReadsSearchesAnd": {
+ "seconds": 0.033,
+ "tests": 1
+ },
+ "TestAttrHandlerRequiredArguments": {
+ "seconds": 0,
+ "tests": 1
+ },
+ "TestAttrSetRejectsNonStringValue": {
+ "seconds": 0,
+ "tests": 1
+ },
+ "TestBazaarProjectCandidateInspec": {
+ "seconds": 0.317,
+ "tests": 1
+ },
+ "TestBazaarProjectLinkedCreationC": {
+ "seconds": 0.051,
+ "tests": 1
+ },
+ "TestBazaarProjectManagedArchiveC": {
+ "seconds": 0.065,
+ "tests": 1
+ },
+ "TestBazaarProjectOfflineGuardsAn": {
+ "seconds": 0.043,
+ "tests": 1
+ },
+ "TestBazaarProjectSelectedInspect": {
+ "seconds": 0.443,
+ "tests": 1
+ },
+ "TestBazaarProjectUnknownErrorsRe": {
+ "seconds": 0,
+ "tests": 1
+ },
+ "TestBazaarProjectUsesExistingSna": {
+ "seconds": 0.04,
+ "tests": 1
+ },
+ "TestBazaarToolCompactPagination": {
+ "seconds": 0.005,
+ "tests": 1
+ },
+ "TestBazaarToolGuards": {
+ "seconds": 0.037,
+ "tests": 1
+ },
+ "TestBazaarToolInstalledEnabledFi": {
+ "seconds": 0.122,
+ "tests": 1
+ },
+ "TestBazaarToolListAndInstallChec": {
+ "seconds": 0.002,
+ "tests": 1
+ },
+ "TestBazaarToolLocalPluginLifecyc": {
+ "seconds": 0.389,
+ "tests": 1
+ },
+ "TestBazaarToolUpdateAllTargetsAn": {
+ "seconds": 0.003,
+ "tests": 1
+ },
+ "TestBazaarToolUpdatesCompactPagi": {
+ "seconds": 0.002,
+ "tests": 1
+ },
+ "TestBlockToolCreatesNativeContai": {
+ "seconds": 0.001,
+ "tests": 1
+ },
+ "TestBlockToolDocumentsNativeCont": {
+ "seconds": 0,
+ "tests": 1
+ },
+ "TestBlockToolDocumentsPlacement": {
+ "seconds": 0.001,
+ "tests": 1
+ },
+ "TestBlockToolDocumentsSuperBlock": {
+ "seconds": 0,
+ "tests": 1
+ },
+ "TestBlockToolPreservesNativeDOMI": {
+ "seconds": 0,
+ "tests": 1
+ },
+ "TestBlockWriteSuccess": {
+ "seconds": 0,
+ "tests": 1
+ },
+ "TestBlockWriteSuccessRejectsEmpt": {
+ "seconds": 0,
+ "tests": 1
+ },
+ "TestBuildCapabilityIDKeepsSegmen": {
+ "seconds": 0,
+ "tests": 1
+ },
+ "TestBuiltinSkillRejectsForgedCon": {
+ "seconds": 0.049,
+ "tests": 1
+ },
+ "TestBuiltinSkillTrustedActivatio": {
+ "seconds": 0,
+ "tests": 1
+ },
+ "TestCallToolResultPreservesExpli": {
+ "seconds": 0,
+ "tests": 1
+ },
+ "TestCapabilityActionsForTool": {
+ "seconds": 0,
+ "tests": 1
+ },
+ "TestCapabilityIDForToolFallback": {
+ "seconds": 0,
+ "tests": 1
+ },
+ "TestCapabilityManifestIncludesAg": {
+ "seconds": 0.001,
+ "tests": 1
+ },
+ "TestCompileToolValidatorRejectsE": {
+ "seconds": 0,
+ "tests": 1
+ },
+ "TestCompileToolValidatorRejectsI": {
+ "seconds": 0,
+ "tests": 1
+ },
+ "TestContentToolsShareMarkdownSyn": {
+ "seconds": 0,
+ "tests": 1
+ },
+ "TestDatabaseActionEffects": {
+ "seconds": 0,
+ "tests": 1
+ },
+ "TestDatabaseKeySetTemplateArgume": {
+ "seconds": 0.002,
+ "tests": 1
+ },
+ "TestDatabaseKeyTemplatePersisten": {
+ "seconds": 0.011,
+ "tests": 1
+ },
+ "TestDatabaseKeyUpdateOptionsMain": {
+ "seconds": 0.027,
+ "tests": 1
+ },
+ "TestDatabaseKeyUpdateRejectsInva": {
+ "seconds": 0.014,
+ "tests": 1
+ },
+ "TestDatabaseKeyUpdateRelationAnd": {
+ "seconds": 0.11,
+ "tests": 1
+ },
+ "TestDatabaseKeyUpdateScalarSetti": {
+ "seconds": 0.166,
+ "tests": 1
+ },
+ "TestDatabaseNativeStructuredArgu": {
+ "seconds": 0.004,
+ "tests": 1
+ },
+ "TestDatabasePreviousKeyIDDefault": {
+ "seconds": 0,
+ "tests": 1
+ },
+ "TestDatabaseStringArray": {
+ "seconds": 0,
+ "tests": 1
+ },
+ "TestDatabaseStructuredRenderOutp": {
+ "seconds": 0.003,
+ "tests": 1
+ },
+ "TestDatabaseToolsRejectIncomplet": {
+ "seconds": 0.017,
+ "tests": 1
+ },
+ "TestDatabaseViewActionsAndArgume": {
+ "seconds": 0.002,
+ "tests": 1
+ },
+ "TestDatabaseViewConfigurationVal": {
+ "seconds": 0,
+ "tests": 1
+ },
+ "TestDatabaseViewFieldIDsSupports": {
+ "seconds": 0,
+ "tests": 1
+ },
+ "TestDatabaseViewPartialUpdateArg": {
+ "seconds": 0,
+ "tests": 1
+ },
+ "TestDecisionBatchProviderSnapsho": {
+ "seconds": 0.008,
+ "tests": 1
+ },
+ "TestDecisionBlockSources": {
+ "seconds": 0.046,
+ "tests": 1
+ },
+ "TestDecisionOpenAIRefusalStopsBa": {
+ "seconds": 0.002,
+ "tests": 1
+ },
+ "TestDecisionRejectsInvalidBatchB": {
+ "seconds": 0.001,
+ "tests": 1
+ },
+ "TestDecisionSequentialPartialRes": {
+ "seconds": 0.005,
+ "tests": 1
+ },
+ "TestDocumentSearchDisplayFields": {
+ "seconds": 0,
+ "tests": 1
+ },
+ "TestDocumentedMarkdownExamplesCr": {
+ "seconds": 0.001,
+ "tests": 1
+ },
+ "TestDocumentedSQLQueryEmbedCreat": {
+ "seconds": 0,
+ "tests": 1
+ },
+ "TestFileManagedDeliveryReadableB": {
+ "seconds": 0.763,
+ "tests": 1
+ },
+ "TestFileManagedPrivateContextAnd": {
+ "seconds": 0.276,
+ "tests": 1
+ },
+ "TestFileManagedRevokedGrantAndRa": {
+ "seconds": 0.269,
+ "tests": 1
+ },
+ "TestFileMetadataBoundedEscapedUT": {
+ "seconds": 0.314,
+ "tests": 1
+ },
+ "TestFileMetadataLongLineEmptyAnd": {
+ "seconds": 0.5,
+ "tests": 1
+ },
+ "TestFileMetadataRejectsInvalidPa": {
+ "seconds": 0.372,
+ "tests": 1
+ },
+ "TestFileQueryLimits": {
+ "seconds": 62.095,
+ "tests": 1
+ },
+ "TestFileSafeErrorPreservesUnknow": {
+ "seconds": 0.001,
+ "tests": 1
+ },
+ "TestFileSafeMutationSchemaAndCom": {
+ "seconds": 0.751,
+ "tests": 1
+ },
+ "TestFormatSQLRowsKeepsValuesAlig": {
+ "seconds": 0,
+ "tests": 1
+ },
+ "TestFormatSQLRowsReportsPossible": {
+ "seconds": 0,
+ "tests": 1
+ },
+ "TestFormatTagTextMark": {
+ "seconds": 0,
+ "tests": 1
+ },
+ "TestGetAllToolsSorted": {
+ "seconds": 0,
+ "tests": 1
+ },
+ "TestGrepUnlimitedContextAndAutho": {
+ "seconds": 0.28,
+ "tests": 1
+ },
+ "TestHTMLAssetIFrameBlockDOM": {
+ "seconds": 0.001,
+ "tests": 1
+ },
+ "TestInboxConvertRejectsEncrypted": {
+ "seconds": 0.003,
+ "tests": 1
+ },
+ "TestMarkdownToBlockDOMCreatesHor": {
+ "seconds": 0,
+ "tests": 1
+ },
+ "TestNewAssetUploadToolResultPres": {
+ "seconds": 0,
+ "tests": 1
+ },
+ "TestNormalizeHTMLAssetName": {
+ "seconds": 0.002,
+ "tests": 1
+ },
+ "TestObserveRegistry": {
+ "seconds": 0,
+ "tests": 1
+ },
+ "TestParseAttrValues": {
+ "seconds": 0,
+ "tests": 1
+ },
+ "TestRepoCheckoutFailure": {
+ "seconds": 0.001,
+ "tests": 1
+ },
+ "TestRunImageOperationAllowsRetry": {
+ "seconds": 0.034,
+ "tests": 1
+ },
+ "TestRunImageOperationBlocksUnkno": {
+ "seconds": 0.015,
+ "tests": 1
+ },
+ "TestRunImageOperationDoesNotRetr": {
+ "seconds": 0.018,
+ "tests": 1
+ },
+ "TestRunImageOperationReusesSucce": {
+ "seconds": 0.031,
+ "tests": 1
+ },
+ "TestSQLQueryEmbedDOMPreservesMul": {
+ "seconds": 0,
+ "tests": 1
+ },
+ "TestSQLResultPreservesRawValuesA": {
+ "seconds": 0,
+ "tests": 1
+ },
+ "TestSQLSchemaActionAndEmptyStruc": {
+ "seconds": 0.001,
+ "tests": 1
+ },
+ "TestSearchSQLQueries": {
+ "seconds": 0.332,
+ "tests": 1
+ },
+ "TestSecurityReproMCPReadsPublish": {
+ "seconds": 0.092,
+ "tests": 1
+ },
+ "TestSecurityReproRecursiveFileOp": {
+ "seconds": 1.78,
+ "tests": 1
+ },
+ "TestSecurityReproUnzipRejectsSen": {
+ "seconds": 0.739,
+ "tests": 1
+ },
+ "TestSetToolKeepsExistingToolWhen": {
+ "seconds": 0,
+ "tests": 2
+ },
+ "TestSkillContentOmitsLocationFor": {
+ "seconds": 0.008,
+ "tests": 1
+ },
+ "TestSkillLoadResolvesVariablesOn": {
+ "seconds": 0.069,
+ "tests": 1
+ },
+ "TestSnippetContentSearchAndParti": {
+ "seconds": 0.033,
+ "tests": 1
+ },
+ "TestSnippetToolPaginationAndPrev": {
+ "seconds": 0.035,
+ "tests": 1
+ },
+ "TestSnippetToolRoundTripAndReadO": {
+ "seconds": 0.066,
+ "tests": 1
+ },
+ "TestSnippetToolSchemaAndEffects": {
+ "seconds": 0.001,
+ "tests": 1
+ },
+ "TestTemplateActionsAcceptDotPref": {
+ "seconds": 0.006,
+ "tests": 1
+ },
+ "TestTemplatePathGetSymlink": {
+ "seconds": 0.005,
+ "tests": 1
+ },
+ "TestTodoWriteRejectsInvalidSessi": {
+ "seconds": 0,
+ "tests": 1
+ },
+ "TestTodoWriteReturnsSessionResul": {
+ "seconds": 0.005,
+ "tests": 1
+ },
+ "TestToolEffectsForFallsBackToCap": {
+ "seconds": 0,
+ "tests": 1
+ },
+ "TestToolSchemaPreservesUnknownKe": {
+ "seconds": 0,
+ "tests": 1
+ },
+ "TestToolValidatorAcceptsExplicit": {
+ "seconds": 0,
+ "tests": 1
+ },
+ "TestToolValidatorRejectsExcessiv": {
+ "seconds": 0.001,
+ "tests": 1
+ },
+ "TestToolValidatorTimeoutIsIsolat": {
+ "seconds": 0.01,
+ "tests": 1
+ },
+ "TestToolValidatorValidatesInputA": {
+ "seconds": 0.001,
+ "tests": 1
+ },
+ "TestTruncateText": {
+ "seconds": 0,
+ "tests": 1
+ },
+ "TestValidateAssetUploadPaths": {
+ "seconds": 0.045,
+ "tests": 1
+ }
+ }
+}
diff --git a/scripts/kernel-util-test-durations.json b/scripts/kernel-util-test-durations.json
new file mode 100644
index 0000000000..75edadc9dc
--- /dev/null
+++ b/scripts/kernel-util-test-durations.json
@@ -0,0 +1,1390 @@
+{
+ "prefixLength": 32,
+ "defaultSeconds": 0.2,
+ "buckets": {
+ "TestAESGCMEnvelopeHeaderTamperin": {
+ "seconds": 0,
+ "tests": 1
+ },
+ "TestAESGCMHeaderlessCiphertextRe": {
+ "seconds": 0,
+ "tests": 1
+ },
+ "TestAESGCMHeaderlessCiphertextWi": {
+ "seconds": 0.001,
+ "tests": 1
+ },
+ "TestAESGCMInvalidKeyLength": {
+ "seconds": 0,
+ "tests": 1
+ },
+ "TestAESGCMRoundTrip": {
+ "seconds": 0,
+ "tests": 1
+ },
+ "TestAESGCMSamePlaintextDifferent": {
+ "seconds": 0,
+ "tests": 1
+ },
+ "TestAESGCMTamperedCiphertext": {
+ "seconds": 0,
+ "tests": 1
+ },
+ "TestAESGCMWrongKey": {
+ "seconds": 0,
+ "tests": 1
+ },
+ "TestAIProviderHeadersRedirectAnd": {
+ "seconds": 0.002,
+ "tests": 1
+ },
+ "TestAIProviderHeadersRequests": {
+ "seconds": 0.005,
+ "tests": 1
+ },
+ "TestAIProviderHeadersStreamingAn": {
+ "seconds": 0.004,
+ "tests": 1
+ },
+ "TestAddFontMergesAliases": {
+ "seconds": 0,
+ "tests": 1
+ },
+ "TestAddFontPrefersUprightStyle": {
+ "seconds": 0,
+ "tests": 1
+ },
+ "TestAgentInstructionsConcurrentS": {
+ "seconds": 0.03,
+ "tests": 1
+ },
+ "TestAgentInstructionsPreservesIn": {
+ "seconds": 0.008,
+ "tests": 1
+ },
+ "TestAgentInstructionsRejectsLink": {
+ "seconds": 0.005,
+ "tests": 1
+ },
+ "TestAgentInstructionsStorage": {
+ "seconds": 0.058,
+ "tests": 1
+ },
+ "TestAnthropicCancellationAndCred": {
+ "seconds": 0.102,
+ "tests": 1
+ },
+ "TestAnthropicContextWindowTrunca": {
+ "seconds": 0.007,
+ "tests": 1
+ },
+ "TestAnthropicEndpointPrefixes": {
+ "seconds": 0,
+ "tests": 1
+ },
+ "TestAnthropicIncompleteStreams": {
+ "seconds": 0.01,
+ "tests": 1
+ },
+ "TestAnthropicMessagesImagesAndTh": {
+ "seconds": 0.001,
+ "tests": 1
+ },
+ "TestAnthropicModelsPagination": {
+ "seconds": 0.002,
+ "tests": 1
+ },
+ "TestAnthropicNativeVersionAndPro": {
+ "seconds": 0.002,
+ "tests": 1
+ },
+ "TestAnthropicNonStreamingAndErro": {
+ "seconds": 0.005,
+ "tests": 1
+ },
+ "TestAnthropicProviderAuthenticat": {
+ "seconds": 0,
+ "tests": 1
+ },
+ "TestAnthropicProviderModelsEndpo": {
+ "seconds": 0.001,
+ "tests": 1
+ },
+ "TestAnthropicRestoredToolArgumen": {
+ "seconds": 0.001,
+ "tests": 1
+ },
+ "TestAnthropicStreamAndNativeHist": {
+ "seconds": 0.002,
+ "tests": 1
+ },
+ "TestAppearanceIgnoreMigration": {
+ "seconds": 0.066,
+ "tests": 1
+ },
+ "TestAppearancePackagePaths": {
+ "seconds": 0.002,
+ "tests": 1
+ },
+ "TestArgon2KDFConsistency": {
+ "seconds": 0.329,
+ "tests": 1
+ },
+ "TestArgon2KDFDifferentPasswords": {
+ "seconds": 0.319,
+ "tests": 1
+ },
+ "TestArgon2KDFMissingKeyLengthRej": {
+ "seconds": 0,
+ "tests": 1
+ },
+ "TestAssetRelinkBatchOCR": {
+ "seconds": 0.035,
+ "tests": 1
+ },
+ "TestAssetRelinkCompareWrite": {
+ "seconds": 0.029,
+ "tests": 1
+ },
+ "TestAssetRelinkOCRPreservesConfl": {
+ "seconds": 0.044,
+ "tests": 1
+ },
+ "TestAuthCodeEquals": {
+ "seconds": 0,
+ "tests": 1
+ },
+ "TestAuthThrottleBackoff": {
+ "seconds": 0.001,
+ "tests": 1
+ },
+ "TestAuthThrottleExpiry": {
+ "seconds": 0,
+ "tests": 1
+ },
+ "TestAuthThrottleMaxEntries": {
+ "seconds": 0.005,
+ "tests": 1
+ },
+ "TestAuthThrottleReset": {
+ "seconds": 0,
+ "tests": 1
+ },
+ "TestAuthThrottleSaturation": {
+ "seconds": 0,
+ "tests": 1
+ },
+ "TestAuthThrottleSweep": {
+ "seconds": 0,
+ "tests": 1
+ },
+ "TestAuthThrottleSweepKeepsLocked": {
+ "seconds": 0,
+ "tests": 1
+ },
+ "TestAuthThrottleThreshold": {
+ "seconds": 0,
+ "tests": 1
+ },
+ "TestAuthThrottleWindowReset": {
+ "seconds": 0,
+ "tests": 1
+ },
+ "TestBootHomeDir": {
+ "seconds": 0.231,
+ "tests": 1
+ },
+ "TestBootHomeDirProcess": {
+ "seconds": 0,
+ "tests": 1
+ },
+ "TestBootWorkingDir": {
+ "seconds": 0.916,
+ "tests": 1
+ },
+ "TestBroadcastSerializesOnceAndPr": {
+ "seconds": 0.027,
+ "tests": 1
+ },
+ "TestBuiltinSkillDisabledAndExact": {
+ "seconds": 0.002,
+ "tests": 1
+ },
+ "TestBuiltinSkillDoesNotShadowOrd": {
+ "seconds": 0.023,
+ "tests": 1
+ },
+ "TestBuiltinSkillEnglishMarkdownK": {
+ "seconds": 0.001,
+ "tests": 1
+ },
+ "TestBuiltinSkillMetadataAndResou": {
+ "seconds": 0.004,
+ "tests": 1
+ },
+ "TestBuiltinSkillTextBounds": {
+ "seconds": 0,
+ "tests": 1
+ },
+ "TestChatGPTCompletionUsesStreamA": {
+ "seconds": 0.006,
+ "tests": 1
+ },
+ "TestChatGPTCompletionWithStreame": {
+ "seconds": 0.006,
+ "tests": 1
+ },
+ "TestChatGPTRequestCapabilitiesAn": {
+ "seconds": 0.001,
+ "tests": 1
+ },
+ "TestChatGPTStreamedOutputPreserv": {
+ "seconds": 0.002,
+ "tests": 1
+ },
+ "TestChatGPTTransportRejectsNonPu": {
+ "seconds": 0,
+ "tests": 1
+ },
+ "TestChatMessagesToOpenAIResponse": {
+ "seconds": 0,
+ "tests": 1
+ },
+ "TestCheckHostSSRF": {
+ "seconds": 0.001,
+ "tests": 1
+ },
+ "TestCleanupLegacyFont": {
+ "seconds": 0.118,
+ "tests": 1
+ },
+ "TestCleanupLegacyFontsPreservesL": {
+ "seconds": 0.048,
+ "tests": 1
+ },
+ "TestCmuxDerivedListenerCloseClos": {
+ "seconds": 0.001,
+ "tests": 1
+ },
+ "TestConfigureGeminiThoughtSummar": {
+ "seconds": 0.001,
+ "tests": 1
+ },
+ "TestContextPushMsgIgnoresInvalid": {
+ "seconds": 0,
+ "tests": 1
+ },
+ "TestCustomFontLifecycle": {
+ "seconds": 0.215,
+ "tests": 1
+ },
+ "TestDecisionCancellationLimitsAn": {
+ "seconds": 0.056,
+ "tests": 1
+ },
+ "TestDecisionOpenAIProtocol": {
+ "seconds": 0.002,
+ "tests": 1
+ },
+ "TestDecisionOpenAIRefusalAndUnkn": {
+ "seconds": 0.001,
+ "tests": 1
+ },
+ "TestDecisionOpenAIRejectsInvalid": {
+ "seconds": 0.027,
+ "tests": 1
+ },
+ "TestDecisionProtocol": {
+ "seconds": 0.001,
+ "tests": 1
+ },
+ "TestDecisionQuestionLimits": {
+ "seconds": 0,
+ "tests": 1
+ },
+ "TestDecisionRejectsInvalidAnswer": {
+ "seconds": 0.013,
+ "tests": 1
+ },
+ "TestDefaultWorkspacePath": {
+ "seconds": 0.001,
+ "tests": 1
+ },
+ "TestDeviceNamespaceAliasRejected": {
+ "seconds": 0.028,
+ "tests": 1
+ },
+ "TestDiscoverSkillsUsesEnabledUse": {
+ "seconds": 0.019,
+ "tests": 1
+ },
+ "TestDiscoverUserSkillsFollowsDir": {
+ "seconds": 0.008,
+ "tests": 1
+ },
+ "TestDiscoverUserSkillsReportsSta": {
+ "seconds": 0.013,
+ "tests": 1
+ },
+ "TestEmbeddingConnectionRetry": {
+ "seconds": 0.408,
+ "tests": 1
+ },
+ "TestEmbeddingRetrySharesDeadline": {
+ "seconds": 1.001,
+ "tests": 1
+ },
+ "TestExistingEmojiFileNameCompati": {
+ "seconds": 0,
+ "tests": 1
+ },
+ "TestExtraBodyForModel": {
+ "seconds": 0.001,
+ "tests": 1
+ },
+ "TestExtraBodyTransport_ChatPostM": {
+ "seconds": 0.001,
+ "tests": 1
+ },
+ "TestExtraBodyTransport_EmptyExtr": {
+ "seconds": 0.001,
+ "tests": 1
+ },
+ "TestExtraBodyTransport_InvalidJS": {
+ "seconds": 0.001,
+ "tests": 1
+ },
+ "TestExtraBodyTransport_NonChatPa": {
+ "seconds": 0.001,
+ "tests": 1
+ },
+ "TestFileSysStatusCheckData": {
+ "seconds": 0.018,
+ "tests": 1
+ },
+ "TestFileSysStatusCheckMissingFil": {
+ "seconds": 5.35,
+ "tests": 2
+ },
+ "TestFileSysStatusCheckOtherError": {
+ "seconds": 0,
+ "tests": 1
+ },
+ "TestFileSysStatusCheckProtection": {
+ "seconds": 0.007,
+ "tests": 1
+ },
+ "TestFilterFileNamePortableUnicod": {
+ "seconds": 0,
+ "tests": 1
+ },
+ "TestFilterIconValuePreservesSupp": {
+ "seconds": 0.001,
+ "tests": 1
+ },
+ "TestFilterIconValueRejectsUnsupp": {
+ "seconds": 0,
+ "tests": 1
+ },
+ "TestFilterIconValueSanitizesCust": {
+ "seconds": 0,
+ "tests": 1
+ },
+ "TestFilterRecentIconValueRemoves": {
+ "seconds": 0,
+ "tests": 1
+ },
+ "TestFilterRecentIconValuesCanoni": {
+ "seconds": 0,
+ "tests": 1
+ },
+ "TestFilterRecentIconValuesReturn": {
+ "seconds": 0,
+ "tests": 1
+ },
+ "TestFilterSelfChildDocsPreserves": {
+ "seconds": 0,
+ "tests": 1
+ },
+ "TestFilterSelfChildDocsRemovesCh": {
+ "seconds": 0,
+ "tests": 1
+ },
+ "TestFindSkillDirsCollectionNoWra": {
+ "seconds": 0.005,
+ "tests": 1
+ },
+ "TestFindSkillDirsDoesNotDescendI": {
+ "seconds": 0.007,
+ "tests": 1
+ },
+ "TestFindSkillDirsNoneFound": {
+ "seconds": 0.004,
+ "tests": 1
+ },
+ "TestFindSkillDirsRootSkill": {
+ "seconds": 0.003,
+ "tests": 1
+ },
+ "TestFindSkillDirsSkipsVCSDirs": {
+ "seconds": 0.007,
+ "tests": 1
+ },
+ "TestFindSkillDirsWrappedCollecti": {
+ "seconds": 0.007,
+ "tests": 1
+ },
+ "TestFindSkillDirsWrappedSingle": {
+ "seconds": 0.004,
+ "tests": 1
+ },
+ "TestFirstLine": {
+ "seconds": 0,
+ "tests": 1
+ },
+ "TestFirstLineTruncation": {
+ "seconds": 0,
+ "tests": 1
+ },
+ "TestGeminiThinkingLevel": {
+ "seconds": 0,
+ "tests": 1
+ },
+ "TestGeminiThoughtSignatureTransp": {
+ "seconds": 0.002,
+ "tests": 2
+ },
+ "TestGeminiThoughtSummariesAreOpt": {
+ "seconds": 0.001,
+ "tests": 1
+ },
+ "TestGenerateSaltUnique": {
+ "seconds": 0,
+ "tests": 1
+ },
+ "TestGeneratedImageDownloadSSRFGu": {
+ "seconds": 0,
+ "tests": 1
+ },
+ "TestGetTreeID": {
+ "seconds": 0.001,
+ "tests": 1
+ },
+ "TestHasUnclosedHTMLVoidElements": {
+ "seconds": 0.001,
+ "tests": 1
+ },
+ "TestHumanizeRelTimeMinuteMagnitu": {
+ "seconds": 0,
+ "tests": 1
+ },
+ "TestInferFontWeight": {
+ "seconds": 0,
+ "tests": 1
+ },
+ "TestInitPandocDoesNotUseWorkspac": {
+ "seconds": 0.013,
+ "tests": 1
+ },
+ "TestInitPandocExtractsDevelopmen": {
+ "seconds": 0.01,
+ "tests": 1
+ },
+ "TestInstallCustomFontRejectsInva": {
+ "seconds": 0.005,
+ "tests": 1
+ },
+ "TestIsCrossSiteFetchSite": {
+ "seconds": 0,
+ "tests": 1
+ },
+ "TestIsEmptyDirIgnoresDSStore": {
+ "seconds": 0.004,
+ "tests": 1
+ },
+ "TestIsForbiddenAbsPath": {
+ "seconds": 0.665,
+ "tests": 1
+ },
+ "TestIsForbiddenAbsPathCaseInsens": {
+ "seconds": 0.358,
+ "tests": 1
+ },
+ "TestIsForbiddenAbsPathSymlinkByp": {
+ "seconds": 0.007,
+ "tests": 1
+ },
+ "TestIsForbiddenDataRelPath": {
+ "seconds": 0,
+ "tests": 1
+ },
+ "TestIsForbiddenDataRelPathCaseIn": {
+ "seconds": 0,
+ "tests": 1
+ },
+ "TestIsGoogleGeminiOpenAICompatib": {
+ "seconds": 0,
+ "tests": 1
+ },
+ "TestIsMobileWorkspaceBaseDir": {
+ "seconds": 0.002,
+ "tests": 1
+ },
+ "TestIsPossiblyImageWithQueryAndF": {
+ "seconds": 0,
+ "tests": 1
+ },
+ "TestIsPrivateIP": {
+ "seconds": 0.001,
+ "tests": 1
+ },
+ "TestIsPublishSession": {
+ "seconds": 0,
+ "tests": 1
+ },
+ "TestIsSameOrSubPath": {
+ "seconds": 0.002,
+ "tests": 1
+ },
+ "TestIsSecureRequest": {
+ "seconds": 0,
+ "tests": 1
+ },
+ "TestIsSensitivePathCredentialDot": {
+ "seconds": 0.046,
+ "tests": 1
+ },
+ "TestIsSensitivePathDosDeviceAlia": {
+ "seconds": 0.007,
+ "tests": 1
+ },
+ "TestIsSensitivePathHTMLAssets": {
+ "seconds": 0.081,
+ "tests": 1
+ },
+ "TestIsSensitivePathHTMLAssetsSym": {
+ "seconds": 0.005,
+ "tests": 1
+ },
+ "TestIsSensitivePathHTMLAssetsUni": {
+ "seconds": 0,
+ "tests": 1
+ },
+ "TestIsSensitivePathHomeDirOverri": {
+ "seconds": 0.015,
+ "tests": 2
+ },
+ "TestIsSensitivePathNamespaceAlia": {
+ "seconds": 0.413,
+ "tests": 1
+ },
+ "TestIsSensitivePathPlatformHomeD": {
+ "seconds": 0.006,
+ "tests": 1
+ },
+ "TestIsSensitivePathSymlinkBypass": {
+ "seconds": 0.008,
+ "tests": 1
+ },
+ "TestIsSensitivePathSymlinkWorksp": {
+ "seconds": 0.006,
+ "tests": 1
+ },
+ "TestIsSensitivePathSystemTempExe": {
+ "seconds": 0.033,
+ "tests": 1
+ },
+ "TestIsSensitivePathWithHomeDirOv": {
+ "seconds": 0.003,
+ "tests": 1
+ },
+ "TestIsSensitivePathWorkspaceAsse": {
+ "seconds": 0.009,
+ "tests": 1
+ },
+ "TestIsSensitivePathWorkspaceFile": {
+ "seconds": 0.065,
+ "tests": 1
+ },
+ "TestIsSensitivePathWorkspacePref": {
+ "seconds": 0.001,
+ "tests": 1
+ },
+ "TestIsSessionOriginAllowed": {
+ "seconds": 0.001,
+ "tests": 1
+ },
+ "TestIsSessionOriginAllowedPWANav": {
+ "seconds": 0,
+ "tests": 1
+ },
+ "TestIsSessionOriginAllowedReques": {
+ "seconds": 0.001,
+ "tests": 1
+ },
+ "TestIsTLSRequestHonorsClientTLSH": {
+ "seconds": 0,
+ "tests": 1
+ },
+ "TestIsValidRedirectHost": {
+ "seconds": 0,
+ "tests": 1
+ },
+ "TestKeylessModelFallsBackToChatC": {
+ "seconds": 0.002,
+ "tests": 1
+ },
+ "TestLegacyFontReplacementsExist": {
+ "seconds": 0,
+ "tests": 1
+ },
+ "TestListAvailableModelsCompatibi": {
+ "seconds": 0.001,
+ "tests": 1
+ },
+ "TestListAvailableModelsWithConte": {
+ "seconds": 0.001,
+ "tests": 1
+ },
+ "TestLoadCustomFontsCleansAbandon": {
+ "seconds": 0.006,
+ "tests": 1
+ },
+ "TestLoadDirectWriteFonts": {
+ "seconds": 0.091,
+ "tests": 1
+ },
+ "TestLoadSkillCapsManifestTravers": {
+ "seconds": 2.07,
+ "tests": 1
+ },
+ "TestLoadSkillCapsResourceManifes": {
+ "seconds": 0.241,
+ "tests": 1
+ },
+ "TestLoadSkillEnforcesResolvedSki": {
+ "seconds": 0.013,
+ "tests": 1
+ },
+ "TestLoadSkillListsAndReadsBundle": {
+ "seconds": 0.029,
+ "tests": 1
+ },
+ "TestLoadSkillReadsOnlyEnabledUse": {
+ "seconds": 0.012,
+ "tests": 1
+ },
+ "TestLoadSkillRejectsUnsafeOrUnsu": {
+ "seconds": 0.024,
+ "tests": 1
+ },
+ "TestLocalizedFontNamesAndAliases": {
+ "seconds": 0,
+ "tests": 1
+ },
+ "TestLongestExistingPath": {
+ "seconds": 0.003,
+ "tests": 1
+ },
+ "TestLuteFactoriesEnableCustomBlo": {
+ "seconds": 0.001,
+ "tests": 1
+ },
+ "TestLuteTextMarkEscapedContentRo": {
+ "seconds": 0.01,
+ "tests": 1
+ },
+ "TestLuteUnicode17Callout": {
+ "seconds": 0.002,
+ "tests": 1
+ },
+ "TestMatchICloudRoot": {
+ "seconds": 0.019,
+ "tests": 1
+ },
+ "TestMatchICloudRootIgnoresNested": {
+ "seconds": 0.004,
+ "tests": 1
+ },
+ "TestMatchICloudRootRejectsBroadR": {
+ "seconds": 0.01,
+ "tests": 1
+ },
+ "TestMatchICloudRootResolvesWorks": {
+ "seconds": 0.006,
+ "tests": 1
+ },
+ "TestMatchSystemICloudRootWithHom": {
+ "seconds": 0.013,
+ "tests": 1
+ },
+ "TestMetadataNamedDirectoryIsPres": {
+ "seconds": 0.003,
+ "tests": 1
+ },
+ "TestMigrateLegacyIOSWorkspaceMov": {
+ "seconds": 0.04,
+ "tests": 1
+ },
+ "TestMigrateLegacyIOSWorkspaceRej": {
+ "seconds": 0.012,
+ "tests": 1
+ },
+ "TestMigrateLegacyIOSWorkspaceSki": {
+ "seconds": 0.009,
+ "tests": 1
+ },
+ "TestMiniMaxImageAdapterProviderH": {
+ "seconds": 0,
+ "tests": 1
+ },
+ "TestMiniMaxImageEndpoints": {
+ "seconds": 0.001,
+ "tests": 1
+ },
+ "TestMiniMaxImageFailures": {
+ "seconds": 0.007,
+ "tests": 1
+ },
+ "TestMiniMaxImageRequestAndRespon": {
+ "seconds": 0.005,
+ "tests": 1
+ },
+ "TestMmapChangedPageBudget": {
+ "seconds": 0.004,
+ "tests": 1
+ },
+ "TestModelChatSamplingAndBudgetUn": {
+ "seconds": 0.001,
+ "tests": 1
+ },
+ "TestModelFallsBackToResponses": {
+ "seconds": 0.002,
+ "tests": 1
+ },
+ "TestModelFallsBackWhenAvailableL": {
+ "seconds": 0.002,
+ "tests": 1
+ },
+ "TestModelProbesResponsesWhenAvai": {
+ "seconds": 0.002,
+ "tests": 1
+ },
+ "TestModelRejectsUnavailableSelec": {
+ "seconds": 0.002,
+ "tests": 1
+ },
+ "TestModelResponsesSamplingAndMin": {
+ "seconds": 0.002,
+ "tests": 1
+ },
+ "TestNativeEmojiCacheReplacementA": {
+ "seconds": 0.035,
+ "tests": 1
+ },
+ "TestNetworkProxyLogValueRemovesC": {
+ "seconds": 0,
+ "tests": 1
+ },
+ "TestNewNotificationsEnablesForma": {
+ "seconds": 0,
+ "tests": 1
+ },
+ "TestNormalizeReasoningFieldsPres": {
+ "seconds": 0,
+ "tests": 1
+ },
+ "TestNormalizeReasoningJSONReject": {
+ "seconds": 0,
+ "tests": 1
+ },
+ "TestNormalizeSkillURL": {
+ "seconds": 0.001,
+ "tests": 1
+ },
+ "TestNormalizeSkillURLOwnerRepoBo": {
+ "seconds": 0,
+ "tests": 1
+ },
+ "TestNormalizeSkillURLOwnerRepoVa": {
+ "seconds": 0,
+ "tests": 1
+ },
+ "TestNormalizeStatusBarDefaults": {
+ "seconds": 0,
+ "tests": 1
+ },
+ "TestNotificationAppScopeLifecycl": {
+ "seconds": 0.032,
+ "tests": 1
+ },
+ "TestNotificationConcurrentOperat": {
+ "seconds": 0.007,
+ "tests": 1
+ },
+ "TestNotificationGlobalHelpersPre": {
+ "seconds": 0.007,
+ "tests": 1
+ },
+ "TestOCRAssetKeyPreservesResource": {
+ "seconds": 0,
+ "tests": 1
+ },
+ "TestOCRCleanupRetainsNotebookAss": {
+ "seconds": 0.003,
+ "tests": 1
+ },
+ "TestOCRCleanupUsesNotebookIdenti": {
+ "seconds": 0.006,
+ "tests": 1
+ },
+ "TestOCRCorruptCachePreservesSour": {
+ "seconds": 0.006,
+ "tests": 1
+ },
+ "TestOCRTextNotebookIsolation": {
+ "seconds": 0,
+ "tests": 1
+ },
+ "TestOCRTextPreservesLegacyScoped": {
+ "seconds": 0.051,
+ "tests": 1
+ },
+ "TestOCRTextReferenceVariants": {
+ "seconds": 0,
+ "tests": 1
+ },
+ "TestOmitUnsupportedResponseSampl": {
+ "seconds": 0,
+ "tests": 1
+ },
+ "TestOpenAIImageAdapterGenerate": {
+ "seconds": 0.002,
+ "tests": 1
+ },
+ "TestOpenAIReasoningResponseNorma": {
+ "seconds": 0.002,
+ "tests": 1
+ },
+ "TestOpenAIReasoningStreamNormali": {
+ "seconds": 0.002,
+ "tests": 1
+ },
+ "TestOpenAIResponsesConservativeR": {
+ "seconds": 0,
+ "tests": 1
+ },
+ "TestOpenAIResponsesIncompleteCon": {
+ "seconds": 0,
+ "tests": 1
+ },
+ "TestOpenAIResponsesNonStreamFail": {
+ "seconds": 0.001,
+ "tests": 1
+ },
+ "TestOpenAIResponsesRequestOption": {
+ "seconds": 0,
+ "tests": 1
+ },
+ "TestOpenAIResponsesSamplingCompa": {
+ "seconds": 0.017,
+ "tests": 1
+ },
+ "TestOpenAIResponsesSamplingDoesN": {
+ "seconds": 0.002,
+ "tests": 1
+ },
+ "TestOpenAIResponsesSamplingRepea": {
+ "seconds": 0.003,
+ "tests": 1
+ },
+ "TestOpenAIResponsesStreamPreserv": {
+ "seconds": 0.003,
+ "tests": 1
+ },
+ "TestOpenAIResponsesStreamRejects": {
+ "seconds": 0.002,
+ "tests": 1
+ },
+ "TestOpenAIResponsesStreamRequire": {
+ "seconds": 0.001,
+ "tests": 1
+ },
+ "TestOpenAIResponsesStreamReturns": {
+ "seconds": 0.002,
+ "tests": 1
+ },
+ "TestOperationStallSnapshotIsBoun": {
+ "seconds": 0.008,
+ "tests": 1
+ },
+ "TestOperationWatchdogCapturesBlo": {
+ "seconds": 0.021,
+ "tests": 1
+ },
+ "TestOperationWatchdogStopsAfterC": {
+ "seconds": 0.051,
+ "tests": 1
+ },
+ "TestPandocZipPath": {
+ "seconds": 0.001,
+ "tests": 1
+ },
+ "TestParseBundledFontLocalizedNam": {
+ "seconds": 0.001,
+ "tests": 1
+ },
+ "TestParseFontconfigFonts": {
+ "seconds": 0,
+ "tests": 1
+ },
+ "TestParseFontconfigSpacing": {
+ "seconds": 0,
+ "tests": 1
+ },
+ "TestParseFontconfigWeight": {
+ "seconds": 0,
+ "tests": 1
+ },
+ "TestParseSkillFrontmatter": {
+ "seconds": 0,
+ "tests": 1
+ },
+ "TestParseSystemNetworkProxy": {
+ "seconds": 0,
+ "tests": 1
+ },
+ "TestParseSystemNetworkProxyRejec": {
+ "seconds": 0,
+ "tests": 1
+ },
+ "TestPluginDevelopmentContextCann": {
+ "seconds": 0,
+ "tests": 1
+ },
+ "TestPluginDevelopmentRawPathGuar": {
+ "seconds": 0.891,
+ "tests": 1
+ },
+ "TestPluginDevelopmentReadOnlyRec": {
+ "seconds": 0,
+ "tests": 1
+ },
+ "TestPluginProjectCandidateExclud": {
+ "seconds": 0.099,
+ "tests": 1
+ },
+ "TestPluginProjectCheckpointFailu": {
+ "seconds": 0.009,
+ "tests": 1
+ },
+ "TestPluginProjectCrashTemporaryR": {
+ "seconds": 0.134,
+ "tests": 1
+ },
+ "TestPluginProjectCrashTemporaryU": {
+ "seconds": 0.099,
+ "tests": 1
+ },
+ "TestPluginProjectImportConflictH": {
+ "seconds": 0.009,
+ "tests": 1
+ },
+ "TestPluginProjectInterruptedPrep": {
+ "seconds": 0.17,
+ "tests": 1
+ },
+ "TestPluginProjectInterruptedRead": {
+ "seconds": 0.109,
+ "tests": 1
+ },
+ "TestPluginProjectInterruptedRepl": {
+ "seconds": 0.144,
+ "tests": 1
+ },
+ "TestPluginProjectLinkedCreationC": {
+ "seconds": 0.09,
+ "tests": 1
+ },
+ "TestPluginProjectLinkedCreationR": {
+ "seconds": 0.174,
+ "tests": 1
+ },
+ "TestPluginProjectMissingCheckpoi": {
+ "seconds": 0.093,
+ "tests": 1
+ },
+ "TestPluginProjectMutationRecover": {
+ "seconds": 0.216,
+ "tests": 1
+ },
+ "TestPluginProjectPreparePreserve": {
+ "seconds": 0.113,
+ "tests": 1
+ },
+ "TestPluginProjectRecoveryOnlyCan": {
+ "seconds": 0.132,
+ "tests": 1
+ },
+ "TestPluginProjectRecoveryOnlyRes": {
+ "seconds": 0.088,
+ "tests": 1
+ },
+ "TestPluginProjectRecoveryTailRem": {
+ "seconds": 0.295,
+ "tests": 1
+ },
+ "TestPluginProjectRenameJournalTr": {
+ "seconds": 0.226,
+ "tests": 1
+ },
+ "TestPluginProjectRepeatedMutatio": {
+ "seconds": 21.783,
+ "tests": 1
+ },
+ "TestPluginProjectRepeatedReplans": {
+ "seconds": 0.981,
+ "tests": 1
+ },
+ "TestPluginProjectReplanFailuresK": {
+ "seconds": 0,
+ "tests": 1
+ },
+ "TestPluginProjectReplanPreserves": {
+ "seconds": 0.192,
+ "tests": 1
+ },
+ "TestPluginProjectRequiresTrusted": {
+ "seconds": 0.127,
+ "tests": 1
+ },
+ "TestPluginProjectUnsafeSnapshot": {
+ "seconds": 0.064,
+ "tests": 1
+ },
+ "TestPrepareModelImagePreservesAn": {
+ "seconds": 0.002,
+ "tests": 1
+ },
+ "TestPublishFileBoundary": {
+ "seconds": 0.009,
+ "tests": 1
+ },
+ "TestPublishFileJunctionBoundary": {
+ "seconds": 0.064,
+ "tests": 1
+ },
+ "TestReasoningResponseTransportPa": {
+ "seconds": 0,
+ "tests": 1
+ },
+ "TestReasoningSSEBodyHandlesReadB": {
+ "seconds": 0,
+ "tests": 1
+ },
+ "TestReasoningSSEBodyNormalizesFi": {
+ "seconds": 0,
+ "tests": 1
+ },
+ "TestRemoveEmptyDir": {
+ "seconds": 0.006,
+ "tests": 1
+ },
+ "TestRemoveEmptyDirPreservesSymli": {
+ "seconds": 0.003,
+ "tests": 1
+ },
+ "TestRenameEmojiFilePreservesExis": {
+ "seconds": 0.012,
+ "tests": 1
+ },
+ "TestRenderOAuthCallbackPage": {
+ "seconds": 0,
+ "tests": 1
+ },
+ "TestRenderOAuthRedirectPage": {
+ "seconds": 0,
+ "tests": 1
+ },
+ "TestReplaceLegacyIOSWorkspacePat": {
+ "seconds": 0.002,
+ "tests": 1
+ },
+ "TestRerankRequestFormats": {
+ "seconds": 0.005,
+ "tests": 1
+ },
+ "TestRerankTruncatesDocumentsByRu": {
+ "seconds": 0.002,
+ "tests": 1
+ },
+ "TestResolveNamespaceAlias": {
+ "seconds": 0.002,
+ "tests": 1
+ },
+ "TestRetryableEmbeddingError": {
+ "seconds": 0,
+ "tests": 1
+ },
+ "TestRhyCacheSnapshotsAndConcurre": {
+ "seconds": 0.01,
+ "tests": 1
+ },
+ "TestSQLitePageCacheBudgetPerConn": {
+ "seconds": 0.204,
+ "tests": 1
+ },
+ "TestSSRFSafeClientRejectsPrivate": {
+ "seconds": 0,
+ "tests": 1
+ },
+ "TestSSRFSafeClientUsesHTTPProxyA": {
+ "seconds": 0.001,
+ "tests": 1
+ },
+ "TestSSRFSafeClientUsesLocalProxy": {
+ "seconds": 0.001,
+ "tests": 1
+ },
+ "TestSSRFSafeClientUsesSOCKS5Prox": {
+ "seconds": 0.002,
+ "tests": 1
+ },
+ "TestSSRFSafeClientUsesUpdatedPro": {
+ "seconds": 0.003,
+ "tests": 1
+ },
+ "TestSSRFSafeDialContext": {
+ "seconds": 0.029,
+ "tests": 1
+ },
+ "TestSSRFSafeDialerSafeMode": {
+ "seconds": 0.001,
+ "tests": 1
+ },
+ "TestSanitizeSVGAllowsBenignDocty": {
+ "seconds": 0,
+ "tests": 1
+ },
+ "TestSanitizeSVGAllowsUTF8BOM": {
+ "seconds": 0,
+ "tests": 1
+ },
+ "TestSanitizeSVGFiltersUnsafeAttr": {
+ "seconds": 0,
+ "tests": 1
+ },
+ "TestSanitizeSVGPreservesStaticSV": {
+ "seconds": 0,
+ "tests": 1
+ },
+ "TestSanitizeSVGRejectsInvalidInp": {
+ "seconds": 0,
+ "tests": 1
+ },
+ "TestSanitizeSVGRemovesActiveCont": {
+ "seconds": 0,
+ "tests": 1
+ },
+ "TestSelectFontconfigNameKeepsChi": {
+ "seconds": 0,
+ "tests": 1
+ },
+ "TestSensitivePathAliases": {
+ "seconds": 0.03,
+ "tests": 1
+ },
+ "TestServeMultiplexedRefreshesCer": {
+ "seconds": 0.048,
+ "tests": 1
+ },
+ "TestServeMultiplexed_CloseDropsA": {
+ "seconds": 0.006,
+ "tests": 1
+ },
+ "TestServeMultiplexed_HTTPAndHTTP": {
+ "seconds": 0.006,
+ "tests": 1
+ },
+ "TestServeMultiplexed_HTTPSMustNo": {
+ "seconds": 0.005,
+ "tests": 1
+ },
+ "TestServerCertificateAllowsClock": {
+ "seconds": 0.007,
+ "tests": 1
+ },
+ "TestSessionsByTypeExcludesPublis": {
+ "seconds": 0,
+ "tests": 1
+ },
+ "TestSetHomeDir": {
+ "seconds": 0.006,
+ "tests": 1
+ },
+ "TestSetHomeDirRejectsInvalidPath": {
+ "seconds": 0.003,
+ "tests": 1
+ },
+ "TestSetHomeDirRejectsReadOnlyDir": {
+ "seconds": 0,
+ "tests": 1
+ },
+ "TestSetNetworkProxy": {
+ "seconds": 0.016,
+ "tests": 1
+ },
+ "TestShouldRedirectToTLS": {
+ "seconds": 0.001,
+ "tests": 1
+ },
+ "TestSkillManagementCommitConflic": {
+ "seconds": 0.036,
+ "tests": 1
+ },
+ "TestSkillManagementLinks": {
+ "seconds": 0.019,
+ "tests": 1
+ },
+ "TestSkillManagementPathBoundarie": {
+ "seconds": 0.085,
+ "tests": 1
+ },
+ "TestSkillManagementRawFiles": {
+ "seconds": 0.113,
+ "tests": 1
+ },
+ "TestSkillManagementRevisionConfl": {
+ "seconds": 0.068,
+ "tests": 1
+ },
+ "TestSkillManagementTextFiles": {
+ "seconds": 0.26,
+ "tests": 1
+ },
+ "TestSkillManagementTextProtectio": {
+ "seconds": 0.333,
+ "tests": 1
+ },
+ "TestSplitFileAnnotationRef": {
+ "seconds": 0,
+ "tests": 1
+ },
+ "TestTLSCertManagerRefreshesCerti": {
+ "seconds": 0.092,
+ "tests": 2
+ },
+ "TestTestRerankModelValidatesResu": {
+ "seconds": 0.008,
+ "tests": 1
+ },
+ "TestTextFileAfterCommitFailureRe": {
+ "seconds": 0.012,
+ "tests": 1
+ },
+ "TestTextFileAtomicIOFailuresPres": {
+ "seconds": 0.062,
+ "tests": 1
+ },
+ "TestTextFileCancellationWhileWai": {
+ "seconds": 0.003,
+ "tests": 1
+ },
+ "TestTextFileConcurrentConditiona": {
+ "seconds": 0.028,
+ "tests": 1
+ },
+ "TestTextFileConditionalCreateRep": {
+ "seconds": 0.014,
+ "tests": 1
+ },
+ "TestTextFileConditionalRenameDel": {
+ "seconds": 0.012,
+ "tests": 1
+ },
+ "TestTextFileEditPreservesBytesMo": {
+ "seconds": 0.027,
+ "tests": 1
+ },
+ "TestTextFileEditsRejectAllConfli": {
+ "seconds": 0.039,
+ "tests": 1
+ },
+ "TestTextFileFailuresPreserveTarg": {
+ "seconds": 0.067,
+ "tests": 1
+ },
+ "TestTextFileLargeBinaryAssetRena": {
+ "seconds": 0.442,
+ "tests": 1
+ },
+ "TestTextFileNameMutationCancella": {
+ "seconds": 0.007,
+ "tests": 1
+ },
+ "TestTextFileParentReplacementRej": {
+ "seconds": 0.02,
+ "tests": 1
+ },
+ "TestTextFilePublishedCreateClean": {
+ "seconds": 0.013,
+ "tests": 1
+ },
+ "TestTextFileUnsafePathsAndEncodi": {
+ "seconds": 0.018,
+ "tests": 1
+ },
+ "TestUILoadedWaitsForMainSession": {
+ "seconds": 0,
+ "tests": 1
+ },
+ "TestUserSkillsAreReadOnlyAndRequ": {
+ "seconds": 0.007,
+ "tests": 1
+ },
+ "TestWebSearchResponseErrors": {
+ "seconds": 0.002,
+ "tests": 1
+ },
+ "TestWebSearchResponseResults": {
+ "seconds": 0.001,
+ "tests": 1
+ },
+ "TestWorkspaceDriveCache": {
+ "seconds": 0.001,
+ "tests": 1
+ },
+ "TestWorkspaceDriveCacheCancellat": {
+ "seconds": 0,
+ "tests": 1
+ },
+ "TestWorkspaceExitMarker": {
+ "seconds": 0.027,
+ "tests": 1
+ },
+ "TestWorkspaceStorageConcurrentRe": {
+ "seconds": 0.012,
+ "tests": 1
+ },
+ "TestWorkspaceStorageEmptyAndFail": {
+ "seconds": 0.011,
+ "tests": 1
+ },
+ "TestWorkspaceStorageLinks": {
+ "seconds": 0.007,
+ "tests": 1
+ },
+ "TestWorkspaceStorageLocalFiles": {
+ "seconds": 0.041,
+ "tests": 1
+ },
+ "TestWorkspaceStorageSharedScanCa": {
+ "seconds": 0.002,
+ "tests": 1
+ },
+ "TestWriteFileByMmapSizeTransitio": {
+ "seconds": 0.066,
+ "tests": 1
+ }
+ }
+}
diff --git a/scripts/test-kernel.mjs b/scripts/test-kernel.mjs
index 1aab151664..6c24b2c2c1 100644
--- a/scripts/test-kernel.mjs
+++ b/scripts/test-kernel.mjs
@@ -9,6 +9,8 @@ const root = resolve(dirname(fileURLToPath(import.meta.url)), "..");
const kernel = join(root, "kernel");
const modelPackage = "github.com/siyuan-note/siyuan/kernel/model";
const apiPackage = "github.com/siyuan-note/siyuan/kernel/api";
+const toolsPackage = "github.com/siyuan-note/siyuan/kernel/mcp/tools";
+const utilPackage = "github.com/siyuan-note/siyuan/kernel/util";
const tags = ["-tags", "fts5 sqlcipher"];
// 分片构建与其他包分别限制原生编译并发,多个大包分片时分阶段执行。
const packageParallelism = Math.min(2, availableParallelism());
@@ -16,11 +18,13 @@ const escapeRegex = value => value.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
export const listTests = output => output.split(/\r?\n/).filter(name => /^(Test|Example|Fuzz)\S*$/.test(name));
-// 核数较少时保留包间并行,避免 API 分片占用模型包有限的运行名额。
+// 核数较少时保留包间并行,避免其他包分片占用模型包有限的运行名额。
export const testPackageConfigurations = (shards, modelOnly, cores) => {
const configurations = [{name: "model", package: modelPackage, count: shards}];
if (!modelOnly && cores >= 4) {
configurations.push({name: "api", package: apiPackage, count: Math.min(2, shards)});
+ configurations.push({name: "mcp/tools", package: toolsPackage, count: Math.min(2, shards)});
+ configurations.push({name: "util", package: utilPackage, count: Math.min(2, shards)});
}
return configurations;
};
@@ -62,7 +66,7 @@ export const planShards = (names, count, durations) => {
// 每个进程使用独立的当前目录,测试资源通过目录链接复用,隔离相对路径写入。
export const preparePackageWorkspace = (repository, workspace, name) => {
- if (!["model", "api"].includes(name)) {
+ if (!["model", "api", "mcp/tools", "util"].includes(name)) {
throw new Error("Unsupported test package workspace: " + name);
}
const cwd = join(workspace, "kernel", name);
@@ -73,16 +77,21 @@ export const preparePackageWorkspace = (repository, workspace, name) => {
link(join(repository, resource), join(workspace, resource));
}
}
- for (const entry of readdirSync(join(repository, "kernel"), {withFileTypes: true})) {
- if (entry.isDirectory() && entry.name !== name) {
- link(join(repository, "kernel", entry.name), join(workspace, "kernel", entry.name));
+ // 嵌套包的祖先目录也必须独立,不能经由目录链接在源码树中创建运行时文件。
+ const parts = name.split("/");
+ for (let i = 0; i < parts.length; i++) {
+ const relative = join("kernel", ...parts.slice(0, i));
+ for (const entry of readdirSync(join(repository, relative), {withFileTypes: true})) {
+ if (entry.isDirectory() && entry.name !== parts[i]) {
+ link(join(repository, relative, entry.name), join(workspace, relative, entry.name));
+ }
}
}
for (const entry of readdirSync(join(repository, "kernel", name), {withFileTypes: true})) {
if (entry.isDirectory()) {
link(join(repository, "kernel", name, entry.name), join(cwd, entry.name));
} else if (entry.isFile() && entry.name.endsWith(".go")) {
- // API 用例会解析同目录的处理器源文件,副本保留检查且隔离运行时文件。
+ // 源码检查用例读取同目录的 Go 文件,副本保留检查且隔离运行时文件。
copyFileSync(join(repository, "kernel", name, entry.name), join(cwd, entry.name));
}
}
@@ -170,6 +179,10 @@ export const runJobs = async (jobs, concurrency, run) => {
return results;
};
+// 未分片作业还包含构建耗时,优先启动,避免仅按分片测试耗时排序将其推后。
+export const orderJobs = jobs => jobs.sort((a, b) => Number(b.name === "other-packages") - Number(a.name === "other-packages") ||
+ b.seconds - a.seconds || a.name.localeCompare(b.name, "en"));
+
const main = async () => {
const options = {shards: Math.min(4, availableParallelism()), modelOnly: false, output: undefined};
for (let i = 2; i < process.argv.length; i++) {
@@ -195,11 +208,14 @@ const main = async () => {
let otherFinished = false;
try {
const configurations = testPackageConfigurations(options.shards, options.modelOnly, availableParallelism());
- const startOtherPackages = () => {
+ const otherPackagesJob = parallelism => {
const sharded = new Set(configurations.map(configuration => configuration.package));
const packages = command(["list", ...tags, "./..."]).trim().split(/\r?\n/).filter(name => !sharded.has(name));
- otherJob = runJSONJob({name: "other-packages", cwd: kernel,
- args: ["test", ...tags, "-p", String(packageParallelism), "-json", "-count=1", ...packages]}, output)
+ return {name: "other-packages", cwd: kernel, seconds: 0,
+ args: ["test", ...tags, "-p", String(parallelism), "-json", "-count=1", ...packages]};
+ };
+ const startOtherPackages = () => {
+ otherJob = runJSONJob(otherPackagesJob(packageParallelism), output).then(result => [result])
.finally(() => { otherFinished = true; });
};
if (!options.modelOnly && configurations.length === 1) {
@@ -217,9 +233,11 @@ const main = async () => {
compiler.on("close", code => code === 0 ? resolve() : reject(new Error("Sharded test compilation failed: " + code)));
});
const jobs = [];
+ const backgroundJobs = [];
const inventory = {};
for (const configuration of configurations) {
- const base = join(binaries, configuration.name + ".test");
+ const jobName = configuration.name.replaceAll("/", "-");
+ const base = join(binaries, basename(configuration.name) + ".test");
const binary = process.platform === "win32" && existsSync(base + ".exe") ? base + ".exe" : base;
const listed = spawnSync(binary, ["-test.list=."], {
cwd: join(kernel, configuration.name), encoding: "utf8", windowsHide: true,
@@ -231,25 +249,32 @@ const main = async () => {
if (!names.length) {
throw new Error("No tests discovered for " + configuration.package);
}
- const durations = JSON.parse(readFileSync(join(root, "scripts", "kernel-" + configuration.name + "-test-durations.json"), "utf8"));
+ const durations = JSON.parse(readFileSync(join(root, "scripts", "kernel-" + jobName + "-test-durations.json"), "utf8"));
const shards = planShards(names, configuration.count, durations);
inventory[configuration.name] = {tests: names.length, shards: shards.length};
- jobs.push(...shards.map((shard, i) => ({name: configuration.name + "-" + (i + 1), seconds: shard.seconds, expectedTests: shard.names,
- cwd: preparePackageWorkspace(root, join(workspace, configuration.name + "-shard-" + i), configuration.name),
+ const destination = ["model", "api"].includes(configuration.name) ? jobs : backgroundJobs;
+ destination.push(...shards.map((shard, i) => ({name: jobName + "-" + (i + 1), seconds: shard.seconds, expectedTests: shard.names,
+ cwd: preparePackageWorkspace(root, join(workspace, jobName + "-shard-" + i), configuration.name),
args: ["tool", "test2json", "-t", "-p", configuration.package, binary, "-test.v=test2json", "-test.count=1", "-test.timeout=10m", "-test.run=" + shard.regex]})));
}
- if (!options.modelOnly && !otherJob) {
+ if (backgroundJobs.length) {
+ // 复用其他包原有的两个运行名额,避免新分片挤占模型与 API 的名额。
+ // 未分片包使用一个名额并限制为 -p 1,测试进程上限与原有 -p 2 作业一致。
+ backgroundJobs.push(otherPackagesJob(1));
+ otherJob = runJobs(orderJobs(backgroundJobs), packageParallelism, job => runJSONJob(job, output))
+ .finally(() => { otherFinished = true; });
+ } else if (!options.modelOnly && !otherJob) {
startOtherPackages();
}
const concurrency = Math.min(4, Math.max(1, availableParallelism() - (otherJob && !otherFinished ? 1 : 0)));
- console.log(`Running ${jobs.length} model/API shards; ${concurrency} concurrent jobs; logs: ${output}`);
- const results = await runJobs(jobs.sort((a, b) => b.seconds - a.seconds || a.name.localeCompare(b.name, "en")),
- concurrency, job => runJSONJob(job, output));
+ console.log(`Running ${jobs.length} model/API shards (${concurrency} workers) and ${backgroundJobs.length} other jobs ` +
+ `(${backgroundJobs.length ? packageParallelism : 0} workers); logs: ${output}`);
+ const results = await runJobs(orderJobs(jobs), concurrency, job => runJSONJob(job, output));
if (otherJob) {
- results.unshift(await otherJob);
+ results.unshift(...await otherJob);
}
const summary = {seconds: (performance.now() - started) / 1000, modelTests: inventory.model.tests, shards: inventory.model.shards,
- apiTests: inventory.api?.tests ?? 0, apiShards: inventory.api?.shards ?? 0, results};
+ apiTests: inventory.api?.tests ?? 0, apiShards: inventory.api?.shards ?? 0, packages: inventory, results};
writeFileSync(join(output, "summary.json"), JSON.stringify(summary, null, 2) + "\n");
console.log(`Kernel tests: ${summary.seconds.toFixed(1)}s; summary: ${join(output, "summary.json")}`);
process.exitCode = results.some(result => result.code) ? 1 : 0;
diff --git a/scripts/test-kernel.test.mjs b/scripts/test-kernel.test.mjs
index 968a3d8d3d..d4f2ce950e 100644
--- a/scripts/test-kernel.test.mjs
+++ b/scripts/test-kernel.test.mjs
@@ -3,7 +3,7 @@ import * as assert from "node:assert/strict";
import {existsSync, mkdirSync, mkdtempSync, readFileSync, rmSync, writeFileSync} from "node:fs";
import {tmpdir} from "node:os";
import {dirname, join, resolve} from "node:path";
-import {listTests, planShards, preparePackageWorkspace, runJSONJob, runJobs, testPackageConfigurations} from "./test-kernel.mjs";
+import {listTests, orderJobs, planShards, preparePackageWorkspace, runJSONJob, runJobs, testPackageConfigurations} from "./test-kernel.mjs";
const durations = {prefixLength: 6, defaultSeconds: 0.2, buckets: {
TestSl: {seconds: 40, tests: 2}, TestMe: {seconds: 20, tests: 2}, TestFa: {seconds: 10, tests: 2},
@@ -22,11 +22,14 @@ test("test discovery includes examples and fuzz seeds without enabling benchmark
["TestOne", "ExampleTwo", "FuzzThree"]);
});
-test("API sharding respects low-core and model-only execution without duplicating packages", () => {
+test("package sharding respects low-core and model-only execution without duplicating packages", () => {
assert.deepEqual(testPackageConfigurations(4, false, 2).map(item => item.name), ["model"]);
assert.deepEqual(testPackageConfigurations(4, true, 16).map(item => item.name), ["model"]);
- assert.deepEqual(testPackageConfigurations(4, false, 16).map(item => [item.name, item.count]), [["model", 4], ["api", 2]]);
- assert.deepEqual(testPackageConfigurations(1, false, 4).map(item => item.count), [1, 1]);
+ assert.deepEqual(testPackageConfigurations(4, false, 3).map(item => item.name), ["model"]);
+ const configurations = testPackageConfigurations(4, false, 16);
+ assert.deepEqual(configurations.map(item => [item.name, item.count]), [["model", 4], ["api", 2], ["mcp/tools", 2], ["util", 2]]);
+ assert.equal(new Set(configurations.map(item => item.package)).size, configurations.length);
+ assert.deepEqual(testPackageConfigurations(1, false, 4).map(item => item.count), [1, 1, 1, 1]);
});
test("duration balancing discovers new families and selects every current test exactly once", () => {
@@ -69,6 +72,15 @@ test("parallel jobs remain bounded and a failed job does not omit later shards",
assert.deepEqual(results.map(result => result.code), [0, 1, 0, 0, 0]);
});
+test("unsharded compilation starts before measured shards and ties remain deterministic", () => {
+ const jobs = [{name: "util-2", seconds: 20}, {name: "mcp-tools-1", seconds: 60},
+ {name: "other-packages", seconds: 0}, {name: "util-1", seconds: 20}];
+ assert.deepEqual(orderJobs(jobs).map(job => job.name), ["other-packages", "mcp-tools-1", "util-1", "util-2"]);
+ assert.deepEqual(orderJobs([...jobs].reverse()).map(job => job.name), jobs.map(job => job.name));
+ assert.deepEqual(orderJobs(jobs.filter(job => job.name !== "other-packages")).map(job => job.name),
+ ["mcp-tools-1", "util-1", "util-2"]);
+});
+
test("each model process has isolated relative writes while retaining repository fixtures", t => {
const directory = temporary(t);
const repository = join(directory, "repository");
@@ -118,6 +130,36 @@ test("API processes retain source checks and isolate configuration from the repo
assert.throws(() => preparePackageWorkspace(repository, join(directory, "invalid"), "../api"));
});
+test("nested MCP and util workspaces isolate ancestor writes and preserve sibling resources", t => {
+ const directory = temporary(t);
+ const repository = join(directory, "repository");
+ for (const relative of ["docs", "kernel/util/testdata", "kernel/mcp/tools/testdata", "kernel/mcp/auth/testdata"]) {
+ mkdirSync(join(repository, relative), {recursive: true});
+ writeFileSync(join(repository, relative, "fixture.txt"), relative);
+ }
+ const tools = join(repository, "kernel/mcp/tools");
+ writeFileSync(join(tools, "file.go"), "package tools\n");
+ const one = preparePackageWorkspace(repository, join(directory, "one"), "mcp/tools");
+ const two = preparePackageWorkspace(repository, join(directory, "two"), "mcp/tools");
+ const util = preparePackageWorkspace(repository, join(directory, "util"), "util");
+ writeFileSync(join(one, "index.queue"), "one");
+ writeFileSync(join(one, "../conf.json"), "parent");
+ writeFileSync(join(one, "file.go"), "package copy\n");
+ writeFileSync(join(util, "conf.json"), "util");
+ assert.equal(existsSync(join(tools, "index.queue")), false);
+ assert.equal(existsSync(join(tools, "../conf.json")), false);
+ assert.equal(existsSync(join(two, "index.queue")), false);
+ assert.equal(existsSync(join(two, "../conf.json")), false);
+ assert.equal(existsSync(join(repository, "kernel/util/conf.json")), false);
+ assert.equal(readFileSync(join(tools, "file.go"), "utf8"), "package tools\n");
+ assert.equal(readFileSync(join(one, "../auth/testdata/fixture.txt"), "utf8"), "kernel/mcp/auth/testdata");
+ assert.equal(readFileSync(join(one, "../../util/testdata/fixture.txt"), "utf8"), "kernel/util/testdata");
+ assert.equal(readFileSync(join(one, "../../../docs/fixture.txt"), "utf8"), "docs");
+ assert.equal(readFileSync(join(util, "testdata/fixture.txt"), "utf8"), "kernel/util/testdata");
+ assert.equal(readFileSync(join(util, "../mcp/tools/testdata/fixture.txt"), "utf8"), "kernel/mcp/tools/testdata");
+ assert.throws(() => preparePackageWorkspace(repository, join(directory, "invalid"), "mcp/../util"));
+});
+
test("process failures, missing tests and truncated coverage cannot produce a passing shard", async t => {
t.mock.method(console, "log", () => {});
t.mock.method(console, "error", () => {});