Skip to content

pottential fix for EIDSCA generator - #2111

Open
Mynster9361 wants to merge 3 commits into
maester365:mainfrom
Mynster9361:main
Open

pottential fix for EIDSCA generator#2111
Mynster9361 wants to merge 3 commits into
maester365:mainfrom
Mynster9361:main

Conversation

@Mynster9361

@Mynster9361 Mynster9361 commented Aug 9, 2026

Copy link
Copy Markdown
Contributor

📑 Description

Block : EIDSCA generator Name : It generates canonical sources from fixture input Result : Failed Message : Expected $true, but got $false.

[21:46:37][pester.ps1] 1 tests out of 10394 tests failed! Exception: D:\a\maester\maester\powershell\tests\pester.ps1:236 Line | 236 | throw "$totalFailed / $totalRun tests failed!"
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| 1 / 10394 tests failed!
Error: Process completed with exit code 1.

Closes # I never created an issue for it

✅ Checks

  • My pull request adheres to the code style of this project.
  • My code requires changes to the documentation.
  • I have updated the documentation as required.
  • The build and unit tests pass after running /powershell/tests/pester.ps1 locally.

ℹ️ Additional Information


How to Contribute

🏗️ Read our full contributing guide for the Maester project.
🧪 We also have additional instructions and a checklist for creating tests.

Join us at the Maester repository discussions or Entra Discord for more help and conversations!
While you wait for a review, why not spread some Maester love on social media? Thank you! 💖

Summary by CodeRabbit

  • Bug Fixes
    • Improved generated test file consistency by normalizing line endings for the selected platform.
    • Removed inconsistent whitespace around generated file content.

Mynster9361 and others added 2 commits August 9, 2026 12:39
Block   : EIDSCA generator
Name    : It generates canonical sources from fixture input
Result  : Failed
Message : Expected $true, but got $false.

[21:46:37][pester.ps1] 1 tests out of 10394 tests failed!
Exception: D:\a\maester\maester\powershell\tests\pester.ps1:236
Line |
 236 |      throw "$totalFailed / $totalRun tests failed!"
     |      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     | 1 / 10394 tests failed!
Error: Process completed with exit code 1.
@Mynster9361
Mynster9361 requested a review from a team as a code owner August 9, 2026 10:58
@coderabbitai

coderabbitai Bot commented Aug 9, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: abbe17c9-6b35-4250-8419-259e6cb72c39

📥 Commits

Reviewing files that changed from the base of the PR and between 62817dc and d5f7da6.

📒 Files selected for processing (1)
  • build/eidsca/Update-EidscaTests.ps1
🚧 Files skipped from review as they are similar to previous changes (1)
  • build/eidsca/Update-EidscaTests.ps1

📝 Walkthrough

Walkthrough

The PowerShell test generator normalizes CRLF and LF sequences to the platform newline format, trims trailing whitespace and blank lines, and writes the cleaned content.

Changes

Generated test newline normalization

Layer / File(s) Summary
Generator newline handling
build/eidsca/Update-EidscaTests.ps1
CreateFile and generated test output normalize line endings, trim trailing content, and write platform-specific newlines.

Estimated code review effort: 1 (Trivial) | ~5 minutes

Possibly related PRs

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly identifies a proposed fix for the failing EIDSCA generator test, despite a minor spelling error.
Description check ✅ Passed The description explains the failing test, records test results, completes the checklist, and states that no issue or documentation update applies.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@codacy-production

Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 2

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@build/eidsca/Update-EidscaTests.ps1`:
- Around line 451-454: Update both generated-file paths in Update-EidscaTests to
derive the newline separator from [System.Environment]::NewLine rather than
detecting it from template content. Keep the existing normalization flow, but
ensure all generated files use the host platform newline format regardless of
whether the input template uses LF or CRLF.
- Around line 451-454: Update the content-normalization flow in CreateFile so it
first converts all line endings to LF, trims trailing spaces and tabs plus
trailing blank lines, and only then converts LF to $newLine. Ensure
RemoveTrailingWhitespace operates on LF-normalized content before CRLF
conversion, preventing whitespace from remaining before carriage returns.
🪄 Autofix

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: 23dd20bc-53fc-4373-9ebe-82813b16c238

📥 Commits

Reviewing files that changed from the base of the PR and between be15529 and 62817dc.

📒 Files selected for processing (1)
  • build/eidsca/Update-EidscaTests.ps1

Comment thread build/eidsca/Update-EidscaTests.ps1 Outdated
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant