GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||
GeezerVison is showing github.com — Replace HttpListener Response Tests with WebListener by markekraus · Pull Request #5540 · PowerShell/PowerShell Conversation
Contributor
This should alleviate some of the macOS HttpListener related failures.
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
5 tasks done
|
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Is it ok to use explicit port?
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
In this case, the port is not used. The header is echoed back like so:
Link: <http://localhost:8080/PowerShell?test=linkheader&maxlinks=5&linknumber=1>; rel="self"
Link: <http://localhost:8080/PowerShell?test=linkheader&maxlinks=5&linknumber=2>; rel="next"
Link: <http://localhost:8080/PowerShell?test=linkheader&maxlinks=5&linknumber=5>; rel="last"
and then the test is to ensure the RelationLink.Count is 3 and the the exact urls are provided. These URLs could be anything for this test, but since the linkheader API still lives on HttpListener and not WebListener, I kept the URLs as is so they can actually be useful if you manually repro the test.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Could you please explain why we want to remove these tests?
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
I did in the PR description.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
We can remove the BeforeAll .
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
fixed
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Please remove the extra line.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
fixed
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
We never use the formatting.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Do i really need to have this all on one line where you have to scroll for an eternity to see it?
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
I believe we use the pattern:
if (Request.Query.TryGetValue("statuscode", out statusCodes) && Int32.TryParse(statusCodes.FirstOrDefault(), out statusCode)) { ... }
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
fixed
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Mark Kraus (@markekraus) Could you please rebase to pass CI Appveyor? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Ilya (@iSazonov) Rebase wont help this one. It already picked up #5554 in the last empty commit to re-run CI. The problem now is fail in #5567 (which is actually a dup of an older issue where I noted the same behavior randomly happening). I will rebase anyway in hopes that the WMF links are working now and we don't find some other transient test issue in the feature tests. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
f256997 to
26d4ebe
Compare
|
The test run got a hard failure: Mark Kraus (@markekraus) I'm not sure how the |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Is there some reason we don't run the feature tests on every PR? I run into so many CI fails because most of the web cmdlet tests are gated behind the feature tag. Changes made in other PR's that affect the Feature tests are not being properly vetted. In the past even my own PRs have been approved with broken feature tests. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
Feature test run takes more time and not every PR needs the full feature test run, so it's not on by default. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Dan Travison (@dantraMSFT) Have you any ideas why the PSEtwLog is activated from WebListener? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
PSEtwLog is not being activated from WebListener... indicates that the Line 960 in 7dce411
WebListener is not being run at that point. and the compile appears to be successful This is failing sometime after |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
The root cause of the loading failure was that one of our team members uploaded a |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
thanks. This PR shouldn't have anything outstanding on it. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
* Add Response Controller * [Feature] Replace HttpListener Response tests with WebListener
* Add Response Controller * [Feature] Replace HttpListener Response tests with WebListener
* Add Response Controller * [Feature] Replace HttpListener Response tests with WebListener
* Add Response Controller * [Feature] Replace HttpListener Response tests with WebListener
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.