Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Lack of error handling when no setup.exe sub-processes exist causes DSC to interpret completion as failure

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

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

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
86/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
powershell
領域
devops

調査の方向性

Get-Process Setup が呼び出されている Microsoft.VisualStudio.DSC/Microsoft.VisualStudio.DSC.psm1 の 297 行目付近から始めます。Setup サブプロセスを使わずに DSCv3 の完了パスを再現し、コマンドエラーがどのように捕捉されるかを確認します。該当するプロセスが存在しない場合に Setup の完了が成功として扱われ、同時にサブプロセスの実際の失敗を引き続き検出できれば完了です。

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

説明

When using Microsoft.VisualStudio.DSC/VSComponents in DSCv3, the DSC shows failure after setup completion at https://github.com/microsoft/VisualStudioDSC/blob/6ae0076f62eab2118c3c74fdf96d6db78dbe913b/Microsoft.VisualStudio.DSC/Microsoft.VisualStudio.DSC.psm1#L297 because Get-Process Setup cmdlet throws when it does not find any matching processes. Based on the rest of the function, $activeInstallerProcess is treated as optional because there is a truthy check before looping through to find any exit codes that are considered failures from the setup sub-processes, so it seems like Get-Process should be invoked with -ErrorAction SilentlyContinue or similar.

Failure in DSC console log:

[4954:0001][2026-09-29T15:13:09] ManifestVerifier Result: Success
[4954:0001][2026-09-29T15:13:09] ManifestVerifier Result: Success
2026-09-29T22:13:09.866178Z ERROR PID 8476: Cannot find a process with the name "Setup". Verify the process name and call the cmdlet again.
2026-09-29T22:13:10.324626Z ERROR PID 8476: Errors were captured during script execution. Check previous error traces for details.
2026-09-29T22:13:10.365420Z ERROR Failed to run process 'pwsh': Command: Resource 'pwsh' [exit code 1]
2026-09-29T22:13:10.367696Z ERROR Error: Command: Resource 'pwsh' [exit code 1]

When running an equivalent command directly through setup.exe in the VS Installer, it succeeds without issue.

主要言語
PowerShell
スター
16
フォーク
6
PR マージ指標
30日以内にマージされた PR はありません

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

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

microsoft/VisualStudioDSC のほかの issue

microsoft/VisualStudioDSC の issue をすべて見る

似ている issue

DevOps の issue をもっと見る

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

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