googleapis / googleapis/google-cloud-python

Segmentation Fault while running pytest with coverage

Đang mở
#15,912 1 bình luận 0 reaction 1 người được giao Được giao cho @harshachinta Xem trên GitHub
api: spanner
Ngôn ngữ chính
Python
Star
5.4k
Fork
1.8k
Merge trung bình
3 ngày 4 giờ
Pull request đã merge (30 ngày)
122

Mô tả

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`

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.