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

Abierto
#234 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
2/5
Tiempo estimado
1-3 horas
Aptitud para principiantes
38/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
python
Área
backend

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.
Lenguaje dominante
Python
Estrellas
16
Forks
8
Merge medio
1 h 46 min
PR fusionados (30 d)
1

Preparar el entorno

  • Incluye un Dockerfile o un archivo de Docker Compose
  • Sin plantilla de pull request
  • Sin guía de contribución

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de ReactionMechanismGenerator/T3

Todos los issues de ReactionMechanismGenerator/T3

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.