ecce-allocations: Tools > Allocations from the command line

Abierto
#1,319 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
48/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
c, linux
Área
backend, cli

Línea de trabajo

Read the ecce-annotate command and the Organizer request handling, including the acknowledgement behavior noted in #897. Trace AllocationQuery::targets() and AllocationQuery::check() and use tests/launch/allocations_ssh_test.py to understand the tested login path. Done means the command reports cached results or refresh progress as specified; cluster behavior still needs verification against a real machine with an allocation command.

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

Descripción

Tools > Allocations is GUI-only. A script or an assistant can read ~/.ECCE/AllocationCache, which may be stale, but cannot ask for a refresh. Every GUI action gets a script hook.

Proposal: ecce-allocations [--refresh] [--timeout SECONDS] [machine]. It does not query the cluster itself, because the ssh login belongs to the Organizer session. Like ecce-annotate it sends a request to the running Organizer (exit 2 "ECCE is not running: start ECCE first" when there is none; the Organizer's first reply is the acknowledgement, #897). The Organizer runs AllocationQuery::targets() and AllocationQuery::check(target, force, ...), the code the Refresh button runs. Without --refresh it reports the cached values and their age (force=false, no login opened). With --refresh it requests force=true and then polls the Organizer until no target is still checking or the timeout passes; whatever has arrived is printed and the rest is marked as still checking. One line per machine and account: machine, account, the projinfo-style line, time of the check; a result that is older than the last attempt is marked old with the reason.

Unverified: the cluster path. It needs a real login to a machine with an allocation command; tests/launch/allocations_ssh_test.py covers the login path against a test sshd only.

Lenguaje dominante
C
Estrellas
10
Forks
8
Merge medio
6 h 32 min
PR fusionados (30 d)
1

Preparar el entorno

Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.

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 FriendsofECCE/ECCE

Todos los issues de FriendsofECCE/ECCE

Issues similares

Más issues de C

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.