Raccolta dei dati per l'analisi e release di prova per Windows #96

Merged
Alby96 merged 2 commits from diagnostica into main 2026-11-14 18:55:58 +01:00
Owner

Riferimenti: #95, #55 · ADR 0013

La prova di 48 ore in casa si interrompeva per colpa del computer, mai di Anubis. Al suo posto l'utente fa girare la release per il tempo che vuole e poi incolla un rapporto.

Cosa cambia

  • Ogni 5 minuti, e a ogni avvio, il bot scrive in diagnostic_samples una fotografia del processo:
    • memoria e GC;
    • thread e handle;
    • CPU ed eccezioni;
    • dimensione del database;
    • avvisi ed errori dei registri;
    • chiamate HTTP in uscita per destinazione, con le durate. Si leggono dal meter System.Net.Http, senza pacchetti nuovi.
  • Ogni esecuzione di ogni lavoro pianificato va in job_runs. Le due tabelle tengono 30 giorni.
  • Il rapporto in Markdown:
    • pesa al massimo 60 KB, passa dal Redactor e maschera la cartella dell'utente;
    • contiene:
      • i segnali in breve;
      • i controlli di soak;
      • avvii e silenzi;
      • lavori;
      • chiamate;
      • errori raggruppati;
      • risorse con le loro pendenze.
  • Il rapporto si ottiene in tre modi: con anubis diagnostics, da GET /api/diagnostica.md e con un pulsante in Diario e sistema.
  • Nuovo segnaposto di colonna {long}, perché SQLite in modalità STRICT rifiuta BIGINT.
  • tasks release-win prepara lo zip di prova con:
    • Avvia Anubis.cmd;
    • Prepara i dati da incollare.cmd;
    • LEGGIMI.txt.
  • La versione passa a 0.7.0.

Prove

  • tasks check è verde: 358 test superati, 1 ignorato (WAL, solo SQLite).
  • I test della diagnostica e del database passano anche su PostgreSQL.

🤖 Generated with Claude Code

Riferimenti: #95, #55 · ADR 0013 La prova di 48 ore in casa si interrompeva per colpa del computer, mai di Anubis. Al suo posto l'utente fa girare la release per il tempo che vuole e poi incolla un rapporto. **Cosa cambia** - Ogni 5 minuti, e a ogni avvio, il bot scrive in `diagnostic_samples` una fotografia del processo: - memoria e GC; - thread e handle; - CPU ed eccezioni; - dimensione del database; - avvisi ed errori dei registri; - chiamate HTTP in uscita per destinazione, con le durate. Si leggono dal meter `System.Net.Http`, senza pacchetti nuovi. - Ogni esecuzione di ogni lavoro pianificato va in `job_runs`. Le due tabelle tengono 30 giorni. - Il rapporto in Markdown: - pesa al massimo 60 KB, passa dal `Redactor` e maschera la cartella dell'utente; - contiene: - i segnali in breve; - i controlli di `soak`; - avvii e silenzi; - lavori; - chiamate; - errori raggruppati; - risorse con le loro pendenze. - Il rapporto si ottiene in tre modi: con `anubis diagnostics`, da `GET /api/diagnostica.md` e con un pulsante in Diario e sistema. - Nuovo segnaposto di colonna `{long}`, perché SQLite in modalità STRICT rifiuta `BIGINT`. - `tasks release-win` prepara lo zip di prova con: - `Avvia Anubis.cmd`; - `Prepara i dati da incollare.cmd`; - `LEGGIMI.txt`. - La versione passa a 0.7.0. **Prove** - `tasks check` è verde: 358 test superati, 1 ignorato (WAL, solo SQLite). - I test della diagnostica e del database passano anche su PostgreSQL. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Alby96 added 1 commit 2026-11-14 17:59:02 +01:00
Collect diagnostics for the analysis of a long run and package a Windows trial release (refs #95 #55)
ci / test (postgres) (push) Successful in 6m25s
ci / test (sqlite) (push) Successful in 4m1s
ci / test (postgres) (pull_request) Failing after 6m4s
ci / image (push) Canceled after 0s
ci / test (sqlite) (pull_request) Successful in 4m34s
ci / image (pull_request) Skipped
6e365673b8
The 48-hour soak run at home kept being cut short by the host, never by Anubis.
The user will instead run a release for as long as they like and paste back a
report, so the bot now records what that report needs (ADR 0013).

- Every 5 minutes and at each start, a process sample goes to diagnostic_samples:
  memory, GC, threads, handles, CPU, exceptions, database size, log warnings and
  errors, and outbound HTTP calls by destination with duration buckets, read from
  the System.Net.Http meter without any new package.
- Every scheduled job run goes to job_runs. Both tables keep 30 days.
- The Markdown report (at most 60 KB, redacted, user folders masked) adds
  findings, the soak checks, starts and silences, jobs, calls, grouped log
  warnings and errors, and resources over time with their slopes. It comes from
  "anubis diagnostics", GET /api/diagnostica.md and a button in Diario e sistema.
- New {long} column token: SQLite STRICT tables reject BIGINT.
- "tasks release-win" builds the trial zip with a start script, a script that
  writes the report, and Italian instructions. Version 0.7.0.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Alby96 added 1 commit 2026-11-14 18:07:40 +01:00
Count WebSocket upgrades as successful calls and tidy the report (refs #95)
ci / test (postgres) (pull_request) Successful in 9m14s
ci / test (sqlite) (push) Successful in 4m11s
ci / test (sqlite) (pull_request) Successful in 4m12s
ci / test (postgres) (push) Successful in 9m40s
ci / image (pull_request) Successful in 2m14s
ci / image (push) Successful in 54s
9cf386d08b
Trying the packaged release showed three things to fix: a 101 answer that opens a
WebSocket was counted as a failure, the duration buckets were too coarse around
the usual 200-500 ms of the brokers, and the report mixed CRLF and LF lines and
named SQLite only by its version.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Alby96 merged commit 25e71b679f into main 2026-11-14 18:55:58 +01:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: BalboSoft/Anubis#96