Switch T3's runners to ARC's public PYTHONPATH-policy name once ARC exposes one

Aperta
#234 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
38/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
python
Ambito
backend

Direzione di ricerca

Read t3/runners/rmg_runner.py and check whether ARC exposes a public equivalent for _pythonpath_lines on arc.job.env_run. Once available, update the import and verify _rmg_env_shell_script() still uses ARC’s PYTHONPATH policy for both launch paths. Done when the private import is gone with no behavior change; the issue is explicitly waiting on ARC to expose the helper.

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

Descrizione

What

t3/runners/rmg_runner.py imports a private name from ARC:

from arc.job.env_run import _pythonpath_lines

It is used by _rmg_env_shell_script(), which builds the bash -lc script that both
run_rmg_incore() and run_rmg_sa_incore() use to launch work inside rmg_env. Importing
_pythonpath_lines is deliberate: it makes ARC the single owner of the PYTHONPATH policy for
every RMG child, so ARC and T3 cannot drift apart on whether the parent's PYTHONPATH reaches the
child. The alternative — a second copy of the policy in T3 — is the failure this import prevents.

The cost is that the coupling runs through a leading-underscore name on T3's production launch
path, not in a devtools script. If ARC renames it, T3's runner import fails.

What to do

When ARC exposes a public equivalent (for example a pythonpath_lines or a documented helper on
arc.job.env_run), switch this import to it and drop the private name. No behaviour change is
expected: the policy itself stays ARC's.

Until then the current import is the intended state — it fails loudly rather than silently, which
is why it was chosen.

Not in scope

  • Copying the policy into T3.
  • Any change to the launch templates or to which launcher runs.
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.