Run Rust formatting, tests, and Clippy in CI
維護者通常 1 天內回覆
評估
- 難度
- 4/5
- 預估耗時
- 3-5 天
- 新手友好度
- 45/100
研究方向
先從 .github/workflows/ci.yml:27-44 和 46-62 中的兩個驗證工作開始,然後檢查 ./scripts/test.py --operation validate 和 src/lib.rs。執行列出的 cargo fmt、cargo test 和 cargo clippy 命令以重現目前的失敗;完成的標準是 CI 強制執行這些檢查,產生的 src/roc_platform_abi.rs 具有範圍狹窄且有文件說明的例外,並且所要求的 host-helper 測試和貢獻者說明都已存在。
由索引模型根據 Issue 內容生成。
描述
Context
The CI jobs named “Format, check, and test examples” run ./scripts/test.py --operation validate:
.github/workflows/ci.yml:27-44.github/workflows/ci.yml:46-62
That validation runs Roc tests/format/check operations, but it does not run Rust formatting, Rust tests, or Clippy. At commit 295000a during the release-candidate audit:
cargo check --locked --all-targetspassed;cargo fmt --all -- --checkfailed on formatting insrc/lib.rs;cargo test --locked --all-targetspassed but ran zero Rust tests;cargo clippy --locked --all-targets -- -D warningsfailed on generated acronym names and a raw-pointer ABI lint.
The generated src/roc_platform_abi.rs needs targeted lint allowances rather than disabling useful linting for handwritten host code.
Suggested direction
Add a dedicated Rust validation job or extend the current validation job to run:
cargo fmt --all -- --checkcargo test --locked --all-targetscargo clippy --locked --all-targets -- -D warnings
Configure narrow allowances for generated glue. Add unit tests for pure host helpers and error mappings so cargo test provides meaningful coverage in addition to end-to-end Roc examples.
Acceptance criteria
- Rust formatting is required by CI and the current formatting difference is fixed.
- Handwritten Rust passes Clippy with warnings denied.
- Generated glue has documented, narrowly scoped lint allowances.
- Rust tests cover representative HTTP method/error mapping, TCP read helpers, SQLite lifecycle helpers, and filesystem classification.
- Contributor verification instructions list the same commands CI runs.
- 主要語言
- Rust
- 星號
- 123
- 分支
- 46
- 平均合併
- 10 小時 59 分鐘
- 30 天內合併 PR
- 21
環境準備
- 沒有 Dockerfile 或 Docker Compose 檔案
- 沒有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
roc-lang/basic-cli 的其他 Issue
-
難度 5/5 一週以上 新手友好度 25/100
roc-lang/basic-cli#482 · 1 則留言 ·
維護者通常 1 天內回覆
-
難度 4/5 3-5 天 新手友好度 45/100
維護者通常 1 天內回覆
-
enhancement
難度 5/5 一週以上 新手友好度 45/100
roc-lang/basic-cli#455 · 1 則留言 ·
維護者通常 1 天內回覆
-
難度 5/5 一週以上 新手友好度 32/100
維護者通常 1 天內回覆
-
bug
難度 5/5 一週以上 新手友好度 45/100
維護者通常 1 天內回覆
查看 roc-lang/basic-cli 的全部 Issue
相似的 Issue
-
desktop documentation
難度 1/5 1 小時以內 新手友好度 90/100
vfarcic/dot-agent-deck#2008 ·
維護者通常 1 天內回覆
-
needs triage
難度 1/5 1 小時以內 新手友好度 85/100
pbakaus/impeccable#1210 ·
維護者通常 1 天內回覆
-
area: ci priority: P4 ready-for-agent
難度 2/5 1-3 小時 新手友好度 74/100
維護者通常 1 天內回覆
-
L: javascript
難度 2/5 1-3 小時 新手友好度 72/100
dependabot/dependabot-core#16744 ·
維護者通常 1 天內回覆
-
bug
難度 2/5 1-3 小時 新手友好度 68/100
nautechsystems/nautilus_trader#5486 · 1 則留言 ·
維護者通常 1 天內回覆