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

未關閉
#1,321 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

評估

難度
3/5
預估耗時
1-2 天
新手友好度
74/100
Issue 類型
缺陷
描述清晰度
描述清楚
活躍度
活躍
技術堆疊
github-actions
領域
ci-cd, release

研究方向

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.

由索引模型根據 Issue 內容生成。

描述

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

主要語言
C
星號
10
分支
8
平均合併
6 小時 32 分鐘
30 天內合併 PR
1

環境準備

這個專案沒有提供開發容器、Dockerfile 或貢獻指南,環境需要你自己搭建:先看它的 README,通用步驟見我們的新手貢獻指南。

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

FriendsofECCE/ECCE 的其他 Issue

查看 FriendsofECCE/ECCE 的全部 Issue

相似的 Issue

更多 C Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。