Add CI pipeline to run eng/scripts PowerShell unit tests
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 69/100
调研方向
Read the existing Pester tests under eng/scripts/tests/ and compare the .NET and Java eng/scripts/ci.yml examples linked in the issue. Then check the shared eng/common/pipelines/templates/stages/archetype-sdk-tool-pwsh.yml template and the repository's pipeline registration process. Done when offline-safe tests are tagged UnitTest, the new pipeline runs them for the specified branches and platforms, and it is registered for eng/scripts changes.
由索引模型根据 Issue 内容生成。
描述
Copilot agent :copilot: (on behalf of @jeremymeng):
Summary
Consider adding a CI pipeline (eng/scripts/ci.yml) that runs the Pester tests under eng/scripts/ using the shared eng/common/pipelines/templates/stages/archetype-sdk-tool-pwsh.yml template, similar to what .NET and Java already do.
Prior art
- .NET: eng/scripts/ci.yml -
TargetTags: 'UnitTest,SdkCompatibilityTest' - Java: eng/scripts/ci.yml -
TargetTags: 'UnitTest'
Both trigger on changes to eng/scripts/* (plus related pipeline files) for CI and PRs on main, feature/*, release/*, hotfix/*, and run on Windows and Linux.
Current state in this repo
There is no eng/scripts/ci.yml, but Pester tests already exist and are not run in CI:
eng/scripts/tests/Package-Namespaces.tests.ps1eng/scripts/tests/Release-CompletionCorrelation.tests.ps1
These tests currently have no UnitTest tag. Since the template filters by TargetTags, they need to be tagged as part of this work.
Suggested work
- Tag the offline-safe tests with
-Tag UnitTest. Leave live/network-dependent tests untagged or give them a separate tag. - Add
eng/scripts/ci.ymlthat extends/eng/common/pipelines/templates/stages/archetype-sdk-tool-pwsh.ymlwithTargetDirectory: eng/scripts/andTargetTags: 'UnitTest'. Add anyPreTestStepsneeded, such as a shallow checkout or installing required PowerShell modules or toolchains. - Register the pipeline in Azure DevOps so it runs on PRs that touch
eng/scripts.
- 主要语言
- Python
- 星标
- 5.6k
- 派生
- 3.4k
- 平均合并
- 1 天 23 小时
- 30 天内合并 PR
- 189
环境准备
在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
Azure/azure-sdk-for-python 的其他 Issue
-
SyntaxWarning: Invalid escape sequence \/ in `azure-mgmt-resource-deploymentstacks` 1.0.0可能已有人在做 @msyyc 于 7 天前认领。 未关闭
难度 1/5 1 小时以内 新手友好度 85/100
Azure/azure-sdk-for-python#50155 · 1 个 reaction · 已指派 1 人 ·
维护者通常 1 天内回复
-
[Teams Chatbot]: next-mypy install 404s should point to CFS auth or --pypi workaround可能已有人在做 @jianingwang123 于 24 天前认领。 未关闭needs-triage
难度 1/5 1-3 小时 新手友好度 72/100
Azure/azure-sdk-for-python#49886 · 1 条评论 · 2 个 reaction · 已指派 2 人 ·
维护者通常 1 天内回复
-
[AI Projects] AIProjectInstrumentor: non-streamed responses.create raises AttributeError ('NonRecordingSpan' object has no attribute 'attributes') when the span is not sampled可能已有人在做 @14H034160212 于 26 天前认领。 未关闭AI Projects Client customer-reported question
难度 2/5 1-3 小时 新手友好度 78/100
Azure/azure-sdk-for-python#49854 · 2 条评论 · 1 个 reaction ·
维护者通常 1 天内回复
-
azure-eventhub migration guide: legacy checkpoint sample writes "None" metadata for partitions that were never checkpointed可能已有人在做 @hidingmyname 于 34 天前认领。 未关闭Client customer-reported Event Hubs needs-team-attention question Service Attention
难度 2/5 1-3 小时 新手友好度 78/100
Azure/azure-sdk-for-python#49723 · 2 条评论 · 1 个 reaction ·
维护者通常 1 天内回复
-
Scheduled test pipelines fail at the Analyze_Test stage due to date formatting可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭EngSys
难度 2/5 1-3 小时 新手友好度 78/100
Azure/azure-sdk-for-python#49614 · 1 条评论 · 1 个 reaction ·
维护者通常 1 天内回复
查看 Azure/azure-sdk-for-python 的全部 Issue
相似的 Issue
-
area/network kind/documentation triage/needs-human
难度 1/5 1-3 小时 新手友好度 88/100
canonical/k8s-snap#3533 · 1 条评论 ·
维护者通常 1 天内回复
-
area: ops bug effort: small
难度 1/5 1 小时以内 新手友好度 91/100
juandresrodca/AdminForge#71 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 76/100
fossasia/eventyay-exhibition#465 · 3 条评论 · 1 个 reaction ·
维护者通常 3 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 78/100
Deltakit/deltakit-circuit#28 ·
-
难度 2/5 1-3 小时 新手友好度 68/100
维护者通常 1 天内回复