Add CI pipeline to run eng/scripts PowerShell unit tests

オープン
#50,190 コメント 0 件 リアクション 1 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
69/100
issue の種類
機能追加
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
github-actions, powershell, python
領域
ci-cd, testing

調査の方向性

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 の本文から書いたものです。

説明

EngSys

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

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.ps1
  • eng/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

  1. Tag the offline-safe tests with -Tag UnitTest. Leave live/network-dependent tests untagged or give them a separate tag.
  2. Add eng/scripts/ci.yml that extends /eng/common/pipelines/templates/stages/archetype-sdk-tool-pwsh.yml with TargetDirectory: eng/scripts/ and TargetTags: 'UnitTest'. Add any PreTestSteps needed, such as a shallow checkout or installing required PowerShell modules or toolchains.
  3. Register the pipeline in Azure DevOps so it runs on PRs that touch eng/scripts.
主要言語
Python
スター
5.6k
フォーク
3.4k
平均マージ
1日 23時間
マージ済み PR(30日)
189

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

Azure/azure-sdk-for-python のほかの issue

Azure/azure-sdk-for-python の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。