Arnaud Dartois
d3aa74496b
fix(inventory): satisfy metric parser analyzers
Heimdall Gitea / Build and tests (pull_request) Successful in 17m26s
Heimdall Gitea / Publish versioned release (pull_request) Skipped
Heimdall Gitea / Build and scan server image (pull_request) Successful in 9m7s
Heimdall Gitea / Build and scan agent image (pull_request) Successful in 9m54s
Heimdall Gitea / Publish Docker Hub latest tags (pull_request) Skipped
2026-10-25 02:11:28 +01:00
Arnaud Dartois
6abde35475
perf(inventory): batch metric sample inserts
Heimdall Gitea / Build and tests (pull_request) Failing after 3m38s
Heimdall Gitea / Build and scan server image (pull_request) Skipped
Heimdall Gitea / Build and scan agent image (pull_request) Skipped
Heimdall Gitea / Publish Docker Hub latest tags (pull_request) Skipped
Heimdall Gitea / Publish versioned release (pull_request) Skipped
2026-10-25 02:59:38 +02:00
Arnaud Dartois
e86c0e159a
fix(inventory): isolate invalid GPU inventory samples
Heimdall Gitea / Build and scan server image (pull_request) Canceled after 0s
Heimdall Gitea / Build and scan agent image (pull_request) Canceled after 0s
Heimdall Gitea / Publish Docker Hub latest tags (pull_request) Canceled after 0s
Heimdall Gitea / Publish versioned release (pull_request) Canceled after 0s
Heimdall Gitea / Build and tests (pull_request) Canceled after 4m22s
2026-10-25 02:51:19 +02:00
Arnaud Dartois
c8c84f0e2c
feat(inventory): add metric history dashboards
Heimdall Gitea / Build and tests (pull_request) Failing after 3m28s
Heimdall Gitea / Build and scan server image (pull_request) Skipped
Heimdall Gitea / Build and scan agent image (pull_request) Skipped
Heimdall Gitea / Publish Docker Hub latest tags (pull_request) Skipped
Heimdall Gitea / Publish versioned release (pull_request) Skipped
2026-10-25 02:19:01 +02:00
Arnaud Dartois
71e869a011
feat(notifications): persist external deliveries in outbox
Heimdall Gitea / Build and scan server image (pull_request) Canceled after 0s
Heimdall Gitea / Build and scan agent image (pull_request) Canceled after 0s
Heimdall Gitea / Publish Docker Hub latest tags (pull_request) Canceled after 0s
Heimdall Gitea / Publish versioned release (pull_request) Canceled after 0s
Heimdall Gitea / Build and tests (pull_request) Canceled after 43s
2026-10-24 22:27:53 +02:00
Arnaud Dartois
5cf508950f
feat(storage): retain known destination inventory
Heimdall Gitea / Build and tests (pull_request) Failing after 3m31s
Heimdall Gitea / Build and scan server image (pull_request) Skipped
Heimdall Gitea / Build and scan agent image (pull_request) Skipped
Heimdall Gitea / Publish Docker Hub latest tags (pull_request) Skipped
Heimdall Gitea / Publish versioned release (pull_request) Skipped
2026-10-24 17:04:57 +02:00
Arnaud Dartois
0fd2c37ef6
fix(storage): protect snapshots from soft-deleted events
Heimdall Gitea / Build and tests (pull_request) Successful in 14m20s
Heimdall Gitea / Publish versioned release (pull_request) Skipped
Heimdall Gitea / Build and scan agent image (pull_request) Successful in 5m16s
Heimdall Gitea / Build and scan server image (pull_request) Successful in 7m53s
Heimdall Gitea / Publish Docker Hub latest tags (pull_request) Skipped
2026-10-24 16:38:37 +02:00
Arnaud Dartois
6fc8efc438
Complete durable agent analysis job flow
Heimdall Gitea / Build and scan server image (pull_request) Canceled after 0s
Heimdall Gitea / Build and scan agent image (pull_request) Canceled after 0s
Heimdall Gitea / Publish Docker Hub latest tags (pull_request) Canceled after 0s
Heimdall Gitea / Publish versioned release (pull_request) Canceled after 0s
Heimdall Gitea / Build and tests (pull_request) Canceled after 12m24s
2026-10-24 13:43:21 +02:00
Arnaud Dartois
6503a17545
Merge main into repository health fix
Heimdall Gitea / Build and tests (pull_request) Failing after 1m2s
Heimdall Gitea / Publish versioned release (pull_request) Skipped
2026-10-23 20:21:43 +02:00
Arnaud Dartois
0cc950967e
Align CI fixtures with camera config and release manifest
Heimdall Gitea / Build and tests (pull_request) Failing after 1m21s
Heimdall Gitea / Publish versioned release (pull_request) Skipped
2026-10-23 18:58:06 +02:00
Arnaud Dartois
d93eaca043
Sign agent releases and complete snapshot media lifecycle
2026-10-23 18:54:14 +02:00
Arnaud Dartois
8f00f69a5f
Track manual snapshots and apply versioned camera config
Heimdall Gitea / Build and tests (pull_request) Failing after 1m34s
Heimdall Gitea / Publish versioned release (pull_request) Skipped
2026-10-23 07:30:58 +02:00
Arnaud Dartois
9e27e89af5
Fix health check failures and align patch dependencies
Heimdall Gitea / Build and tests (pull_request) Failing after 1m34s
Heimdall Gitea / Publish versioned release (pull_request) Skipped
2026-10-23 03:14:43 +02:00
Arnaud Dartois
88da58723f
Store detection snapshots in managed storage
Heimdall Gitea / Build and tests (pull_request) Failing after 1m26s
Heimdall Gitea / Publish versioned release (pull_request) Skipped
2026-10-22 20:50:40 +02:00
Arnaud Dartois
2b41ab4ea3
fix(storage): record historical object destinations
Heimdall Gitea / Build and tests (pull_request) Failing after 4m57s
Heimdall Gitea / Publish versioned release (pull_request) Skipped
2026-10-22 19:58:55 +02:00
Arnaud Dartois
ac70685616
fix(storage): delete expired objects before references
Heimdall Gitea / Build and tests (pull_request) Failing after 1m31s
Heimdall Gitea / Publish versioned release (pull_request) Skipped
2026-10-22 19:48:41 +02:00
Arnaud Dartois
d78da50c93
feat(notifications): fan out camera events to authorized users
Heimdall Gitea / Build and tests (pull_request) Failing after 0s
Heimdall Gitea / Publish versioned release (pull_request) Skipped
2026-10-22 19:43:18 +02:00
Arnaud Dartois
249c4ef0de
fix: scope email digests to accessible camera events
Heimdall Gitea / Build and tests (pull_request) Successful in 31m9s
Heimdall Gitea / Publish versioned release (pull_request) Skipped
2026-10-21 18:59:50 +02:00
Arnaud Dartois
5109b8fa34
merge latest pipe profile and main into follow-up
2026-10-20 07:29:42 +02:00
Arnaud Dartois
084edc313c
fix(pipeline): reconcile camera assignments after failover
2026-10-20 07:27:31 +02:00
Arnaud Dartois
cef3434c3c
fix(ops): confine local storage and repair maintenance jobs (Refs #1 )
2026-10-20 02:27:03 +02:00
Arnaud Dartois
e0290c8a1b
feat(db): partitionnement camera_events + gestion automatique des partitions mensuelles ( #164 )
2026-08-27 00:31:12 +02:00
Arnaud Dartois
ca43c6d28e
feat(analysis): scheduler de jobs d'analyse avec routage par capacités, priorités et dead-letter ( #159 )
2026-08-26 23:44:38 +02:00
Arnaud Dartois
4792b69e46
feat(agent): télémétrie inventaire matériel — CPU/mémoire/disque/GPU/OS/réseau ( Fixes #82 #83 #84 #85 ) ( #137 )
...
## Contexte
Implémentation des tickets #82 , #83 , #84 , #85 — télémétrie inventaire matériel agent. L'objectif est de fournir au central un maximum d'informations sur les machines des agents (CPU, mémoire, disques, GPU, OS, réseau, conteneur) sans SSH.
## Changements
### Nouveaux collecteurs (src/Heimdall.Agent/Services/)
- **CpuInfoProvider** : parse `/proc/cpuinfo` (vendor, modèle, cœurs physiques/logiques, fréquence, flags AVX/AVX2/FMA/AVX512, cache), topologie, détection cgroup CPU (`/sys/fs/cgroup/cpu.max` v2)
- **DiskInventoryProvider** : énumère les montages (`/proc/mounts`), capacité/libre/type SSD/HDD via `/sys/block/*/queue/rotation`
- **GpuInventoryProvider** : nvidia-smi, sysfs DRM, vainfo, rocm-smi avec fallback silencieux, multi-GPU
- **HostInfoProvider** : os-release, uname, `/proc/uptime` (uptime machine ≠ process), températures sysfs
- **ContainerInfoProvider** : détection Docker (/.dockerenv, cgroup), ID conteneur, limites CPU/mémoire
### Refonte SystemMetricsProvider
- Séparation host vs process (RAM machine ≠ RAM conteneur ≠ WorkingSet64)
- Uptime machine (`/proc/uptime`) distinct de l'uptime process
- Mémoire swap
### Entité Agent + Migration
- Champs structurés CPU/mémoire/disque/GPU/OS/réseau (tous nullable, rétrocompatible)
- Migration EF `AddAgentTelemetryInventory`
### Transport heartbeat
- Inventaire au register + refresh périodique (5 min, pas à chaque tick)
- Champs JSON pour listes (disques, GPU, interfaces réseau, températures)
### UI Admin (AgentDetail.razor)
- Sections CPU, Mémoire/Disques, GPU, Machine/Conteneur avec barres de progression et badges
### Tests
- 40+ tests unitaires : providers, handlers, entité Agent
- Total : 999 tests verts (Domain 149, Application 397, Agent 210, Web 243)
## Tickets liés
- Fixes #82 — CPU inventory
- Fixes #83 — Mémoire & disque
- Fixes #84 — GPU inventory
- Fixes #85 — OS, conteneur, réseau
## Résultats des tests
- `dotnet build` : 0 erreur, 0 warning
- Domain.Tests : 149 passed
- Application.Tests : 397 passed
- Agent.Tests : 210 passed
- Web.Tests : 243 passed
- Total : 999 tests ✅
## Checklist
- [x] `dotnet build` vert (TreatWarningsAsErrors)
- [x] Tests unitaires verts
- [x] Migration EF créée
- [x] Champs nullable (rétrocompatible)
- [x] Pas de référence Infrastructure dans les contrôleurs
- [x] Collecteurs avec fallback silencieux (pas de crash sans GPU/Docker/sysfs)
Reviewed-on: https://forgejo.tordais.cc/nonobis/Heimdall/pulls/137
2026-08-20 14:13:06 +02:00
Arnaud Dartois
66cec88e6e
feat(notifications): complète le paramétrage ntfy (serveur + utilisateur) ( #152 )
...
## What
Complète le paramétrage des notifications ntfy (serveur + utilisateur, UI + backend).
## Why
L'issue #60 demandait un paramétrage complet. Le code existant avait des bugs et des manques :
- Le lookup DB de l'URL ntfy ratait à cause d'un mismatch de casing (`ntfy.baseUrl` vs `ntfy.baseurl`)
- L'override URL par utilisateur (`UserNotificationConfig.NtfyUrl`) n'était jamais utilisé lors de l'envoi
- La page profil n'affichait pas le topic ntfy à s'abonner
- Le test ntfy n'envoyait pas le topic de l'utilisateur
## Changes
- **Fix casing** : `NtfyService.ResolveConfigAsync` lit maintenant `ntfy.baseurl` (lowercase) pour correspondre à ce que l'UI écrit
- **Per-user URL override** : `INtfyService` accepte un `baseUrl` optionnel ; `NotificationService` passe `config.NtfyUrl` lors de l'envoi
- **Profile.razor** : affiche le topic ntfy personnalisé (`heimdall_{userId}`) + bouton "Tester ntfy" qui envoie vers le topic de l'utilisateur
- **HeimdallApiClient** : `TestNtfyAsync` accepte et envoie le topic dans le body
- **SendNotificationJob** : transmet le paramètre `baseUrl`
## Testing
- `dotnet build` : 0 erreurs, 0 warnings
- 963 tests unitaires passent (Domain 142, Application 391, Infrastructure 177, Agent 197, Web 243, Api 2)
Closes #60
Reviewed-on: https://forgejo.tordais.cc/nonobis/Heimdall/pulls/152
2026-08-19 23:06:51 +02:00
Arnaud Dartois
e3d14eec04
feat(jobs): jobs Hangfire rétention/cleanup + dashboard admin ( Fixes #8 )
...
- RetentionCheckJob (quotidien 3h) : purge enregistrements expirés par
StoragePolicy via ExecuteDelete (1 requête, pas de boucle), défaut 30 j
- CleanupUnknownFacesJob (dim 5h) : personnes 'unknown' > 30 j
- CleanupLicensePlatesJob (dim 6h) : plaques non associées > 30 j
- DatabaseMaintenanceJob (dim 7h) : VACUUM events + REINDEX (VACUUM FULL
1er dimanche)
- Dashboard Hangfire /hangfire protégé AdminJobs (filtre custom)
- S3CleanupJob dépend du ticket #7 (stockage S3) — non inclus ici
- Tests : 2 (rétention avec/sans politique)
2026-08-12 09:43:45 +02:00
Arnaud Dartois
0c7bb86eae
feat(logs): purge des logs agents — AgentLogCleanupJob Hangfire ( Fixes #53 )
...
- Job quotidien 4h : supprime les AgentLogEntry plus vieux que la rétention
(Logs:RetentionDays, défaut 7 j), par lots de 5000 + pause 100 ms
(pas de verrou long ni de transaction log explosée)
- Enregistré dans JobSetup + DI BackgroundJobs
- Tests : 2 (purge des vieux uniquement, rien si rien de vieux)
2026-08-12 09:29:03 +02:00
Arnaud Dartois
45c6ce82eb
perf: add ConfigureAwait(false) to all async calls in library projects
...
Add ConfigureAwait(false) to all await expressions in Application and
Infrastructure projects (111 files). This follows .NET best practices
for library code to avoid potential deadlocks when consumed from
synchronization contexts (legacy, unit test runners).
Also fix 4 test assertions that check SaveChangesAsync — update to
SaveChangesWithRetryAsync to match the handler changes from Fix 4.
2026-07-27 18:59:12 +00:00
Arnaud Dartois
c1eac5431b
fix: corriger les 8 issues du code review notifications
...
🔴 EmailService: implémentation SMTP réelle (System.Net.Mail)
🔴 GetNotificationConfigHandler: CQS — retourne DTO par défaut sans écrire en DB
🟠 NotificationRateLimiter: increment atomique (Interlocked)
🟠 DailyDigestJob/WeeklyDigestJob: comptes événements user-specific
🟠 docker-compose.prod: auth ntfy via NTFY_AUTH_FILE
🟠 Namespace: Heimdall.Web.Controllers (consistant)
🟠 Commentaire 'gotify' → 'ntfy'
🟠 Tests: NotificationsControllerTests (7 tests)
2026-07-27 05:33:53 +00:00
Arnaud Dartois
f800103239
feat: remplacer Gotify par ntfy — push notifications multi-utilisateur avec isolation par topic
...
- Nouveau NtfyService: topic isolé par user (heimdall_{userId})
- Configuration globale Ntfy:BaseUrl + Ntfy:Token (plus de token par user)
- Renommage UserNotificationConfig: Gotify* → Ntfy*
- Migration des colonnes DB: gotify_enabled/url/token → ntfy_enabled/url
- Ajout service ntfy dans docker-compose (binwiederhier/ntfy)
- Mise à jour .env.example avec NTFY__BASE_URL et NTFY__TOKEN
- Suppression GotifyService et IGotifyService
2026-07-27 04:56:16 +00:00
Arnaud Dartois
f9be0f1e0d
feat: implémenter SignalR hubs (Monitoring, Notifications, Admin) + système de notifications complet
...
SignalR Hubs:
- MonitoringHub (/hubs/monitoring) — statuts agents/caméras/stockage/GPU jobs
- NotificationsHub (/hubs/notifications) — notifications in-app badge temps réel
- AdminHub (/hubs/admin) — broadcast changements config (Admin only)
Notification System:
- Nouvelles entités: Notification, NotificationTemplate, UserNotificationConfig
- CQRS/MediatR: 6 handlers (list, unread, mark-read, mark-all, config get/update)
- Infrastructure: NotificationService orchestrator + EmailService + GotifyService
- Rate limiter IMemoryCache (20 events/min/camera/type)
- Hangfire jobs: SendNotification, DailyDigest, WeeklyDigest
- NotificationsController API (6 endpoints)
- Blazor UI: NotificationsPage + NotificationBadge
- Migration AddNotifications (3 nouvelles tables)
- 644 nouveaux tests (Domain: 131, Application: 321, Infra: 151, Integration: 120, +autres)
2026-07-26 20:45:35 +00:00
Arnaud Dartois
630e7987fe
refactor(docker): merge worker and web into single heimdall image
...
Combine Heimdall.Web and Heimdall.Workers into one process/image.
Hangfire background jobs now run inside the web process.
- Move job classes to Infrastructure/Jobs/ (no Worker SDK dependency)
- Add Hangfire server + recurring jobs to Web/Program.cs
- Add missing AddInfrastructure/AddApplication DI registrations to Web
- Rename image: heimdall (was heimdall-web / heimdall-workers)
- Remove src/Heimdall.Workers project entirely
- Remove tests/Heimdall.Workers.Tests (placeholder)
- Simplify Dockerfile: single build target, no workers publish
- Update docker-compose files: one service heimdall, no workers
- Update Makefile, .env.example
2026-07-20 17:22:56 +00:00