You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Invoke-ZtGraphBatchRequest -Matched returns the original input in Argument on success, but its failure paths return the generated batch request instead (Invoke-ZtGraphBatchRequest.ps1:687-715). Therefore Argument.id here is the batch sequence ID, not the guest ID, and a server-side failure will identify the wrong guest. Resolve the guest from the matched result ID (or change the helper contract) before constructing this error.
The batching helper has known problems with missing responses and retries
This assessment now uses the batching helper directly. That helper has existing problems that are already being handled separately:
If Graph omits a response for one request in a batch, the helper sends that request again. There is no limit on these repeated attempts, so the assessment may keep running until a timeout or manual stop ends it. The offline check confirmed that the request was sent again, then stopped the next attempt deliberately. It did not leave the assessment running to demonstrate a hang.
The previous individual requests used the repository's Invoke-ZtRetry function (Invoke-ZtGraphRequestCache.ps1#L121). The batching helper calls the Graph SDK directly (Invoke-ZtGraphBatchRequest.ps1#L581), without that function. This removes the repository's additional retry handling when sending the batch fails. The SDK may still retry the batch itself; this review did not test those SDK retries against Graph.
The helper does retry individual requests that receive HTTP 429, meaning Graph is limiting the request rate. That behavior passed an offline check with no retry delay. It does not establish that temporary server errors, such as HTTP 503, will also be retried.
There are planned fixes for missing responses and failed-batch retries in PR #1584 follow-up. Those fixes should be separately tracked. They are relevant risks for this assessment, but they are not new defects introduced by PR #1592 or additional reasons to block it.
The reason will be displayed to describe this comment to others. Learn more.
LGTM
This branch has not been deployed
No deployments
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
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.
No description provided.