install_all.sh delegates rmg_env to ARC's installer, which carries a different RMG pin
还没有人认领这个 Issue。
评估
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 新手友好度
- 77/100
- Issue 类型
- 缺陷
- 描述清晰度
- 描述清楚
- 活跃度
- 活跃
- 技术栈
- bash, python
- 领域
- build-system, devops
调研方向
阅读 devtools/install_all.sh 中创建环境和委托给 ARC 的部分,然后检查 ARC 的 devtools/install_rmg.sh 和 T3 的 devtools/rmg_env.yml。阻止委托的安装过程重新解析 T3 的 rmg_env,或使其使用 T3 的规格。运行 devtools/check_rmg_env.py;自动安装保留固定的版本并通过版本检查即为完成。
由索引模型根据 Issue 内容生成。
描述
Summary
devtools/install_all.sh builds rmg_env from T3's own spec, and then hands the same environment
to ARC's installer, which has its own pin. The two disagree, so the automated install does not
produce the environment the manual install and CI produce.
devtools/install_all.sh
├── (line ~36) conda env create/update -n rmg_env -f devtools/rmg_env.yml # T3's spec
│ python=3.11, rmg=4.0.0, rmgdatabase=4.0.0
└── (line ~85) cd ../ARC && make install-all
└── ARC devtools/install_rmg.sh
ENV_NAME="rmg_env" # the SAME environment
RMG_VERSION="${RMG_VERSION:-3.3.0}" # a DIFFERENT pin
Two consequences:
- The automated install re-solves
rmg_envafter T3 has already built it, under a different
RMG version, somake installanddevtools/install_all.shcan end at different environments
from the documented manual path and from CI. - It would fail T3's own check.
devtools/check_rmg_env.pyruns at the end of
install_all.shand assertsrmgpy.__version__ == pins['rmg'], i.e.4.0.0. Anrmg_env
re-solved to3.3.0fails that assertion, so the installer's last step contradicts its earlier
one. - A pin change made only in
devtools/rmg_env.ymlcan therefore be silently overridden, which is
the opposite of what "one statement of T3's rmg_env" in that file's header promises.
Fix, either direction
- Prevent the delegated ARC installation from managing
rmg_envat all (ARC's RMG install is not
needed when T3 has already built the environment from its own spec); or - make ARC's installer consume T3's spec, so there is one source of the pins.
The first is smaller and keeps the pin statement in one file.
Evidence
- T3 spec:
devtools/rmg_env.yml—name: rmg_env,python=3.11,rmg=4.0.0,
rmgdatabase=4.0.0. - ARC installer:
devtools/install_rmg.sh—ENV_NAME="rmg_env",
RMG_VERSION="${RMG_VERSION:-3.3.0}". - The assertion that would fail:
devtools/check_rmg_env.py, thermgpy_version != pins['rmg']
branch.
Found by review on #231 and classed NEXT rather than part of that PR, because the change is in the
installer's delegation boundary and not in the environment spec #231 introduces.
Scope note
Not a blocker for the rmg_env spec work in #231: that PR makes the spec authoritative for the
manual path, docs and CI, which is what it claims. This issue is about the automated path only.
- 主要语言
- Python
- 星标
- 16
- 派生
- 8
- 平均合并
- 1 小时 46 分钟
- 30 天内合并 PR
- 1
环境准备
- 提供 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 没有贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
ReactionMechanismGenerator/T3 的其他 Issue
-
难度 3/5 1-2 天 新手友好度 53/100
ReactionMechanismGenerator/T3#239 · 2 条评论 ·
-
难度 4/5 3-5 天 新手友好度 35/100
ReactionMechanismGenerator/T3#238 ·
-
难度 3/5 1-2 天 新手友好度 68/100
ReactionMechanismGenerator/T3#237 ·
-
难度 4/5 3-5 天 新手友好度 52/100
ReactionMechanismGenerator/T3#236 ·
-
难度 4/5 3-5 天 新手友好度 48/100
ReactionMechanismGenerator/T3#235 ·
查看 ReactionMechanismGenerator/T3 的全部 Issue
相似的 Issue
-
docs(contributing): the two things that silently block a PR可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭available documentation good first issue
难度 1/5 1-3 小时 新手友好度 95/100
Nixitov/Riptide-Native#944 ·
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 88/100
JTHCode/secretguard#24 ·
维护者通常 1 天内回复
-
area: middleware documentation good first issue
难度 2/5 1-3 小时 新手友好度 88/100
-
enhancement good first issue
难度 2/5 1-3 小时 新手友好度 88/100
维护者通常 1 天内回复
-
good first issue
难度 1/5 1 小时以内 新手友好度 95/100
omarelshamy25x/shamy-hijri#63 ·
维护者通常 1 天内回复