CI: docs-only PRs fail macOS — 'Require compiler guard activity' runs on always() and sees examined=0
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 84/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- bash, c, github-actions
- 領域
- build-system, ci-cd
調査の方向性
.github/workflows/ci.yml で、macOS およびその他の "Require compiler guard activity" ステップを、285 行目付近にある正しく guard されたステップと比較することから始めます。tools/cc_guard.sh と tools/ci_tier_check.sh を読み、次に tier check を実行して、docs-only とコンパイルされないコードのシナリオを検証します。コンパイルされるジョブが引き続き guard activity を報告し、docs-only ジョブが空のレポートを実行せずにパスすれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Every docs-only PR fails the macos / macos-latest required job (first seen on #1447, which only edits docs/BUILTINS.md).
In .github/workflows/ci.yml, the macOS job's build and test steps are all guarded by if: needs.scope.outputs.code == 'true', but its final step "Require compiler guard activity" is if: always() and runs bash tools/cc_guard.sh --report. On a docs-only PR nothing compiles, so the report prints cc-guard: examined=0 and exits 1. The same unguarded if: always() report step appears in three more jobs (ci.yml around lines 352, 390 and 428 at ea9ee90); line 285 is guarded correctly.
The report's refusal of an empty log is right. The step's condition is what's wrong.
Done when
- Every "Require compiler guard activity" step runs only when its job compiled: the same
code == 'true'guard as that job's build steps, or an equivalent. tools/ci_tier_check.shstill passes, and any re-pinned waiver shows that its old pin matched main's step.- A docs-only PR passes every required job, and a code PR whose build compiles nothing still fails the report.
- 主要言語
- C
- スター
- 3
- フォーク
- 7
- 平均マージ
- 4時間 1分
- マージ済み PR(30日)
- 121
環境構築
このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
InauguralSystems/EigenScript のほかの issue
-
area:ci kind:gate-defect
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
InauguralSystems/EigenScript#1431 ·
メンテナーはふだん 1 日以内に返信
-
area:gates kind:gate-defect
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
InauguralSystems/EigenScript#1429 ·
メンテナーはふだん 1 日以内に返信
-
area:docs kind:docs-drift
難易度 1/5 1時間未満 初心者へのやさしさ 92/100
InauguralSystems/EigenScript#1428 ·
メンテナーはふだん 1 日以内に返信
-
area:docs good first issue kind:docs-drift
難易度 1/5 1時間未満 初心者へのやさしさ 92/100
InauguralSystems/EigenScript#1400 ·
メンテナーはふだん 1 日以内に返信
-
area:docs good first issue kind:docs-drift
難易度 2/5 1〜3時間 初心者へのやさしさ 90/100
InauguralSystems/EigenScript#1396 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
InauguralSystems/EigenScript の issue をすべて見る
似ている issue
-
Status: Opened
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
darktable-org/darktable#22455 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
BasedHardware/omi#20084 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 64/100
raspberrypi/pico-sdk#3225 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100