Add CI pipeline to run eng/scripts PowerShell unit tests
Les mainteneurs répondent en général sous 1 jour
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 3/5
- Temps estimé
- 1-2 jours
- Accessibilité débutants
- 69/100
Piste de recherche
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.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
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.
- Langage dominant
- Python
- Étoiles
- 5.6k
- Forks
- 3.4k
- Merge moyen
- 1 j 23 h
- PR mergées (30 j)
- 189
Préparer son environnement
Lance le conteneur de développement du projet dans votre navigateur, avec votre propre compte GitHub.
- Aucun Dockerfile ni fichier Docker Compose
- Propose un modèle de pull request
- Lire le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de Azure/azure-sdk-for-python
-
SyntaxWarning: Invalid escape sequence \/ in `azure-mgmt-resource-deploymentstacks` 1.0.0Peut-être pris @msyyc l’a pris il y a 7 jours. Ouverte
Difficulté 1/5 Moins d'une heure Accessibilité débutants 85/100
Azure/azure-sdk-for-python#50155 · 1 réaction · 1 personne assignée ·
Les mainteneurs répondent en général sous 1 jour
-
[Teams Chatbot]: next-mypy install 404s should point to CFS auth or --pypi workaroundPeut-être pris @jianingwang123 l’a pris il y a 24 jours. Ouverteneeds-triage
Difficulté 1/5 1-3 heures Accessibilité débutants 72/100
Azure/azure-sdk-for-python#49886 · 1 commentaire · 2 réactions · 2 personnes assignées ·
Les mainteneurs répondent en général sous 1 jour
-
[AI Projects] AIProjectInstrumentor: non-streamed responses.create raises AttributeError ('NonRecordingSpan' object has no attribute 'attributes') when the span is not sampledPeut-être pris @14H034160212 l’a pris il y a 26 jours. OuverteAI Projects Client customer-reported question
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
Azure/azure-sdk-for-python#49854 · 2 commentaires · 1 réaction ·
Les mainteneurs répondent en général sous 1 jour
-
azure-eventhub migration guide: legacy checkpoint sample writes "None" metadata for partitions that were never checkpointedPeut-être pris @hidingmyname l’a pris il y a 34 jours. OuverteClient customer-reported Event Hubs needs-team-attention question Service Attention
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
Azure/azure-sdk-for-python#49723 · 2 commentaires · 1 réaction ·
Les mainteneurs répondent en général sous 1 jour
-
Scheduled test pipelines fail at the Analyze_Test stage due to date formattingPeut-être pris Une pull request liée à cette issue est ouverte ou déjà fusionnée. OuverteEngSys
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
Azure/azure-sdk-for-python#49614 · 1 commentaire · 1 réaction ·
Les mainteneurs répondent en général sous 1 jour
Toutes les issues de Azure/azure-sdk-for-python
Issues similaires
-
area/network kind/documentation triage/needs-human
Difficulté 1/5 1-3 heures Accessibilité débutants 88/100
canonical/k8s-snap#3533 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour
-
area: ops bug effort: small
Difficulté 1/5 Moins d'une heure Accessibilité débutants 91/100
juandresrodca/AdminForge#71 ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 76/100
fossasia/eventyay-exhibition#465 · 3 commentaires · 1 réaction ·
Les mainteneurs répondent en général sous 3 jours
-
bug
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
Deltakit/deltakit-circuit#28 ·
-
Difficulté 2/5 1-3 heures Accessibilité débutants 68/100
Les mainteneurs répondent en général sous 1 jour