-
-
Notifications
You must be signed in to change notification settings - Fork 487
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
Use CPU time for --warn-long #36226
Merged
Merged
Use CPU time for --warn-long #36226
Changes from 35 commits
Commits
Show all changes
37 commits
Select commit
Hold shift + click to select a range
9b419f5
src/sage/doctest: use CPU time for --warn-long
orlitzky 4ab2c28
src/doc/en/developer/doctesting.rst: we use CPU time now
orlitzky 3701d9d
src/bin/sage{,-runtests}: mention CPU time in --warn-long
orlitzky 2c62590
src/sage/doctest/control.py: decrease standard --warn-long limit
orlitzky c460a5a
src/sage/doctest/forker.py: report verbose doctest success in CPU time
orlitzky fce17d7
src/sage/doctest/util.py: cputime for pexpect interfaces on Linux/BSD
orlitzky 1334027
src/sage/doctest/forker.py: report both cpu/wall times for long tests
orlitzky 945665c
src/sage/doctest: specify walltime in per-file doctest report
orlitzky eb9f36d
src/sage/doctest/forker.py: specify walltime in sage -t --verbose output
orlitzky ff19804
src/sage/doctest/control.py: further reduce the --warn-long limit
orlitzky 42e51fe
src/sage/doctest/util.py: update a comment
orlitzky f949101
src/sage/doctest/util.py: refactor exception handling
orlitzky db1eba0
src/sage/doctest/control.py: update _init_warn_long() docstring
orlitzky 6120b12
src/sage/doctest/util.py: delete a wandering "and"
orlitzky a79c88f
src/sage/doctest/util.py: add doctests for Timer._quick_cputime()
orlitzky 6d118a7
src/sage/doctest/util.py: improve docstring for Timer._pid_cpu_seconds()
orlitzky 738f59c
src/sage/doctest/util.py: reword docstring to make flake8 happy
orlitzky 9b59fa5
src/sage/doctest/control.py: update the output from one more test
orlitzky ec866e0
src/sage/doctest/reporting.py: spaces around % for pycodestyle
orlitzky 711abfa
src/sage/doctest/util.py: fix _pid_cpu_seconds doctest on macOS
orlitzky 7f9d32f
pkgs/sagemath-repl/MANIFEST.in: include sage.interfaces.{cleaner,quit}
orlitzky 6bc91b5
sage/interfaces/{cleaner,quit}.py: tag as distribution = sagemath-repl
orlitzky f3b90c1
pkgs/sagemath-repl/pyproject.toml.m4: add package sage.interfaces
orlitzky d4d8b22
src/sage/doctest/util.py: add error messages and test one of them
orlitzky 2bdd10c
src/sage/doctest/util.py: improve a comment
orlitzky 4a9fdf2
src/sage/doctest/util.py: refactor _quick_cputime() for testability
orlitzky f2cf28c
src/sage/doctest/util.py: refactor for testability
orlitzky b7f0631
src/sage/doctest/util.py: test _proc_stat_cpu_seconds() error paths
orlitzky 63db6ab
src/sage/doctest/util.py: support macOS if psutil is installed
orlitzky 0c58518
src/sage/doctest/util.py: ignore ZombieProcess errors from psutil
orlitzky db01308
src/sage/doctest/util.py: avoid dependency on sage.misc.timing.walltime
orlitzky 832c792
src/sage/doctest/forker.py: remove old python 2 workaround
orlitzky 993327b
src/sage/doctest/util.py: handle NoSuchProcess from psutil, too
orlitzky 7aa6be8
src/sage/doctest/util.py: put "import" inside the "try"
orlitzky cf55b38
src/sage/doctest/forker.py: re-raise SignalErrors
orlitzky 660e8ca
sage/doctest/control.py: deprecate second_on_modern_computer()
orlitzky efa14c3
src/sage/doctest/forker.py: change the slow doctest warning punctuation
orlitzky File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This method can now be deleted, right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, but it's a "public" function, so I didn't want to start an argument over the deprecation policy.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it is safe to consider everything in doctest as private. But as a compromise, at least add a deprecation warning so that this can be removed in 1year?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done