-
-
Notifications
You must be signed in to change notification settings - Fork 572
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make categories doctests ready for random seeds #29971
Comments
Branch: public/29971 |
Commit: |
comment:2
I'm not sure if this is a good way to update the doctests. Essentially you are disabling a test by marking it random; the only way it can fail is if it raises an error. I think it would be better to invent a new doctest tag such as "# random_seed=0" or whatever is syntactically convenient. |
comment:3
To advertise my point about testing this stuff random #29961. In this instance, the What's the point about testing this only at seed 0. This doesn't tell us anything about how stable the method is. But I should add a test that illustrates that this is an element of the correct thing. |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:5
Is this better? I would say the test is now more valuable than the old tests. It tells us that |
comment:6
Replying to @kliem:
Well, my main point is that test coverage before and after this ticket are really incomparable. The change
|
comment:7
The other thing that one could do, if you really want to keep the old test, is add the old test in the This way one could keep the old test. |
comment:8
I'm not sure if I like explicit I would prefer a solution as proposed in comment 2 above if this can be done easily. |
comment:9
How will the solution as in comment two work out if all testings are done with random seed. That would basically mean, it is never tested as well. I know that |
comment:10
How about a Makefile target that runs tests with Or as @kliem suggests, double up on some doctests:
|
comment:11
I feel like the discussion is on the wrong ticket. This ticket is merely about making tests in categories pass with a different random seed than In principal a new flag The discussion about the big pictures mainly happened on sage-devel and on #29935 so far. I mean there are 23 tickets like this and we should really come up with a uniform way to do them all. I'm fine with doing those 23 tickets, but if the general set up should be different, I might need some help with #29962 or #29935 (one introduces random seed, one makes them default after 23 tickets made all parts of sage compatible to it). |
comment:12
I agree, discussing this on sage-devel and #29935 would probably be best. |
comment:13
Merge conflict. I also need to go through it again and check I respected the design decision in #29935. |
Changed branch from public/29971 to public/29971-reb |
New commits:
|
comment:15
Note that elements of |
Reviewer: Markus Wageringel |
comment:16
This seems to work. |
comment:17
Thank you. |
Changed branch from public/29971-reb to |
This ticket makes
pass for different values
n
than just0
.Depends on #29962
Component: doctest framework
Author: Jonathan Kliem
Branch/Commit:
d3457de
Reviewer: Markus Wageringel
Issue created by migration from https://trac.sagemath.org/ticket/29971
The text was updated successfully, but these errors were encountered: