googleapis / googleapis/google-cloud-python
gapic-generator: use `install_unittest_dependencies` in `prerelease_deps` and `core_deps_from_source`
- Lingua principale
- Python
- Stelle
- 5.4k
- Fork
- 1.8k
- Merge medio
- 3g 4h
- PR unite (30g)
- 122
Descrizione
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)`.
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- python
- Ambito
- build-system, ci-cd, testing-qa
- Tipo di issue
- Bug
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Stato di attività
- Tranquilla
- Chiarezza
- Specificata chiaramente
- Idoneità per principianti
- 72/100