CXuesong / WikiClientLibrary

/*🌻*/ Wiki Client Library is an asynchronous MediaWiki API client library targeting modern .NET platforms
https://github.com/CXuesong/WikiClientLibrary/wiki
Apache License 2.0
82 stars 16 forks source link

MediaWiki 1.19 test wiki is gone #83

Closed CXuesong closed 3 years ago

CXuesong commented 3 years ago

UT fails since https://github.com/CXuesong/WikiClientLibrary/runs/1972153408

[xUnit.net 00:04:01.19]     WikiClientLibrary.Tests.UnitTestProject1.Tests.GeneratorTests.WpTest2RandomGeneratorTests(endpoint: "https://mediawiki119.wikia.org/api.php", namespaces: [4, 12]) [FAIL]
  Failed WikiClientLibrary.Tests.UnitTestProject1.Tests.GeneratorTests.WpTest2RandomGeneratorTests(endpoint: "https://mediawiki119.wikia.org/api.php", namespaces: [4, 12]) [16 s]
  Error Message:
   System.Net.Http.HttpRequestException : Response status code does not indicate success: 410 (Gone).
  Stack Trace:
     at System.Net.Http.HttpResponseMessage.EnsureSuccessStatusCode()
   at WikiClientLibrary.Client.MediaWikiJsonResponseParser.ParseResponseAsync(HttpResponseMessage response, WikiResponseParsingContext context) in /home/runner/work/WikiClientLibrary/WikiClientLibrary/WikiClientLibrary/Client/MediaWikiJsonResponseParser.cs:line 42
   at WikiClientLibrary.Client.WikiResponseMessageParser`1.WikiClientLibrary.Client.IWikiResponseMessageParser<T>.ParseResponseAsync(HttpResponseMessage response, WikiResponseParsingContext context) in /home/runner/work/WikiClientLibrary/WikiClientLibrary/WikiClientLibrary/Client/WikiResponseMessageParser.cs:line 65
   at WikiClientLibrary.Client.WikiClient.SendAsync[T](String endPointUrl, WikiRequestMessage message, IWikiResponseMessageParser`1 responseParser, CancellationToken cancellationToken) in /home/runner/work/WikiClientLibrary/WikiClientLibrary/WikiClientLibrary/Client/WikiClient.cs:line 287
   at WikiClientLibrary.Client.WikiClient.SendAsync[T](String endPointUrl, WikiRequestMessage message, IWikiResponseMessageParser`1 responseParser, CancellationToken cancellationToken) in /home/runner/work/WikiClientLibrary/WikiClientLibrary/WikiClientLibrary/Client/WikiClient.cs:line 279
   at WikiClientLibrary.Client.WikiClient.InvokeAsync[T](String endPointUrl, WikiRequestMessage message, IWikiResponseMessageParser`1 responseParser, CancellationToken cancellationToken) in /home/runner/work/WikiClientLibrary/WikiClientLibrary/WikiClientLibrary/Client/WikiClient.cs:line 163
   at WikiClientLibrary.Sites.WikiSite.InvokeMediaWikiApiAsync[T](WikiRequestMessage message, IWikiResponseMessageParser`1 responseParser, Boolean suppressAccountAssertion, CancellationToken cancellationToken)
   at WikiClientLibrary.Sites.WikiSite.RefreshSiteInfoAsync() in /home/runner/work/WikiClientLibrary/WikiClientLibrary/WikiClientLibrary/Sites/WikiSite.cs:line 203
   at WikiClientLibrary.Wikia.Sites.WikiaSite.RefreshSiteInfoAsync() in /home/runner/work/WikiClientLibrary/WikiClientLibrary/WikiClientLibrary.Wikia/Sites/WikiaSite.cs:line 146
   at WikiClientLibrary.Sites.WikiSite.<>c__DisplayClass18_0.<<-ctor>g__InitializeAsync|1>d.MoveNext() in /home/runner/work/WikiClientLibrary/WikiClientLibrary/WikiClientLibrary/Sites/WikiSite.cs:line 169
--- End of stack trace from previous location where exception was thrown ---
   at WikiClientLibrary.Tests.UnitTestProject1.WikiSiteTestsBase.CreateWikiSiteAsync(IWikiClient wikiClient, String url) in /home/runner/work/WikiClientLibrary/WikiClientLibrary/UnitTestProject1/WikiSiteTestsBase.cs:line 154
   at WikiClientLibrary.Tests.UnitTestProject1.Tests.GeneratorTests.WpTest2RandomGeneratorTests(String endpoint, Int32[] namespaces) in /home/runner/work/WikiClientLibrary/WikiClientLibrary/UnitTestProject1/Tests/GeneratorTests.cs:line 492
--- End of stack trace from previous location where exception was thrown ---

https://mediawiki119.wikia.org/

image

CXuesong commented 3 years ago

We need to find another MW site running MW 1.19, or consider dropping official support on MW 1.19. No automation test means possible regression may happen in the future.

We'll continue testing against WMF test wikis though.

CXuesong commented 3 years ago

After foraging on Fandom Developers on Discord, now I have the following candidates