#5542 (Two VAT doctests fail because generated VAT numbers differ)
by Luc Saffre · in Developers · assigned to Luc Saffre
Résumé
The book test suite on GL is failing with this message:
=========================== short test summary info ============================
FAILED docs/plugins/bevats.rst::bevats.rst
FAILED docs/plugins/eevat.rst::eevat.rst
======= 2 failed, 286 passed, 1 skipped, 1 warning in 1902.39s (0:31:42) =======
Concepts sous-jacents
Commentaires
- 2 ans, 6 mois ago by Luc Saffre about #5542 (Two VAT doctests fail because generated VAT numbers differ) : Yes, the two doctests (bevats.rst and eevat.rst) now finally [url gitlab.com/lino-framework/book/-/jobs/6674327589 pass on gitlab]. Uff! This was a tough one!
- 2 ans, 6 mois ago by Luc Saffre about #5542 (Two VAT doctests fail because generated VAT numbers differ) : I added the [url luc.lino-framework.org/blog/2024/0416.html#explanation explanation to my blog entry].
- 2 ans, 6 mois ago by Luc Saffre about #5542 (Two VAT doctests fail because generated VAT numbers differ) : We must create our own random generator in lino_xl.lib.vat.choicelists to make sure it's not called again by other places.
- 2 ans, 6 mois ago by Luc Saffre about #5542 (Two VAT doctests fail because generated VAT numbers differ) : I think I got it.
- 2 ans, 6 mois ago by Luc Saffre about #5542 (Two VAT doctests fail because generated VAT numbers differ) : I added another diagnostic message, without much hope that it will bring new information...
- 2 ans, 6 mois ago by Luc Saffre about #5542 (Two VAT doctests fail because generated VAT numbers differ) : Another day of investigations without result. I wrote a story about it [url luc.lino-framework.org/blog/2024/0416.html in my blog].
- 2 ans, 6 mois ago by Luc Saffre about #5542 (Two VAT doctests fail because generated VAT numbers differ) : I poked around in the code, but no idea yet...
- 2 ans, 6 mois ago by Luc Saffre about #5542 (Two VAT doctests fail because generated VAT numbers differ) : The temporary prologue of book/docs/plugins/vat.rst does NOT fail. Which shows that the random is *not* the reason of our difference, it must come from somewhere else. But from where?
- 2 ans, 6 mois ago by Luc Saffre about #5542 (Two VAT doctests fail because generated VAT numbers differ) : I added a temporary code snippet to docs/plugins/vat.rst in book. @8lurry please pull and then run "doctest docs/plugins/vat.rst" on your machine. I am curious to see whether it passes. (I guess that the sequence is different on your machine... but I am not sure...)
- 2 ans, 6 mois ago by Luc Saffre about #5542 (Two VAT doctests fail because generated VAT numbers differ) : I am afraid it is because we use the random module to generate fictive VAT numbers. I just pushed a last attempt, which probably is not a solution. I guess that we need to generate a list of pseudo-random numbers. We might also use +ELLIPSIS in those test blocks, though that would be ugly.
- 2 ans, 6 mois ago by Luc Saffre about #5542 (Two VAT doctests fail because generated VAT numbers differ)
- 2 ans, 6 mois ago by Luc Saffre about #5542 (Two VAT doctests fail because generated VAT numbers differ) : Created new Ticket #5542 (Two VAT doctests fail because generated VAT numbers differ).