You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@jena.apache.org by "afs (via GitHub)" <gi...@apache.org> on 2024/03/11 19:10:42 UTC

[I] Unstable build on MS Windows in some environments. [jena]

afs opened a new issue, #2328:
URL: https://github.com/apache/jena/issues/2328

   ### Change
   
   Running the build and tests on MS Windows with github actions or on Apache Jenkins sometimes fails in jena-fuseki-main, jena-fuseki-webapp, jena-integration tests.
   
   What seems to be in common is test setup uses a single sever for the whole suite. This used to be necessary due to OS resources - it probably isn't anymore.
   
   
   
   ### Are you interested in contributing a pull request for this task?
   
   Yes


-- 
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: issues-unsubscribe@jena.apache.org.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@jena.apache.org
For additional commands, e-mail: issues-help@jena.apache.org


Re: [I] Unstable build on MS Windows in some environments. [jena]

Posted by "afs (via GitHub)" <gi...@apache.org>.
afs closed issue #2328: Unstable build on MS Windows in some environments.
URL: https://github.com/apache/jena/issues/2328


-- 
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: issues-unsubscribe@jena.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@jena.apache.org
For additional commands, e-mail: issues-help@jena.apache.org


Re: [I] Unstable build on MS Windows in some environments. [jena]

Posted by "afs (via GitHub)" <gi...@apache.org>.
afs commented on issue #2328:
URL: https://github.com/apache/jena/issues/2328#issuecomment-1997327939

   After running GH Windows actions repeatedly across the day and also running in batches of 3-5 at the same time, the test suite is less vulnerable with PR#2328 applied but not perfect.  
   
   Usually, it is an auth test that fails; not always the same auth test. In an auth related test, there are two HTTP requests - the first attempt results in a 401 and the second with the authentication credentials.
   
   But it is not exclusively auth tests failing. With groups of tests running at the same time, other tests that are a single HTTP action fail sometimes. I'm guessing that a group of tests do share some underlying hardware so a batch changes the load on the server -  this is consistent with the build action being more likely to fail at busy times of the EU-US working day.
   
   The common factor is creating a Fuseki Server in a Junit `@BeforeClass` and stopping it in `@AfterClass`.
   
   From previous Jena test stability experience, Windows behaves different to Linux in the timing of old ports being collected by the OS kernel and in the way that thread scheduling can cause longer pauses of a thread. That on its own isn't a deep explanation.
   


-- 
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: issues-unsubscribe@jena.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@jena.apache.org
For additional commands, e-mail: issues-help@jena.apache.org


Re: [I] Unstable build on MS Windows in some environments. [jena]

Posted by "afs (via GitHub)" <gi...@apache.org>.
afs commented on issue #2328:
URL: https://github.com/apache/jena/issues/2328#issuecomment-1989236243

   Rewriting the jena-fuseki-main auth tests to be fully independent of each other seems to have fixed the test for the GH action.
   
   


-- 
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: issues-unsubscribe@jena.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@jena.apache.org
For additional commands, e-mail: issues-help@jena.apache.org


Re: [I] Unstable build on MS Windows in some environments. [jena]

Posted by "afs (via GitHub)" <gi...@apache.org>.
afs commented on issue #2328:
URL: https://github.com/apache/jena/issues/2328#issuecomment-1991222038

   > Rewriting the jena-fuseki-main auth tests to be fully independent of each other seems to have fixed the test for the GH action.
   
   It fixes _some_ of the tests, and for the changes, all of the time so far.
   
   It looks like there is a timing/build-server load relationship. Tests fail more often at busy time of day. Which tests fail changes. They all involve HTTP auth which involves two HTTP requests - the initial request, which is rejected 401 and the resent with auth. 
   
   The test suite single Fuseki server seems to be exiting (`@AfterClass`) early.


-- 
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: issues-unsubscribe@jena.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@jena.apache.org
For additional commands, e-mail: issues-help@jena.apache.org