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

Aperta Adatta ai principianti
#233 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
77/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
bash, python

Direzione di ricerca

Leggi devtools/install_all.sh nella parte relativa alla creazione dell’ambiente e alla delega ad ARC, poi esamina devtools/install_rmg.sh di ARC e devtools/rmg_env.yml di T3. Impedisci all’installazione delegata di risolvere di nuovo rmg_env di T3, oppure fai in modo che usi la specifica di T3. Esegui devtools/check_rmg_env.py; il lavoro è concluso quando l’installazione automatizzata mantiene le versioni bloccate e supera il controllo delle versioni.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
Python
Stelle
16
Fork
8
Merge medio
1h 46m
PR unite (30g)
1

Preparare l'ambiente

  • Include un Dockerfile o un file Docker Compose
  • Nessun modello di pull request
  • Nessuna guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di ReactionMechanismGenerator/T3

Tutte le issue di ReactionMechanismGenerator/T3

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.