[fm] sitrep analysis reports are real confused about whether or not cases with no activity should be included
I maintainer di solito rispondono entro 2 giorni
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Idoneità per principianti
- 72/100
Direzione di ricerca
Trova il codice che genera l’output omdb db sitrep analysis-report current e controlla come seleziona i casi e usa il log di debug di ciascun caso. Inizia cercando nel repository l’intestazione «with activity» o il testo «no activity in this analysis.» Filtra il report per includere solo i casi con log di debug non vuoti. Il lavoro è completato quando i casi invariati vengono omessi e il conteggio riportato corrisponde ai casi mostrati.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
running omdb db sitrep analysis-report current on the dogfood rack,I see output like this (truncated):
== ANALYSIS REPORT =============================================================
sitrep ID: 0e466efe-e07b-46d9-93a9-c069ccff35d5
analysis log:
* alerts changed:
* generation: 17
cases (40 with activity):
* case 093db6e1-1bda-4afb-a5fd-17327cf741ee
// the external TLS certificate for silo testkc (43c28751-0c4c-44e0-926c-2885bdd8cbb7) needs attention
diagnosis engine: certificate
opened in sitrep: 7897ef1e-d7fa-4ef3-a290-074e2f2df7db
no activity in this analysis
* case 1007fd9a-c232-47f0-b464-941c442d541c
// the external TLS certificate for silo jay-local (50b85c37-9e4e-4613-b117-6702c45f0d53) needs attention
diagnosis engine: certificate
opened in sitrep: 7897ef1e-d7fa-4ef3-a290-074e2f2df7db
no activity in this analysis
* case 111a0428-7024-45ea-be5f-f1a1f93f5863
// saga 93c04ce7-7348-40b8-856b-cb3a9d380842 (start-instance-update) needs attention
diagnosis engine: saga
opened in sitrep: 619da0c2-ae4a-4923-a877-9f00e91bd501
no activity in this analysis
* case 14193b83-8b87-4f6c-857d-d6f95ac3dcdc
// the external TLS certificate for silo admin-group-persistence (a3ed4eeb-0cc7-4ae6-b5fc-580d2bd16264) needs attention
diagnosis engine: certificate
opened in sitrep: 7897ef1e-d7fa-4ef3-a290-074e2f2df7db
no activity in this analysis
* case 15940f18-750b-43e0-b422-318bec7c5418
// the external TLS certificate for silo silo11 (c7dd16b8-255e-4300-8e52-7396a72caf3e) needs attention
diagnosis engine: certificate
opened in sitrep: 7ad534b3-1d5e-4969-917f-e6af8ffd09e3
no activity in this analysis
* case 19fe3719-c467-4344-bb3e-7ab7325ec829
// saga 7edd6cd9-28dc-4c68-8788-0ab57683b58a (instance-start) needs attention
diagnosis engine: saga
opened in sitrep: 619da0c2-ae4a-4923-a877-9f00e91bd501
no activity in this analysis
* case 1f3758ed-ff1b-4484-985d-922b458ed886
// the external TLS certificate for silo oxide-okta (0f232130-18d2-4be7-82ec-0f589f178b81) needs attention
diagnosis engine: certificate
opened in sitrep: 7897ef1e-d7fa-4ef3-a290-074e2f2df7db
no activity in this analysis
* case 21acb71d-e669-4cc7-81d3-8d1ea9f3bb73
// the external TLS certificate for silo jay-scratch (a707261c-4e01-4a58-899a-3f3fbc22196b) needs attention
diagnosis engine: certificate
opened in sitrep: 7897ef1e-d7fa-4ef3-a290-074e2f2df7db
no activity in this analysis
* case 2f7abfc8-3c45-4848-93c6-0f19cd863f18
// the external TLS certificate for silo oxide (7bd7623a-68ed-4636-8ecb-b59e3b068787) needs attention
diagnosis engine: certificate
opened in sitrep: 0e466efe-e07b-46d9-93a9-c069ccff35d5 <-- this sitrep
activity in this analysis:
* opened case
// the external TLS certificate for silo oxide (7bd7623a-68ed-4636-8ecb-b59e3b068787) needs attention
* added fact:
// best certificate rack-certificate-renewal-oct-12-2026 (2d6fdebb-8bac-4493-b7ee-a0eb2ae7bb6e) expires at 2026-12-09 02:20:46 UTC
* fact_id: 0119694f-d785-4459-8a9b-6971353480dd
* payload:
* certificate_id: 2d6fdebb-8bac-4493-b7ee-a0eb2ae7bb6e
* engine: certificate
* kind: best_certificate_expiring
* not_after: 2026-12-09T02:20:46Z
* silo_id: 7bd7623a-68ed-4636-8ecb-b59e3b068787
* requested an alert:
// best certificate rack-certificate-renewal-oct-12-2026 (2d6fdebb-8bac-4493-b7ee-a0eb2ae7bb6e) expires at 2026-12-09 02:20:46 UTC
* alert_class: silo.certificate.expiring
* alert_id: 1c6ae1c5-6d7f-4527-b86e-cd461a8994c0
* alert_payload_type: nexus_types::alert::certificate::SiloCertificateExpiringV0
* alert_version: 0
* case 364a7f28-c58e-448b-813b-e28b77fad302
// the external TLS certificate for silo testkc-group (c8e6f44b-6653-45cc-9887-01eded042d56) needs attention
diagnosis engine: certificate
opened in sitrep: 7897ef1e-d7fa-4ef3-a290-074e2f2df7db
no activity in this analysis
<... truncated by me because there are a bunch more unchanged cases ...>
Note that the heading says "cases (40 with activity):", but almost all of the 40 cases in the analysis log don't actually have any activity in this sitrep; only one was actually modified (the silo certificate expiring case 2f7abfc8-3c45-4848-93c6-0f19cd863f1). This suggests that I had misremembered how this worked when I wrote this code: the version of me that wrote the "({} with activity)" part was operating under the incorrect assumption that I had only included cases which have changed in the analysis report. Meanwhile, the version of me that wrote the code that prints "no activity in this analysis" when the debug log is empty was assuming that all cases would always be included in the analysis report even if nothing happened in that sitrep.
Personally, I think we should probably change this so that "({} with activity)"-Eliza's assumption becomes correct. We only need to include cases tht have non-empty debug logs in the analysis report: if you wanted to see the complete list of open cases, you could inspect the current sitrep itself, and get more useful information about them; the analysis report should show you what has changed in this sitrep. Getting rid of the unchanged cases will make the output much more manageable for the reader[^1], and also make the JSON a bit smaller, which is probably also good.
[^1]: It's currently quite lengthy:
[dogfood]root@oxz_switch0:~# omdb db sitrep analysis-report current | wc -l
note: database URL not specified. Will search DNS.
note: (override with --db-url or OMDB_DB_URL)
note: using DNS from system config (typically /etc/resolv.conf)
note: (if this is not right, use --dns-server to specify an alternate DNS server)
note: using database URL postgresql://root@[fd00:1122:3344:109::3]:32221,[fd00:1122:3344:105::3]:32221,[fd00:1122:3344:10b::3]:32221,[fd00:1122:3344:107::3]:32221,[fd00:1122:3344:108::3]:32221/omicron?sslmode=disable
note: database schema version matches expected (320.0.0)
727
- Lingua principale
- Rust
- Stelle
- 630
- Fork
- 110
- Merge medio
- 2g 2h
- PR unite (30g)
- 160
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di oxidecomputer/omicron
-
fault-management
Difficoltà 2/5 1-3 ore Idoneità per principianti 64/100
oxidecomputer/omicron#11444 ·
I maintainer di solito rispondono entro 2 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
oxidecomputer/omicron#11397 ·
I maintainer di solito rispondono entro 2 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
oxidecomputer/omicron#11390 ·
I maintainer di solito rispondono entro 2 giorni
-
non-important non-blocker Testing & Analysis
Difficoltà 2/5 1-3 ore Idoneità per principianti 66/100
oxidecomputer/omicron#11374 ·
I maintainer di solito rispondono entro 2 giorni
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 88/100
oxidecomputer/omicron#11269 ·
I maintainer di solito rispondono entro 2 giorni
Tutte le issue di oxidecomputer/omicron
Issue simili
-
[Bug]: Add Data's question says "Link to the file" for a GeoPackage where small tables are copiedApertaunconfirmed possible issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 64/100
I maintainer di solito rispondono entro 1 giorno
-
documentation
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
jerney-nexus/epikrise#364 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
Yeachan-Heo/gajae-code#8058 ·
I maintainer di solito rispondono entro 1 giorno
-
bug daemon
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
I maintainer di solito rispondono entro 1 giorno
-
good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
I maintainer di solito rispondono entro 1 giorno