microsoft / microsoft/PSRule

Flaky CI tests running PSScriptAnalyzer

Open
#299 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

ci-quality
Dominant language
C#
Stars
474
Forks
65
Avg merge
22h 25m
Merged PRs (30d)
26

Description

Description of the issue

PSRule.Static analysis.Has no quality errors fails during CI process inconsistently. Rerunning from same commit often does not reproduce the same issue making this issue extremely hard to identify. Most commonly the issue occurs on MacOS builds, but has been know to occur on other platforms too.

Continue monitoring with Invoke-ScriptAnalyzer -Verbose to collect additional information for logging an issue.

Additional context

Currently the issue seems to be related to AvoidReservedCharInCmdlet rule reported as PSReservedCmdletChar.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No source file or test path is named. Start by running the affected CI test with Invoke-ScriptAnalyzer -Verbose, especially on macOS, and compare results across repeated runs. Done means the intermittent PSReservedCmdletChar/AvoidReservedCharInCmdlet failure is explained and the CI check is made reliable.

Written by the indexing model from the issue text.

Assessment

Tech stack
powershell
Domain
ci-cd, devops, testing-qa
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.