You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucenenet.apache.org by GitBox <gi...@apache.org> on 2021/11/18 23:20:46 UTC

[GitHub] [lucenenet] NightOwl888 opened a new issue #545: Failing Test: Lucene.Net.Index.TestDuelingCodecs::TestEquals()

NightOwl888 opened a new issue #545:
URL: https://github.com/apache/lucenenet/issues/545


   > For information about how to help us debug tests, see #269.
   
   This test has been failing randomly for some time but has not previously been documented. The test uses `SimpleText` to compare against all other codecs to ensure they return the same results.
   
   Unfortunately the patch in #541 wasn't the only contributor to this failure.
   
   I have been able to repeat it once with the following info seed and culture info (it failed under x64 .net5.0 Windows that time), but it doesn't fail consistently.
   
   ```
   Lucene.Net.Tests._E-I - net5.0 - x86 - Windows | Tests failed: 1, passed: 531, ignored: 23TestEquals
   Failed 15m ago on WIN-J8N18B59RQM
   Duration0:00:02.174
   Ownernot available
   Date started11/19/2021, 5:47:42 AM
   Date completed11/19/2021, 5:47:44 AM
   Failing since7m ago
   Failing since build4.8.0-ci0000002638
   
   Expected: [31], Actual: [32]
   
   left: SimpleText / right: Lucene46: {titleTokenized=PostingsFormat(name=Asserting), date=PostingsFormat(name=Asserting), body=Pulsing41 (freqCutoff=12, minBlockSize=31, maxBlockSize=87), docid=PostingsFormat(name=Asserting), title=FST41}, docValues:{sparsenumeric=DocValuesFormat(name=Disk), sortedset=DocValuesFormat(name=Asserting), titleDV=DocValuesFormat(name=Disk)}
   
   To reproduce this test result:
   
   Option 1:
   
   Apply the following assembly-level attributes:
   
   [assembly: Lucene.Net.Util.RandomSeed(0x1993c83d13f71207L)]
   [assembly: NUnit.Framework.SetCulture("om")]
   
   Option 2:
   
   Use the following .runsettings file:
   
   <RunSettings>
     <TestRunParameters>
       <Parameter name="tests:seed" value="0x1993c83d13f71207" />
       <Parameter name="tests:culture" value="om" />
     </TestRunParameters>
   </RunSettings>
   
   See the .runsettings documentation at: https://docs.microsoft.com/en-us/visualstudio/test/configure-unit-tests-by-using-a-dot-runsettings-file.
   at Lucene.Net.Util.LuceneTestCase.AssertTermsEnumEquals(String info, IndexReader leftReader, TermsEnum leftTermsEnum, TermsEnum rightTermsEnum, Boolean deep) in D:\a\1\s\src\Lucene.Net.TestFramework\Util\LuceneTestCase.cs:line 2732
   at Lucene.Net.Util.LuceneTestCase.AssertTermsEquals(String info, IndexReader leftReader, Terms leftTerms, Terms rightTerms, Boolean deep) in D:\a\1\s\src\Lucene.Net.TestFramework\Util\LuceneTestCase.cs:line 2672
   at Lucene.Net.Util.LuceneTestCase.AssertFieldsEquals(String info, IndexReader leftReader, Fields leftFields, Fields rightFields, Boolean deep) in D:\a\1\s\src\Lucene.Net.TestFramework\Util\LuceneTestCase.cs:line 2623
   at Lucene.Net.Util.LuceneTestCase.AssertReaderEquals(String info, IndexReader leftReader, IndexReader rightReader) in D:\a\1\s\src\Lucene.Net.TestFramework\Util\LuceneTestCase.cs:line 2580
   at Lucene.Net.Index.TestDuelingCodecs.TestEquals() in D:\a\1\s\src\Lucene.Net.Tests\Index\TestDuelingCodecs.cs:line 176
   ```
   
   > NOTE: I am working on a PR to fix the random seed functionality #288 now, and the settings in the error message don't exist in master yet.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@lucenenet.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [lucenenet] NightOwl888 closed issue #545: Failing Test: Lucene.Net.Index.TestDuelingCodecs::TestEquals()

Posted by GitBox <gi...@apache.org>.
NightOwl888 closed issue #545:
URL: https://github.com/apache/lucenenet/issues/545


   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@lucenenet.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org