[ 
https://issues.apache.org/jira/browse/LUCENE-10167?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17427630#comment-17427630
 ] 

Dawid Weiss commented on LUCENE-10167:
--------------------------------------

I added Windows and MacOS to the job matrix but this results in odd errors, 
like this one from Windows:
{code:java}
org.apache.lucene.misc.store.TestDirectIODirectory > testDeleteFile FAILED
344    java.lang.AssertionError
345        at 
__randomizedtesting.SeedInfo.seed([7EC297CB9412B507:155080758322F0EC]:0)
346        at org.junit.Assert.fail(Assert.java:87)
347        at org.junit.Assert.assertTrue(Assert.java:42)
348        at org.junit.Assert.assertFalse(Assert.java:65)
349        at org.junit.Assert.assertFalse(Assert.java:75)
350        at 
org.apache.lucene.store.BaseDirectoryTestCase.testDeleteFile(BaseDirectoryTestCase.java:123)
 {code}
or:
{code:java}
org.apache.lucene.misc.store.TestDirectIODirectory > 
testCreateOutputForExistingFile FAILED
392    java.nio.file.AccessDeniedException: 
D:\a\lucene\lucene\lucene\misc\build\tmp\tests-tmp\lucene.misc.store.TestDirectIODirectory_7EC297CB9412B507-001\tempDir-005\file
393        at 
__randomizedtesting.SeedInfo.seed([7EC297CB9412B507:F43630B8F8DD222E]:0)
394        at 
java.base/sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:89)
395        at 
java.base/sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:103)
396        at 
java.base/sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:108)
397        at 
java.base/sun.nio.fs.WindowsFileSystemProvider.newFileChannel(WindowsFileSystemProvider.java:120)
398        at 
org.apache.lucene.mockfile.FilterFileSystemProvider.newFileChannel(FilterFileSystemProvider.java:200)
399        at 
org.apache.lucene.mockfile.DisableFsyncFS.newFileChannel(DisableFsyncFS.java:44)
400        at 
org.apache.lucene.mockfile.FilterFileSystemProvider.newFileChannel(FilterFileSystemProvider.java:200)
401        at 
org.apache.lucene.mockfile.HandleTrackingFS.newFileChannel(HandleTrackingFS.java:171)
402        at 
org.apache.lucene.mockfile.HandleTrackingFS.newFileChannel(HandleTrackingFS.java:171)
403        at 
org.apache.lucene.mockfile.FilterFileSystemProvider.newFileChannel(FilterFileSystemProvider.java:200)
404        at java.base/java.nio.channels.FileChannel.open(FileChannel.java:292)
405        at java.base/java.nio.channels.FileChannel.open(FileChannel.java:345)
406        at 
org.apache.lucene.misc.store.DirectIODirectory$DirectIOIndexOutput.<init>(DirectIODirectory.java:220)
407        at 
org.apache.lucene.misc.store.DirectIODirectory.createOutput(DirectIODirectory.java:179)
408        at 
org.apache.lucene.store.BaseDirectoryTestCase.testCreateOutputForExistingFile(BaseDirectoryTestCase.java:1217)
 {code}
I can't reproduce these. Perhaps you need a slower computer (and these are 
race-conditions on the file system) or the Windows VMs are somehow configured 
differently.

> Run tests on PRs (and pushes to the main branch)
> ------------------------------------------------
>
>                 Key: LUCENE-10167
>                 URL: https://issues.apache.org/jira/browse/LUCENE-10167
>             Project: Lucene - Core
>          Issue Type: Improvement
>            Reporter: Dawid Weiss
>            Priority: Minor
>         Attachments: screenshot-1.png
>
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> I did a quick experiment here:
> https://github.com/dweiss/lucene/actions/runs/1332075715
> Basically forced gradle to run with 2 workers (instead of the 
> default-calculated 1) and ran two concurrent phases: checks without tests and 
> just tests. Seems to work just fine. Should we add it?



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to