-
-
Notifications
You must be signed in to change notification settings - Fork 480
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
Add option to only run short doctests #25270
Comments
comment:1
Attachment: bar.png |
This comment has been minimized.
This comment has been minimized.
comment:4
I have a first prototype now. If I set it to try to finish in 30s walltime and run on
As an extreme example, if let it test everything in |
Branch: u/saraedum/25270 |
Author: Julian Rüth |
Commit: |
New commits:
|
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Work Issues: needs doctests |
comment:9
I still need some doctests for this but if somebody already wants to comment on this, I would be very happy about some feedback. Somehow my counting is off quite a bit. I am not entirely sure what's the problem. |
This comment has been minimized.
This comment has been minimized.
Changed work issues from needs doctests to needs doctests, is the patchbot happy? |
comment:12
I am quite unhappy with the spaghetti code that I added here but I don't really see a much better way. I have a feeling that we cramped a lot of features already into Python's doctesting framework and that it was never meant to be extended like that. A proper plugin system would have been cool but I guess it's too late for that ;) |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:14
Needs to be rebased it looks like. I can't wait to see this working though, and if I have some ideas how to improve the implementation I'll give them. |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:16
Ok. I rebased this. |
comment:17
I wish we also had a way to prioritize tests. E.g. we could mark a test as |
Reviewer: Erik Bray |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:56
embray: I sometimes get
I guess this happens when the tests in Since you're listed as the author of that file, any clue what's going on here? |
comment:57
Hmm--I think maybe, if nothing else, there should be a |
comment:58
Strange, though, since looking at |
comment:59
For the atexit tests, does that happen if you test |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:62
embray, I don't think we should put too much effort into fixing this rather obscure problem as it is going to go away with Python 3 anyway. I added a simple workaround (untested.) Would you be fine with something like this? New commits:
|
Branch pushed to git repo; I updated commit sha1. New commits:
|
Changed work issues from is the patchbot happy ⇒ positive review to is the patchbot happy? |
comment:65
Yes, I think this is entirely reasonable. Relying on module-level globals that may already be set to Positive review from me pending patchbot results, but I think it will be fine... |
Changed branch from u/saraedum/25270 to |
comment:67
I assume? |
Changed commit from |
The attached picture shows how many modules (horizontal) you can run in how many CPU minutes (vertical). So, for example, in 40 CPU minutes (i.e., 10 wall minutes on my laptop) I can run all the doctests in 80% of all Sage modules. In 4 CPU minutes, I can doctest 50% of all Sage modules.
This ticket implements a
--short [SECONDS]
switch which runs as many doctests as possible (from the top of each module) in SECONDS (default 300).This gives us a quick way to check that a change did not break things too terribly. For example, when I work on p-adics, I would probably do:
sage -tp --short 30 src/sage/rings/padics
frequently. Once I am happy with my changes, I could dosage -tp --short src/sage/rings
and a finalsage -tp --short --all
before I leave the rest to the patchbot.Here is an example:
CC: @embray @nthiery @roed314
Component: doctest framework
Work Issues: is the patchbot happy?
Author: Julian Rüth
Branch:
a4614ab
Reviewer: Erik Bray
Issue created by migration from https://trac.sagemath.org/ticket/25270
The text was updated successfully, but these errors were encountered: