-
Notifications
You must be signed in to change notification settings - Fork 61
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
Python package errors during setup #602
Comments
Using bash won't help in this case, because actually interacting with Firestore is going to require code using a Cloud client of some kind. I can think of three approaches: Option 1 - It might as well be Python. We can either have the setup script install google-cloud-firestore in the user's default Python environment, which would be rude, or create and use a virtual environment with it installed. Option 2 - Use the gcloud CLI which can import data into Firestore from a Cloud Storage bucket. Option 3 - Use Terraform to create Firestore documents one at a time, or load from a text file. One at a time would work well for the approver seeding, not so much for the rest of the data. This is going to need discussion and a decision record. |
I took a look at what the possible solution here looks like and submitted PR #644 to start. Here's a break down of the changes we'll need to submit to replace the python seeding scripts with Terraform resources:
Other notes:
|
Due to the concurrency errors that occur when Terraform creates a large amount of Firestore documents, the Terraform solution may not be the best one at this time. |
from @glasnt feedback
Problem
When
setup.sh
callsseed_test_approver.py
there is a python import error that causes setup.sh to failSteps to Reproduce
Steps to reproduce the behavior:
Expected behavior
No import errors.
Additional context
User environment:
Proposal
Replace python used in setup with bash gcloud CLI commands
The text was updated successfully, but these errors were encountered: