BL-32: Contributor environment preflight check (dincli system doctor / scripts/preflight.sh)
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 55/100
- Issue 类型
- 功能
- 描述清晰度
- 描述清楚
- 活跃度
- 活跃
- 技术栈
- github-actions, python, solidity
- 领域
- devops, documentation, testing, tooling
调研方向
Read dincli/cli/system.py, the onboarding guide, ci.yml, and CLAUDE.md to understand the existing command structure and checks. Implement the read-only preflight command or fallback script, then run it on a clean environment and verify each listed check, plain text output, and exit codes. Done when the command is referenced in Documentation/public/guides/getting-started.md.
由索引模型根据 Issue 内容生成。
描述
Summary
There is no single command that checks a developer's machine before they start work. Each of the following has already caused lost time:
- Python < 3.12 installed (repo requires
>=3.12). forge/anvilnot installed, or the wrong solc version (0.8.28 required).foundry/node_modulesabsent — withoutnpm ci,forge test's parallel jobs race to fetch@openzeppelin/upgrades-coreover npx into a shared cache, causing both test flakiness and unnecessary supply-chain exposure at test time (documented inCLAUDE.md).eth-accountorpy-multibasenot importable in the active venv.torchnot importable (needed bytests/full run and the reference service files)..env/.env.<network>missing, the configured RPC endpoint unreachable, orresolve_ipfs_config()unable to resolve.
Proposal
A read-only preflight check — dincli system doctor (preferred, fits the existing subcommand structure in dincli/cli/system.py) or scripts/preflight.sh as a fallback — that runs one check per line:
[OK] Python 3.12.6
[OK] forge 0.3.2 / anvil 0.3.2
[OK] solc 0.8.28 (via solc-select)
[OK] foundry/node_modules present
[OK] eth-account 6.3.0
[OK] py-multibase 2.0.1
[MISSING] torch — run: pip install torch
[OK] .env.sepolia_op_devnet found
[OK] RPC https://... → chainId 11155420
[MISSING] IPFS_API_URL not set and no Filebase credentials — see Documentation/public/guides/ipfs.md
Exits non-zero on any MISSING or ERROR row. Never installs anything itself — reports and exits.
Usage
- Primary: first command in the onboarding docs (
Documentation/public/guides/getting-started.md). - Secondary: first step in
ci.yml's unit-test job (can replace the current ad-hocpip install+forge --versioncalls). - Optional local alias:
make doctor.
Acceptance
- All six check categories above pass on a clean machine.
- Exits 0 when everything is OK, non-zero when any check fails.
- Output is plain text, one line per check, usable in CI without color codes (
--no-colorflag or auto-detect). Documentation/public/guides/getting-started.mdreferences the command.
References
Developer/BACK_LOG.mdBL-32CLAUDE.md—npm ciwarning (§ Solidity)- Preflight pattern reviewed in
Osomudeya/devops-scripting-labs(2026-10-02)
- 主要语言
- Python
- 星标
- 4
- 派生
- 7
- 平均合并
- 3 天 5 小时
- 30 天内合并 PR
- 34
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
InfiniteZeroFoundation/DevNet 的其他 Issue
-
ROADMAP.md: refresh "What is still open for P3" (several items were fixed in October)可能已有人在做 @umermjd11 于 4 天前认领。 未关闭documentation good first issue
难度 2/5 1-3 小时 新手友好度 74/100
InfiniteZeroFoundation/DevNet#285 · 1 条评论 · 已指派 1 人 ·
维护者通常 1 天内回复
-
Update the 25 translated organisation READMEs to match the English version可能已有人在做 @mrCabez 于 2 天前认领。 未关闭good first issue help wanted
难度 2/5 1-3 小时 新手友好度 76/100
InfiniteZeroFoundation/DevNet#277 · 2 条评论 · 已指派 1 人 ·
维护者通常 1 天内回复
-
Update the client-service guide to explain training and uploading separately可能已有人在做 @Santiagocetran 于 1 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 76/100
InfiniteZeroFoundation/DevNet#266 · 已指派 1 人 ·
维护者通常 1 天内回复
-
Few questions related to GI2 aggregator可能已有人在做 @Abidoyesimze 于 1 天前认领。 未关闭
InfiniteZeroFoundation/DevNet#307 · 1 个 reaction · 已指派 4 人 ·
维护者通常 1 天内回复
-
bug python
难度 4/5 3-5 天 新手友好度 52/100
InfiniteZeroFoundation/DevNet#306 ·
维护者通常 1 天内回复
查看 InfiniteZeroFoundation/DevNet 的全部 Issue
相似的 Issue
-
_chunk_scan_fwd launches its Triton kernel without a device guard: NaN when a model is split across GPUs可能已有人在做 @toddwbucy 今天认领。 未关闭
难度 1/5 1 小时以内 新手友好度 85/100
state-spaces/mamba#1072 ·
-
难度 1/5 1 小时以内 新手友好度 85/100
loopj/aiovantage#414 ·
维护者通常 1 天内回复
-
power_mismatch_deline docstring: the rear-to-total RMAD conversion has an extra bifaciality factor未关闭
难度 1/5 1 小时以内 新手友好度 85/100
pvlib/pvlib-python#2929 ·
维护者通常 1 天内回复
-
data good first issue launch-day unverified
难度 2/5 1-3 小时 新手友好度 78/100
BradGroux/wow-forever-mission-control#8 ·
维护者通常 1 天内回复
-
check bilibili falsely reports read/subtitle as broken: live_test fixture BV1GJ411x7h7 is gone (404)未关闭
难度 2/5 1-3 小时 新手友好度 78/100
Panniantong/Agent-Reach#889 ·
维护者通常 2 天内回复