install_all.sh delegates rmg_env to ARC's installer, which carries a different RMG pin

Đang mở Phù hợp với người mới
#233 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
77/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
bash, python
Lĩnh vực
build-system, devops

Hướng nghiên cứu

Đọc devtools/install_all.sh ở phần tạo môi trường và ủy quyền cho ARC, sau đó kiểm tra devtools/install_rmg.sh của ARC và devtools/rmg_env.yml của T3. Ngăn quá trình cài đặt được ủy quyền phân giải lại rmg_env của T3, hoặc khiến nó sử dụng đặc tả của T3. Chạy devtools/check_rmg_env.py; hoàn thành khi quá trình cài đặt tự động giữ nguyên các phiên bản đã ghim và vượt qua bước kiểm tra phiên bản.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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:

  1. The automated install re-solves rmg_env after T3 has already built it, under a different
    RMG version, so make install and devtools/install_all.sh can end at different environments
    from the documented manual path and from CI.
  2. It would fail T3's own check. devtools/check_rmg_env.py runs at the end of
    install_all.sh and asserts rmgpy.__version__ == pins['rmg'], i.e. 4.0.0. An rmg_env
    re-solved to 3.3.0 fails that assertion, so the installer's last step contradicts its earlier
    one.
  3. A pin change made only in devtools/rmg_env.yml can 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_env at 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, the rmgpy_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.

Ngôn ngữ chính
Python
Star
16
Fork
8
Merge trung bình
1 giờ 46 phút
Pull request đã merge (30 ngày)
1

Chuẩn bị môi trường

  • Có Dockerfile hoặc tệp Docker Compose
  • Không có mẫu pull request
  • Không có hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của ReactionMechanismGenerator/T3

Tất cả issue của ReactionMechanismGenerator/T3

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.