googleapis / googleapis/google-cloud-python

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

Đang mở Phù hợp với người mới
#17,531 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
priority: p2 type: cleanup
Ngôn ngữ chính
Python
Star
5.4k
Fork
1.8k
Merge trung bình
3 ngày 4 giờ
Pull request đã merge (30 ngày)
122

Mô tả

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

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
python
Lĩnh vực
build-system, ci-cd, testing-qa
Loại issue
Lỗi
Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức độ hoạt động
Ít trao đổi
Độ rõ ràng
Đặc tả rõ ràng
Mức phù hợp với người mới
72/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.