[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Tests failing in many chroots but passing in some others



Hi Paul,

Le 17/10/2020 à 08:10, Paul Gevers a écrit :
> Hi Pierre,
> 
> On 16-10-2020 22:49, Pierre Gruet wrote:
>> I have just found this was due to a file not being closed with the
>> close() method. Afterwards some other tests were counting open files and
>> failing because of this file not being closed whereas they expected it.
>> I guess the Java garbage collector was closing the file early enough on
>> some computers, and not on others.
>>
>> Maybe this case will help in the future when meeting other such situations.
> 
> It would be awesome if we would document this on the wiki. We have the
> namespace https://wiki.debian.org/ContinuousIntegration/. Can I ask you
> to create a new page with CommonPatternsInFlakyTests (or something like
> that, better name welcome)?
> 
> Paul
> 

I could not think of a better name and thus took this one. I created the
page, documented my case and wrote a short introduction about the goal
of the page.
Feel free to modify anything to better fit your expectations about this
document.

Best,
Pierre


Reply to: