googleapis / googleapis/google-cloud-python

gapic-generator: use `install_unittest_dependencies` in `prerelease_deps` and `core_deps_from_source`

Open Beginner friendly
#17,531 0 comments 0 reactions 0 assignees View on GitHub
priority: p2 type: cleanup
Dominant language
Python
Stars
5.4k
Forks
1.8k
Avg merge
3d 4h
Merged PRs (30d)
122

Description

The `prerelease_deps` and `core_deps_from_source` sessions in the GAPIC generator's `noxfile.py.j2` template currently use hardcoded boilerplate (`session.install("-e", ".")`) to install the local package and test dependencies. This boilerplate bypasses optional package extras (`UNIT_TEST_EXTRAS`), causing continuous CI jobs to fail for hybrid packages (`GAPIC_COMBO`) that rely on extra test dependencies.

Rather than duplicating dependency installation logic across multiple sessions, `prerelease_deps` and `core_deps_from_source` should call `install_unittest_dependencies(session)`.

Contributor guide

Open the contributing guide

Research direction

Open the GAPIC generator's noxfile.py.j2 template and locate the prerelease_deps and core_deps_from_source sessions, then inspect the existing install_unittest_dependencies(session) helper. Replace the duplicated installation logic so both sessions use the helper, preserving UNIT_TEST_EXTRAS support for GAPIC_COMBO packages; done means the sessions no longer use the hardcoded install boilerplate.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
build-system, ci-cd, testing-qa
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Quiet
Clarity
Clearly specified
Newbie friendliness
72/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.