Skip to content
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

Print stacktrace for frozen tests #7545

Closed
wants to merge 3 commits into from

Conversation

drew2a
Copy link
Contributor

@drew2a drew2a commented Jul 14, 2023

Test PR

print by pytest:

Thread 0x00001ab8 (most recent call first):
  File "C:\hostedtoolcache\windows\Python\3.8.10\x64\lib\threading.py", line 306 in wait
  File "C:\hostedtoolcache\windows\Python\3.8.10\x64\lib\threading.py", line 558 in wait
  File "C:\hostedtoolcache\windows\Python\3.8.10\x64\lib\threading.py", line 1252 in run
  File "c:\users\runneradmin\.virtualenvs\.venv\lib\site-packages\sentry_sdk\integrations\threading.py", line 70 in run
  File "C:\hostedtoolcache\windows\Python\3.8.10\x64\lib\threading.py", line 932 in _bootstrap_inner
  File "C:\hostedtoolcache\windows\Python\3.8.10\x64\lib\threading.py", line 890 in _bootstrap
Thread 0x00000730 (most recent call first):
  File "C:\hostedtoolcache\windows\Python\3.8.10\x64\lib\ssl.py", line 1099 in read
  File "C:\hostedtoolcache\windows\Python\3.8.10\x64\lib\ssl.py", line 1241 in recv_into
  File "C:\hostedtoolcache\windows\Python\3.8.10\x64\lib\socket.py", line 669 in readinto
  File "C:\hostedtoolcache\windows\Python\3.8.10\x64\lib\http\client.py", line 268 in _read_status
  File "C:\hostedtoolcache\windows\Python\3.8.10\x64\lib\http\client.py", line 307 in begin
  File "C:\hostedtoolcache\windows\Python\3.8.10\x64\lib\http\client.py", line 1344 in getresponse
  File "c:\users\runneradmin\.virtualenvs\.venv\lib\site-packages\sentry_sdk\integrations\stdlib.py", line 126 in getresponse
  File "c:\users\runneradmin\.virtualenvs\.venv\lib\site-packages\urllib3\connection.py", line 454 in getresponse
  File "c:\users\runneradmin\.virtualenvs\.venv\lib\site-packages\urllib3\connectionpool.py", line 536 in _make_request
  File "c:\users\runneradmin\.virtualenvs\.venv\lib\site-packages\urllib3\connectionpool.py", line 790 in urlopen
  File "c:\users\runneradmin\.virtualenvs\.venv\lib\site-packages\urllib3\poolmanager.py", line 443 in urlopen
  File "c:\users\runneradmin\.virtualenvs\.venv\lib\site-packages\urllib3\_request_methods.py", line 217 in 

...

extended (our) print:

Threads info:
========================================
4028: MainThread
========================================
[...]\.venv\lib\site-packages\pony\orm\dbapiprovider.py:, line 241, in commit
    connection.commit()
    --------------------
	provider = <pony.orm.dbproviders.sqlite.SQLiteProvider object at 0x000001D218625610>
	connection = <sqlite3.Connection object at 0x000001D2184CAE40>
	cache = <pony.orm.core.SessionCache object at 0x000001D218646D00>
	core = <module 'pony.orm.core' from 'c:\\users\\runneradmin\\.virtualenvs\\.venv\\lib\\site-packages\\pony\[...]
    --------------------
 [...]\.venv\lib\site-packages\pony\orm\dbapiprovider.py:, line 55, in wrap_dbapi_exceptions
    try: return func(provider, *args, **kwargs)
    --------------------
	func = <function DBAPIProvider.commit at 0x000001D2111CA1F0>
	provider = <pony.orm.dbproviders.sqlite.SQLiteProvider object at 0x000001D218625610>
	args = (<sqlite3.Connection object at 0x000001D2184CAE40>, <pony.orm.core.SessionCache object at 0x000001D2[...]
	kwargs = {}
	dbapi_module = <module 'sqlite3' from 'C:\\hostedtoolcache\\windows\\Python\\3.8.10\\x64\\lib\\sqlite3\\__init__.py[...]
	should_retry = False
    --------------------
<string>:, line 2, in commit
    <source is unknown>
    --------------------
	provider = <pony.orm.dbproviders.sqlite.SQLiteProvider object at 0x000001D218625610>
	connection = <sqlite3.Connection object at 0x000001D2184CAE40>
	cache = <pony.orm.core.SessionCache object at 0x000001D218646D00>
    --------------------
[...]v\lib\site-packages\pony\orm\dbproviders\sqlite.py:, line 402, in commit
    DBAPIProvider.commit(provider, connection, cache)
    --------------------
	provider = <pony.orm.dbproviders.sqlite.SQLiteProvider object at 0x000001D218625610>
	connection = <sqlite3.Connection object at 0x000001D2184CAE40>
	cache = <pony.orm.core.SessionCache object at 0x000001D218646D00>
	in_transaction = True
    --------------------
[...]rtualenvs\.venv\lib\site-packages\pony\orm\core.py:, line 1820, in commit
    cache.database.provider.commit(cache.connection, cache)
    --------------------
	cache = <pony.orm.core.SessionCache object at 0x000001D218646D00>
    --------------------
[...]rtualenvs\.venv\lib\site-packages\pony\orm\core.py:, line 378, in commit
    primary_cache.commit()
    --------------------
	caches = [<pony.orm.core.SessionCache object at 0x000001D218646D00>]
	cache = <pony.orm.core.SessionCache object at 0x000001D218646D00>
	primary_cache = <pony.orm.core.SessionCache object at 0x000001D218646D00>
	other_caches = []
	exceptions = []
    --------------------


...

@drew2a drew2a marked this pull request as ready for review July 14, 2023 11:25
@drew2a drew2a requested review from a team and xoriole and removed request for a team and xoriole July 14, 2023 11:25
@drew2a drew2a force-pushed the fix/win_ensure_gc branch 3 times, most recently from 6027bfa to 7dba255 Compare July 14, 2023 15:21
@drew2a drew2a changed the title Disable ensure_gc for windows Print stacktrace for frozen tests Jul 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant