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

Segmentation Fault while running pytest with coverage #1189

Open
gauravpurohit06 opened this issue Aug 22, 2024 · 0 comments
Open

Segmentation Fault while running pytest with coverage #1189

gauravpurohit06 opened this issue Aug 22, 2024 · 0 comments
Assignees
Labels
api: spanner Issues related to the googleapis/python-spanner API.

Comments

@gauravpurohit06
Copy link
Contributor

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`

@product-auto-label product-auto-label bot added the api: spanner Issues related to the googleapis/python-spanner API. label Aug 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: spanner Issues related to the googleapis/python-spanner API.
Projects
None yet
Development

No branches or pull requests

4 participants