CI: a Build run reports success when the Windows and Intel macOS jobs failed, so a release can be assembled with assets missing

Đang mở
#1,321 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
74/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
github-actions
Lĩnh vực
ci-cd, release

Hướng nghiên cứu

Start by reading .github/workflows/build.yml, especially the Windows and macOS jobs and how their artifacts are named and passed between jobs. Then trace the existing release artifact handling to find where a final check can run after those jobs. Done means a failed or missing expected release artifact is reported by name and makes the Build run fail, while diagnostic artifacts are not required.

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

Mô tả

.github/workflows/build.yml marks the windows job continue-on-error: true (line 603) and the macos job continue-on-error: ${{ matrix.experimental }}, with experimental: true for both Intel entries (x86_64, x86_64-1013) and false for arm64. A job that fails under continue-on-error leaves the run's conclusion success.

So a green Build run guarantees only the four Linux packages, vendored-inventor and the macOS arm64 dmg. The MSI, the Windows zip and both Intel dmgs can all be absent from a run that looks fine, and whoever assembles the release has no signal unless they compare the artifact list against the expected names by hand.

This is the same shape as #1301 (an empty ctest -R exiting 0) and #1309 (a test script reaching none of its checks and reporting success): a step that did not happen reports success. The consequence here is a published release missing a platform.

Suggested fix: a job that runs after the others and fails when an expected artifact is absent, listing the names it wanted and the names it found. The expected set is the nine release artifacts (ecce-debian-trixie-deb, ecce-ubuntu-latest-deb, ecce-rockylinux9-rpm, ecce-fedora-latest-rpm, ECCE-windows-msi, ECCE-windows-zip, ECCE-macos-dmg-arm64, ECCE-macos-dmg-x86_64, ECCE-macos-dmg-x86_64-1013); the diagnostic artifacts are not release assets and should not be required. Keeping continue-on-error on the experimental platforms is still right - the point is that the run should say plainly which ones were lost, rather than reporting success.

Found while reconstructing the release procedure for 9.6.1.

Ngôn ngữ chính
C
Star
10
Fork
8
Merge trung bình
6 giờ 32 phút
Pull request đã merge (30 ngày)
1

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của FriendsofECCE/ECCE

Tất cả issue của FriendsofECCE/ECCE

Issue tương tự

Thêm issue về C

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.