argumentcomputer / argumentcomputer/ci-workflows
lints workflow : feature or crate selection
- 主要言語
- 言語のデータがありません
- スター
- 0
- フォーク
- 3
- 平均マージ
- 59分
- マージ済み PR(30日)
- 2
説明
Documenting an issue encountered in https://github.com/lurk-lab/neptune/pull/255, which is arguably the fault of the crate organization:
- the gbench crate (which is non-publish!) runs with the default opencl feature, which does not compile on some CI machines:
https://github.com/lurk-lab/neptune/blob/main/gbench/Cargo.toml#L25
- the lint crate runs with `workspace` in the doc step of the job:
https://github.com/lurk-lab/neptune/actions/runs/7294189991/job/19878612122?pr=255
https://github.com/lurk-lab/ci-workflows/blob/96e567fa741858807c1de28bb4d8194291faecfb/.github/workflows/lints.yml#L49
Three ways to solve this:
- make the gbench feature non-default, just generate a runtime panic if neither of opencl nor cuda are active,
- allow excluding a crate from the doc test,
- allow excluding a feature (or running with default-deatures = false) from the doc test,
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
調査の方向性
まず ci-workflows の .github/workflows/lints.yml、gbench/Cargo.toml の feature 定義、および参照されている PR #255 を読んでください。doc ステップが lint crate をどのように呼び出しているかを比較し、どの crate または feature 選択の動作をサポートすべきかを判断してください。ワークフローが、サポートされていない default features が原因で失敗することなく、文書化された crate と feature 選択のケースを処理できれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- github-actions, rust
- 領域
- build-system, ci-cd
- issue の種類
- 機能追加
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100