GeezerVison is showing github.com — Consider having multiple projects for testing · Issue #3310 · GoogleCloudPlatform/python-docs-samples
Consider having multiple projects for testing #3310DescriptionFor some tests, we ultimately need to have multiple projects for testing.
- "409 Too many concurrent edits to the project configuration. Please try again"
- Maximum number of custom roles (300) reached
I created a label needs-multiple-projects which indicates that the issue needs multiple projects for the fundamental fix. Activitytmatsuo commented on Apr 8, 2020 ContributorAuthor More actions @kurtisvg @crwilcox @leahecole If you know any issues which needs multiple projects for the fundamental fix, please add the label needs-multiple-projects. Once you go through your knowledge and your memory, feel free to unassign yourself. tmatsuo commented on Apr 9, 2020 ContributorAuthor More actions For implementation, I think we should use gimmeproj. Example uses in ruby and go
To use gimmeproj, I think we'll probably need to
- create a new project for meta project
- try to run all the tests on the meta project, figure out what configs/operations/resource files are needed besides enabling APIs, and write them down (for example, TEST-REQUIREMENTS.md in each directory).
- maybe standardize on the resource files (or even, write a shell script for setup)
- then we can finally create pool projects with all the needed stuff
tmatsuo commented on May 6, 2020 ContributorAuthor More actions An easier option.
Maybe we can have few more cloud projects with suffixes like -py36, -py37, etc.
We can have a common library in this repo, probably in the lib folder or somewhere. We can add that directory to sys.path in the noxfile.py so that you can just do something like:
import test_helper
project_id = test_helper.get_project_id_from_kokoro_job_name()
# you'll get `xxx-py36` for the py-36 build and `xxxx-py37` for the py-37 build, etc.
This way, it is very easy for us to only opt in some of the tests. tmatsuo commented on May 6, 2020 ContributorAuthor More actions Came up with an easier option.
Rather than having a library, we can just override the envvar GOOGLE_CLOUD_PROJECT in noxfile.py. tmatsuo commented on May 15, 2020 ContributorAuthor More actions Created 3 new projects.
- python-docs-samples-tests-py36
- python-docs-samples-tests-py37
- python-docs-samples-tests-py38
I'll start using those projects with monitoring tests. tmatsuo commented on May 16, 2020 ContributorAuthor More actions
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|