PowerShell / PowerShell/PSScriptAnalyzer

Investigate/Fix test failure on PowerShell Core

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

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

Area - Build Area - Rules
主要言語
C#
スター
2.2k
フォーク
414
平均マージ
13時間 1分
マージ済み PR(30日)
2

説明

  • 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

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

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

調査の方向性

参照されているテストの Tests/Rules/UseToExportFieldsInManifest.tests.ps1 から開始し、Windows と Ubuntu で PowerShell Core を使用してテストスイートを実行します。報告された失敗を AppVeyor の結果と比較し、一覧にある 9 件の失敗がテストの問題なのか環境の問題なのかを判断します。失敗の原因が説明され、影響を受けるテストが適切に修正または更新されれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
powershell
領域
testing-qa
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
35/100

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

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