feat(contour): add local-friendly contour run visibility

This commit is contained in:
igor04091968
2026-06-22 00:59:42 +03:00
parent 18da4e7cfd
commit e893c296ac
6 changed files with 377 additions and 0 deletions
@@ -0,0 +1,21 @@
[Unit]
Description=AWatch-rus daily contour check
After=network-online.target
Wants=network-online.target
[Service]
Type=oneshot
WorkingDirectory=/var/lib/detmir-ai
Environment=CONTOUR_CHECK_SCOPE=daily
Environment=RUN_PORTAL_SMOKE=0
Environment=DETMIR_DLP_COMMAND=detmir-dlp
Environment=CONTOUR_CHECK_OUTPUT_ROOT=/var/lib/detmir-ai/contour-check-runs
Environment=CONTOUR_CHECK_ENV_FILE=/etc/detmir/detmir-check.env
Environment=DETMIR_PORTAL_URL=http://127.0.0.1:8720
EnvironmentFile=-/etc/detmir/detmir-check.env
EnvironmentFile=-/etc/awatch-rus/contour-check.env
ExecStart=/usr/bin/env bash /usr/local/sbin/awatch-contour-check
TimeoutStartSec=10min
Nice=10
IOSchedulingClass=best-effort
IOSchedulingPriority=7
@@ -0,0 +1,11 @@
[Unit]
Description=Run AWatch-rus daily contour check
[Timer]
OnCalendar=*-*-* 07:10:00
RandomizedDelaySec=10m
Persistent=true
Unit=awatch-contour-daily-check.service
[Install]
WantedBy=timers.target
@@ -0,0 +1,22 @@
[Unit]
Description=AWatch-rus weekly extended contour check
After=network-online.target
Wants=network-online.target
[Service]
Type=oneshot
WorkingDirectory=/var/lib/detmir-ai
Environment=CONTOUR_CHECK_SCOPE=weekly
Environment=RUN_PORTAL_SMOKE=1
Environment=RUN_REGISTRY_CHECK=1
Environment=DETMIR_DLP_COMMAND=detmir-dlp
Environment=CONTOUR_CHECK_OUTPUT_ROOT=/var/lib/detmir-ai/contour-check-runs
Environment=CONTOUR_CHECK_ENV_FILE=/etc/detmir/detmir-check.env
Environment=DETMIR_PORTAL_URL=http://127.0.0.1:8720
EnvironmentFile=-/etc/detmir/detmir-check.env
EnvironmentFile=-/etc/awatch-rus/contour-check.env
ExecStart=/usr/bin/env bash /usr/local/sbin/awatch-contour-check
TimeoutStartSec=20min
Nice=10
IOSchedulingClass=best-effort
IOSchedulingPriority=7
@@ -0,0 +1,11 @@
[Unit]
Description=Run AWatch-rus weekly extended contour check
[Timer]
OnCalendar=Mon *-*-* 09:10:00
RandomizedDelaySec=20m
Persistent=true
Unit=awatch-contour-weekly-check.service
[Install]
WantedBy=timers.target