[DevOps]: Enable and verify the daily PACE upload on Compy

Abierto
#140 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
20/100
Tipo de issue
Nueva funcionalidad
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
bash, linux, python

Línea de trabajo

Read the operations runbook at docs/operations/archive-uploads.md and use the deployment-local /compyfs/simboard/operations/compy.crontab on the Compy cron host. The checklist covers the test schedule, crontab backup and install, process monitoring, logs, upload report, and PACE search. Done means the upload is verified, then the temporary entry is replaced by the approved daily schedule and the installed crontab is checked.

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

Descripción

Enable the daily PACE upload on Compy. Manage it alongside SimBoard in the deployment-local /compyfs/simboard/operations/compy.crontab on the same host and account. Do not edit SimBoard’s version-controlled template. See the operations runbook.

1. Preflight and approval
  • Set up the checkout and logs, pull #139, and verify /usr/bin/python3 with requests.
  • Set up private ~/.pacecc and pass preflight, including the flock and log permission checks.
  • Confirm the schedule and historical Jenkins timezone, rule out duplicate jobs, review archive permissions and side effects, and get operator approval.
2. Schedule a test in UTC
  • On the Compy cron host, print a job line for five minutes from now. Keep it on one line below CRON_TZ=UTC in the deployment-local file. Use it instead of the daily PACE line for the test. Regenerate if you miss the scheduled minute.
printf '%s %s\n' "$(date -u -d '+5 minutes' '+%M %H %d %m *')" 'PACE_PYTHON=/usr/bin/python3 /usr/bin/flock -n /compyfs/pace_operations/logs/compy-pace.lock /compyfs/pace_operations/pace/portal/utils/compy_pace.sh >> /compyfs/pace_operations/logs/compy-pace.log 2>&1'
nano /compyfs/simboard/operations/compy.crontab

06 23 30 11 * is November 30 at 23:06 UTC (3:06 p.m. Pacific Standard Time), not a reusable five-minute delay.

  • Back up and compare the current crontab. Stop if the backup fails unexpectedly or the diff shows unrelated changes. Installing the file replaces the entire account crontab, so preserve every existing job.
backup=$(mktemp "$HOME/crontab.compy.XXXXXX") && crontab -l > "$backup" && printf 'Backup: %s\n' "$backup"
diff -u "$backup" /compyfs/simboard/operations/compy.crontab
  • Install before the scheduled UTC minute and verify that the SimBoard entries are intact and PACE appears exactly once.
crontab /compyfs/simboard/operations/compy.crontab && crontab -l
3. Verify and switch to the daily schedule
  • On the cron host, check whether the wrapper, processor, or uploader is running. No output means none is running right now; the job may not have started or may already have finished.
pgrep -a -f -u "$USER" 'compy_pace\.sh|e3sm_perf_archive\.perl|pace-upload3'
  • If the main log pauses at Large file list:, check the wrapper’s process tree. A find command with -exec ls is listing files over 50 MiB in large-files-removed.txt, not deleting them. The deletion scan runs next, then processing and upload. Do not start another run while this one is active.
# Replace the example PIDs with the current wrapper and find PIDs.
pstree -ap 2434472
ps -p 2434479 -o pid,etime,stat,args
tail -n 30 -F /compyfs/pace_operations/logs/compy-pace.log
  • After the job exits, check the log and upload report for errors. Confirm the expected Compy experiments appear in PACE. Ctrl+C stops watching the log, not the job.
tail -n 100 /compyfs/pace_operations/logs/compy-pace.log
  • Remove the temporary entry after the test so it does not repeat next year. If the test passed, replace its five schedule fields with the approved daily schedule (0 0 * * * for midnight UTC). Reinstall the reviewed file and verify with crontab -l.
Lenguaje dominante
Python
Estrellas
3
Forks
1
Merge medio
10 min
PR fusionados (30 d)
5

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 E3SM-Project/pace

Todos los issues de E3SM-Project/pace

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.