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

Aperta
#140 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
20/100
Tipo di issue
Funzionalità
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
bash, linux, python

Direzione di ricerca

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.

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

Descrizione

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.
Lingua principale
Python
Stelle
3
Fork
1
Merge medio
10m
PR unite (30g)
5

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

Tutte le issue di E3SM-Project/pace

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.