googleapis / googleapis/google-cloud-python

Segmentation Fault while running pytest with coverage

オープン
#15,912 コメント 1 件 リアクション 0 件 担当者 1 名 @harshachinta に割り当て済み GitHub で見る
api: spanner
主要言語
Python
スター
5.4k
フォーク
1.8k
平均マージ
3日 4時間
マージ済み PR(30日)
122

説明

I am using spanner python client to connect with spanner and my code is available and defined here: https://github.com/GoogleCloudPlatform/genai-databases-retrieval-app/blob/main/retrieval_service/datastore/providers/spanner_gsql.py

Test File: https://github.com/GoogleCloudPlatform/genai-databases-retrieval-app/blob/main/retrieval_service/datastore/providers/spanner_gsql_test.py

When I am trying to run integration testwithout coverage it's running successfully and with coverage it's failing with segmentation fault.

Commands:
With Coverage:
`python -m pytest --cov=datastore.providers.spanner_gsql --cov-config=coverage/.spanner-coveragerc datastore/providers/spanner_gsql_test.py`

Without Coverage:
`python -m pytest datastore/providers/spanner_gsql_test.py `

Error Log:
`datastore/providers/spanner_gsql_test.py Fatal Python error: Segmentation fault

Current thread 0x00007f064af502c0 (most recent call first):
File "/usr/local/google/home/gauravpurohit/ai/airport/lib/python3.11/site-packages/proto/message.py", line 615 in __init__
File "/usr/local/google/home/gauravpurohit/ai/airport/lib/python3.11/site-packages/google/cloud/spanner_v1/client.py", line 175 in __init__
File "/usr/local/google/home/gauravpurohit/ai/genai-databases-retrieval-app/retrieval_service/datastore/providers/spanner_gsql_test.py", line 62 in create_db`

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。