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

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
72/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Quiet
Tech stack
python

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.

Description

priority: p2 type: cleanup

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).

Dominant language
Python
Stars
5.4k
Forks
1.8k
Avg merge
1d 17h
Merged PRs (30d)
93

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from googleapis/google-cloud-python

All issues in googleapis/google-cloud-python

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.