-
Notifications
You must be signed in to change notification settings - Fork 8.1k
Add WebListener Verbosity and CI VM sleep Workaround #6013
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
daxian-dbw
merged 3 commits into
PowerShell:master
from
markekraus:WebListenerStartupIssue
Jan 31, 2018
Merged
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can
dotnet runfail here? Should we check a return code or the job return it automatically? Do we get this in$initStatus- if so we should change logic below for ending loop.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes.
dotnet runcan fail here if somehow the SDK or source code is corrupt. We would see that in the output section of the new throw message. In fact, we should already see that in the current code before this PR.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't see any benefit in changing the current logic. the timeout is 15 seconds. Failing early shaves off maybe a few seconds but adds complexity that could result in false fails or false successes. I say we leave it alone.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well, my understanding is that if we don't get
$initCompleteMessagewe in any case get timeout error and a native error code which led to the lack of$initCompleteMessage.I suggest checking this out. Could you please push a temporary commit to emulate an error in WebListener startup?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@iSazonov No. we were seeing no output at all when this happens which was indicating that dotent was either not running at all or was running and hung without any output. Even when it fails there is stdout output so we should have seen at least something. instead, we were simply timing out.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
I don't see our message "'WebListener did not start before the timeout was reached ..." in logs.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yea.. erm..
-Forceis not present onStop-Jobso that syntax error was popping up instead as it was hit first, so thethrowmessage never made it through. I have corrected and repushed. I also had to change the temporary throw WebListener.. it wasn't compiling due to the unreachable code...There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
https://ci.appveyor.com/project/PowerShell/powershell/build/v6.1.0-preview.7742#L2508
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Opened #6020 to track the issue where one of the describe blocks is missing
Start-WebListenerThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good!