这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@brettfo
Copy link
Member

@brettfo brettfo commented Jun 3, 2019

Some tests have been flaky because HtmlDocument.DocumentNode was null which indicates an issue parsing the HTML. In an attempt to discover the issue I've added a wrapper that reports the parsed HTML if DocumentNode was null.

Marking as work-in-progress because I expect to reset the tests repeatedly.

@brettfo brettfo closed this Jun 3, 2019
@brettfo brettfo reopened this Jun 3, 2019
@brettfo brettfo closed this Jun 4, 2019
@brettfo brettfo reopened this Jun 4, 2019
@brettfo brettfo closed this Jun 4, 2019
@brettfo brettfo reopened this Jun 4, 2019
@brettfo
Copy link
Member Author

brettfo commented Jun 5, 2019

The null value seems to come from .SelectSingleNode(). One failing test which was looking for "//pre/code" had the HTML contents of:

<div class="notification is-danger">
  <svg ...>
  </svg>
  Package named "console" not found.
</div>

So the missing packages appears to be the root cause of most test flakiness.

@jonsequitur
Copy link
Contributor

I think this is a concurrency issue on creation of these package assets on-disk during test runs.

@brettfo brettfo changed the title [WIP] check for null HtmlNode and report error check for null HtmlNode and report error Aug 9, 2019
@brettfo brettfo merged commit a0c372d into dotnet:master Aug 9, 2019
@brettfo brettfo deleted the test-stability branch August 9, 2019 20:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants