googleapis / googleapis/google-cloud-cpp

renovate.sh ignores real failures in `generate-libraries.sh`

Đang mở
#14,099 2 bình luận 0 reaction 0 người được giao Xem trên GitHub
cpp: operator type: cleanup
Ngôn ngữ chính
C++
Star
659
Fork
462
Merge trung bình
1 ngày 2 giờ
Pull request đã merge (30 ngày)
89

Mô tả

We use `renovate.sh` to update the googleapis SHA. It automatically updates the generated code too:

https://github.com/googleapis/google-cloud-cpp/blob/682e0657e270533675163dca54a722526aaae145/external/googleapis/renovate.sh#L72-L75

The `|| true` is needed because `generate-libraries.sh` is intended as a CI script. It is supposed to fail if the code does not match what would happen if we generated the code, and in this case we always generate new code.

It seems we need a way to tell `generate-libraries.sh` to expect code diffs. Or maybe we should refactor the code such that both `renovate.sh` and `generate-libraries.sh` call some shell functions.

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

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

Hướng nghiên cứu

Bắt đầu bằng cách đọc renovate.sh quanh các dòng 72-75, sau đó kiểm tra generate-libraries.sh để hiểu trạng thái thất bại CI của nó được tạo ra như thế nào. Tái hiện quy trình tạo mã và đảm bảo các khác biệt dự kiến trong mã được tạo không che giấu những lỗi không liên quan, đồng thời vẫn giữ nguyên hành vi xác thực CI.

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

Đánh giá

Công nghệ
cpp, shell
Lĩnh vực
build-system, ci-cd
Loại issue
Lỗi
Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Khá rõ ràng
Mức phù hợp với người mới
35/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.