PowerShell / PowerShell/PSScriptAnalyzer

Investigate/Fix test failure on PowerShell Core

Aperta
#944 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Area - Build Area - Rules
Lingua principale
C#
Stelle
2.2k
Fork
414
Merge medio
13h 1m
PR unite (30g)
2

Descrizione

  • The "suggests corrections for AliasesToExport with wildcard of UseManifestExportFields is currently set as pending when tests are being run using the coreclr.
    This tests needs to be looked into and possibly fixed.
    The test is here:
    https://github.com/PowerShell/PSScriptAnalyzer/blob/021711eae27a2bd00165f30c6c568a78f448870a/Tests/Rules/UseToExportFieldsInManifest.tests.ps1#L86
  • There are 9 test failures using PowerShell Core on Windows and Ubuntu but they do not fail in AppVeyor for some reason. Those tests were always failing, even when going back to an old commit like 9e37dd34e8564dc7470dda1e0d2596de37bcd679 in January. Therefore those failures are to be considered technical debt. Until we know why AppVeyor lets them pass and fix them afterwards, we have to more diligent with running tests locally or on VSTS using PowerShell Core to make sure that we do not introduce regression. The test failures are:
    pssa_corefailures1
    pssa_corefailures2

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Direzione di ricerca

Inizia da Tests/Rules/UseToExportFieldsInManifest.tests.ps1 nel test indicato ed esegui la suite con PowerShell Core su Windows e Ubuntu. Confronta gli errori segnalati con i risultati di AppVeyor e determina se i nove errori elencati sono problemi dei test o dell’ambiente. Il lavoro è completato quando gli errori sono spiegati e i test interessati sono corretti o aggiornati in modo appropriato.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
powershell
Ambito
testing-qa
Tipo di issue
Bug
Difficoltà
4/5
Tempo stimato
3-5 giorni
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
35/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.