-
-
Notifications
You must be signed in to change notification settings - Fork 32.2k
gh-132502: Prototyping adding timestamps to tracebacks. #129337
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
Draft
gpshead
wants to merge
60
commits into
python:main
Choose a base branch
from
gpshead:traceback-timestamps
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from all commits
Commits
Show all changes
60 commits
Select commit
Hold shift + click to select a range
c5a9ccd
Proof of concept: Add timestamps to tracebacks.
gpshead 3dc00c2
`PYTHON_TRACEBACK_TIMESTAMPS=1` required to enable their display.
gpshead a05766f
skip timestamp on StopIteration - not an error
gpshead cdb67f0
include the timestamp in exception pickles.
gpshead 99ffc8a
os.environ not os.environb
gpshead c119a02
Cleaner struct layout.
gpshead bcc720b
Timestamp format configurability.
gpshead b065394
Plumb into exception subtypes; including pickling.
gpshead 09a547a
minor cleanups
gpshead daa752d
initial pass at documentation.
gpshead e7fab86
Fix doc references?
gpshead e8a6297
proper refcount cleanup in error cases.
gpshead 6809426
Merge branch 'main' into traceback-timestamps
gpshead 0d83447
Allow `PyErr_Display*` to emit timestamps as well.
gpshead 7c83ebf
Make the testsuite pass with timestamps turned on.
gpshead beadfb8
Docs docs docs docs docs
gpshead 354c5f0
docs make check
gpshead 33d20dd
docs typo
gpshead 2f72323
GIT
gpshead 7f7357d
docs: reword exceptions
gpshead d9d2b1f
vi PEBKAC reformatted traceback.rst? undo
gpshead 98b4593
more formatting messup undo
gpshead c9ad56d
more undo
gpshead 53b5500
reword some docs, add examples
gpshead 8043b80
REDO BEFORE MERGE: enable on some CI builds
gpshead 75072cb
Go full on -X traceback_timestamps command line flag.
gpshead eebec1d
Disable time collection when display is disabled.
gpshead 9ff3234
remove errant Doc temp db file
gpshead f30c74d
WIP: optional config string
gpshead 85496cf
WIP: no dict key for reduce when 0
gpshead 9c8eda4
Merge branch 'main' into traceback-timestamps
gpshead 6949cba
simplify `iso` format to not use datetime
gpshead b564e63
minor cleanups
gpshead e6199e3
post merge fixups
gpshead 4c031a6
fix stripping tests
gpshead 23e2538
test fixing when timestamps enabled
gpshead 98ae94f
lets run CI on more platforms with it enabled
gpshead 7d45424
duh why did my compiler allow that?
gpshead dde0f39
fix windows errors?
gpshead 5f7b930
force_not_colorized
gpshead 964bdd3
force utf8 for the entire test class
gpshead 5554b67
waste time dealing with bad unicode test env. life
gpshead 0f9bb1b
alignment SCIENCE
gpshead a55c3b1
errors="ignore" chicanery decode
gpshead d2d7583
Fix traceback_timestamps tests for cross-platform line endings
gpshead 84989bb
(╯°□°)╯︵ ┻━┻ Windows
gpshead b268c82
pedantic-NotIn-too
gpshead d0f95ba
Merge origin/main into traceback-timestamps
gpshead 52a1e25
Fix failing tests when traceback timestamps are enabled
gpshead 05d6f13
Add comprehensive tests for traceback timestamps feature
gpshead 1fc9c88
Reduce duplication in traceback timestamps tests
gpshead 4aaa4dc
ruff format the tests
gpshead ec22c19
Optimize exception pickle sizes when timestamps are disabled
gpshead 1b83faf
TESTSUBDIRS += our new dir for test_tools
gpshead 1ba3ed4
shakes fist at trailing spaces from claude
gpshead 1efbc2a
Merge branch 'main' into traceback-timestamps
gpshead bab3575
pre-commit import fixes
gpshead 77ffb5a
Complete traceback timestamps test coverage gaps
gpshead a0656ce
📝 Address PR code review comments for documentation and formatting
gpshead e4f54d4
Remove redundant no_color() context manager
gpshead 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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.
Uh oh!
There was an error while loading. Please reload this page.