| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
|
This is a possible breaking change. Some job ending states that used to be 'Stopped' with Exception, will now be 'Failed' with Exception. But I feel this is the correct behavior. The only time a 'Stopped' state is not an error is if there is no associated exception, or the exception is 'PipelineStopped'. |
Sorry, something went wrong.
|
PoshChan-Bot (@PoshChan) Please retry windows |
Sorry, something went wrong.
|
Paul Higinbotham (@PaulHigin), successfully started retry of PowerShell-CI-Windows |
Sorry, something went wrong.
There was a problem hiding this comment.
are there tests that can be added for this?
Sorry, something went wrong.
|
James Truher (@JamesWTruher) No, the repro is difficult to automate and still get the right error path. We don't need another fragile test. |
Sorry, something went wrong.
|
@PowerShell/powershell-committee reviewed this and agree that the scenario where the pipeline is stopped with an error that is not a PipelineStoppedException it is a failure case, so this change is accepted. |
Sorry, something went wrong.
|
Travis Plunk (@TravisEz13) This change created a subtle regression. Please hold off merging until I have pushed the fix. |
Sorry, something went wrong.
|
Steve Lee (@SteveL-MSFT) , James Truher (@JamesWTruher) Please re-review the changes. I have added a fix to the regression and also fixed the Stop-Job tests so that they will catch bad final state. The regression was due to the pipeline returning a RemoteException exception on a pipeline stop instead of a PipelineStoppedException exception I was previously checking. A pipeline stopped RemoteException will contain an ErrorRecord with FQEID of 'PipelineStopped'. The Stop-Job tests were not catching the incorrect final state because they ran before the job was actually running. Fix is to wait until job is running and returning data to the client. |
Sorry, something went wrong.
|
Steve Lee (@SteveL-MSFT) Please re-review. |
Sorry, something went wrong.
|
Steve Lee (@SteveL-MSFT) ping... |
Sorry, something went wrong.
|
🎉v7.0.0-rc.3 has been released which incorporates this pull request.:tada: Handy links: |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
PR Summary
This change fixes a problem in Invoke-Command against a remote session and that session is abruptly terminated, but no error is reported.
PR Context
In certain conditions, an abrupt session termination results in an Invoke-Command pipeline state going to 'Stopped' with an exception. Currently this is ignored in job processing because a user initiated stop is not an error. But a stopped state due to an error that is not 'PipelineStoppedException' (such as a remote transport exception) should not be ignored, but instead be treated as an error so that Invoke-Command will report it.
The fix is to update job error processing to correctly handle this error state.
Repro steps
PR Checklist