Add CI pipeline to run eng/scripts PowerShell unit tests
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 69/100
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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.
- Lingua principale
- Python
- Stelle
- 5.6k
- Fork
- 3.4k
- Merge medio
- 1g 23h
- PR unite (30g)
- 189
Preparare l'ambiente
Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di Azure/azure-sdk-for-python
-
SyntaxWarning: Invalid escape sequence \/ in `azure-mgmt-resource-deploymentstacks` 1.0.0Forse già presa @msyyc l’ha presa 7 giorni fa. Aperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 85/100
Azure/azure-sdk-for-python#50155 · 1 reazione · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
[Teams Chatbot]: next-mypy install 404s should point to CFS auth or --pypi workaroundForse già presa @jianingwang123 l’ha presa 24 giorni fa. Apertaneeds-triage
Difficoltà 1/5 1-3 ore Idoneità per principianti 72/100
Azure/azure-sdk-for-python#49886 · 1 commento · 2 reazioni · 2 assegnatari ·
I maintainer di solito rispondono entro 1 giorno
-
[AI Projects] AIProjectInstrumentor: non-streamed responses.create raises AttributeError ('NonRecordingSpan' object has no attribute 'attributes') when the span is not sampledForse già presa @14H034160212 l’ha presa 26 giorni fa. ApertaAI Projects Client customer-reported question
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
Azure/azure-sdk-for-python#49854 · 2 commenti · 1 reazione ·
I maintainer di solito rispondono entro 1 giorno
-
azure-eventhub migration guide: legacy checkpoint sample writes "None" metadata for partitions that were never checkpointedForse già presa @hidingmyname l’ha presa 34 giorni fa. ApertaClient customer-reported Event Hubs needs-team-attention question Service Attention
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
Azure/azure-sdk-for-python#49723 · 2 commenti · 1 reazione ·
I maintainer di solito rispondono entro 1 giorno
-
Scheduled test pipelines fail at the Analyze_Test stage due to date formattingForse già presa Una pull request collegata a questa issue è aperta o già unita. ApertaEngSys
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
Azure/azure-sdk-for-python#49614 · 1 commento · 1 reazione ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di Azure/azure-sdk-for-python
Issue simili
-
area/network kind/documentation triage/needs-human
Difficoltà 1/5 1-3 ore Idoneità per principianti 88/100
canonical/k8s-snap#3533 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
area: ops bug effort: small
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 91/100
juandresrodca/AdminForge#71 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
fossasia/eventyay-exhibition#465 · 3 commenti · 1 reazione ·
I maintainer di solito rispondono entro 3 giorni
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
Deltakit/deltakit-circuit#28 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
I maintainer di solito rispondono entro 1 giorno