ADO_Server_Diagnostics_2025 cannot be run as published: missing Common.psm1 and two analyzers incompatible with Elasticsearch 8
還沒有人認領這個 Issue。
評估
- 難度
- 4/5
- 預估耗時
- 3-5 天
- 新手友好度
- 48/100
研究方向
Start with ADO_Server_Diagnostics_2025/Common.psm1 and Troubleshooting/Utils/Common.psm1, then inspect Analyzers/Test-ElasticsearchHealth.psm1 and Test-IndicesHaveUnsupportedMappings.psm1 against Elasticsearch 8.14.1. Read Troubleshooting/readme.txt and locate every Invoke-Sqlcmd call before running Repair-Search.ps1. Done means a published 25H2 run completes all analyzers, documents the actual parameters, and handles the stated SQL TLS condition.
由索引模型根據 Issue 內容生成。
描述
-
ADO_Server_Diagnostics_2025/Common.psm1is missing from the repository. The scripts in the root of that folder import it and fail. We had to copy the file fromAzure_DevOps_Server_2022. -
ADO_Server_Diagnostics_2025/Troubleshooting/Utils/Common.psm1is also missing. TheUtilsfolder in that path contains onlyAlgorithms.ps1, while the 2022 equivalent contains both files.Repair-Search.ps1cannot start without it. -
Analyzers/Test-ElasticsearchHealth.psm1crashes on Elasticsearch 8. Line 109 throwsIndexOutOfRangeException. The aggregation built earlier in the function groups by the_typefield, which was removed in Elasticsearch 8, somappings.bucketscomes back empty and$mappings[0]is out of bounds. Azure DevOps Server 25H2 installs Elasticsearch 8.14.1, so this analyzer can never complete on a supported 25H2 deployment. -
Analyzers/Test-IndicesHaveUnsupportedMappings.psm1throws on Elasticsearch 8. Line 78 raisesGET _mapping/<type> failed with status code [400] unexpectedly. The_mapping/{type}endpoint was removed in Elasticsearch 8 and now returns HTTP 400 (no handler found for uri) instead of the HTTP 404 the script expects. Suggested fix: treat 400 the same as 404, or skip this analyzer entirely on Elasticsearch 8, since the function's own comment notes there is only one mapping per index in current releases.Because analyzers 3 and 4 run in the middle of the sequence, their exceptions abort
Repair-Search.ps1before the remaining analyzers execute. We had to patch both files locally to get a complete run. -
Troubleshooting/readme.txtdocuments parameter names that do not exist. The actual parameters ofRepair-Search.ps1are-SQLServerInstance,-ConfigurationDatabaseName,-CollectionDatabaseName,-CollectionName,-ElasticsearchServiceUrl,-ElasticsearchServiceCredentialand-EntityType. -
Invoke-Sqlcmdcalls fail against SQL Server instances without a trusted TLS certificate. Version 22.x of theSqlServerPowerShell module encrypts connections by default, so every call fails withThe certificate chain was issued by an authority that is not trusted. Setting$PSDefaultParameterValuesin the caller's session does not help, because the calls are made from inside the module scope. We had to add-TrustServerCertificateto everyInvoke-Sqlcmdcall in the scripts.
- 主要語言
- PowerShell
- 星號
- 57
- 分支
- 68
- PR 合併指標
- 30 天內沒有已合併 PR
環境準備
這個專案沒有提供開發容器、Dockerfile 或貢獻指南,環境需要你自己搭建:先看它的 README,通用步驟見我們的新手貢獻指南。
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
microsoft/Code-Search 的其他 Issue
-
難度 4/5 3-5 天 新手友好度 48/100
microsoft/Code-Search#122 ·
-
難度 5/5 一週以上 新手友好度 25/100
microsoft/Code-Search#98 · 2 則留言 · 2 個 reaction ·
-
難度 1/5 1 小時以內 新手友好度 15/100
microsoft/Code-Search#97 · 1 則留言 ·
-
難度 4/5 3-5 天 新手友好度 25/100
microsoft/Code-Search#96 ·
-
難度 2/5 1-3 小時 新手友好度 30/100
microsoft/Code-Search#95 · 1 則留言 ·
查看 microsoft/Code-Search 的全部 Issue
相似的 Issue
-
sdk-typescript vector-store
難度 2/5 半天 新手友好度 82/100
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 84/100
維護者通常 2 天內回覆
-
request-theme
難度 2/5 1-3 小時 新手友好度 72/100
LizardByte/ThemerrDB#8723 · 1 則留言 ·
維護者通常 1 天內回覆
-
bug bug:behavior clawsweeper:fix-shape-clear clawsweeper:queueable-fix clawsweeper:source-repro impact:other issue-rating: 🦞 diamond lobster maturity:stable no-stale P2
難度 2/5 1-3 小時 新手友好度 78/100
openclaw/openclaw#160875 · 2 則留言 · 1 個 reaction ·
維護者通常 1 天內回覆
-
API Bug
難度 2/5 1-3 小時 新手友好度 78/100
ProjectSidewalk/SidewalkWebpage#5556 ·
維護者通常 1 天內回覆