Improve evaluate performance, throttling resilience, and add build to… - #1
Merged
Conversation
…oling Performance and correctness: - Cache phishing-resistant auth-strength classification at module scope via Get-PhishingResistantStrengthId so comprehensive runs make one Graph call instead of one per scenario - Replace O(n^2) array += accumulation in Get-CATenantUsers and Get-CAPolicy with List[object].AddRange, and trim MaxUsers in place - Honor the server Retry-After header with a bounded retry loop on 429 so throttled evaluations are retried rather than recorded as permanent errors (new Get-RetryAfterSeconds helper, -MaxThrottleRetries parameter) - Fix verbose paging log that fired almost every page instead of every ~1000 - Rename $pId to $policyId to avoid the readonly automatic variable Tooling and conventions: - Add build.ps1 (Analyze/Test/Build/CI/Clean) and PSScriptAnalyzerSettings.psd1 - Add GitHub Actions CI workflow running Analyze -> Test -> Build - Define module-scope EvaluateUri constant for the beta endpoint - Align manifest CompanyName with workspace convention - Add Pester coverage for the two new helpers; document build flow in README Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
…oling
Performance and correctness:
Tooling and conventions: