Simplify live dashboard and warn on memory target [skip ci]
myfileagent-python-ci/pipeline/head This commit looks good
myfileagent-python-ci/pipeline/head This commit looks good
This commit is contained in:
@@ -12,9 +12,13 @@ Jenkins reserves a durable version before the metrics/PDF/test stages and passes
|
||||
|
||||
## Grafana token behavior
|
||||
|
||||
`ci/publish_live_metrics.py` updates `/home/codex/ssw590-final-metrics/final-project.prom` only after Jenkins verifies a live Actions bundle. It retains the existing last-run gauges and adds `review_input_tokens_total` and `review_output_tokens_total`, cumulative counters since activation. A ledger keyed by source SHA/run ID/attempt makes a Jenkins retry idempotent. Null token counts add nothing; fixture counts are refused. The dashboard adds two top panels for those counters. Baseline was initialized to actual zero since activation, while prior last-run gauges remain 23/5 from earlier evidence. Grafana does not receive a token increment at inference start: the increase follows Jenkins verification and a Prometheus scrape. Cumulative counters are for demonstration of a new event; the exact run's token counts remain in `review.json`.
|
||||
`ci/publish_live_metrics.py` updates `/home/codex/ssw590-final-metrics/final-project.prom` only after Jenkins verifies a live Actions bundle. It retains the underlying last-run gauges and adds `review_input_tokens_total` and `review_output_tokens_total`, cumulative counters since activation. A ledger keyed by source SHA/run ID/attempt makes a Jenkins retry idempotent. Null token counts add nothing; fixture counts are refused. The dashboard shows the cumulative panels and removes the two flat last-run token graphs. Baseline was initialized to actual zero since activation, while the underlying prior last-run gauges remain 23/5 as historical evidence. Grafana does not receive a token increment at inference start: the increase follows Jenkins verification and a Prometheus scrape. Cumulative counters are for demonstration of a new event; the exact run's token counts remain in `review.json`.
|
||||
|
||||
The provisioned dashboard copy is `/home/codex/myfileagent-gitea/assignment7-monitoring/monitoring/grafana/provisioning/dashboards/json/final-project.json`. The new source dashboard and provisioned copy had matching SHA-256 `36c06ab418db400b913f01d642b3e594dcc7faed9c13592727fea5a564e18554` at deployment. The textfile collector was checked at `node_textfile_scrape_error 0`; Prometheus returned a live input cumulative sample of 0 before the rehearsal. Grafana's authenticated API rejected programmatic access with HTTP 401, so final visual confirmation should be done in the user's signed-in dashboard. No fabricated live token counts were published.
|
||||
The provisioned dashboard copy is `/home/codex/myfileagent-gitea/assignment7-monitoring/monitoring/grafana/provisioning/dashboards/json/final-project.json`. Grafana's v13 resource store was checked directly: it contains the two cumulative token charts, host CPU/memory charts, and latest-run status cards; the two flat token charts are absent. The former flat memory peak/limit graph is now separate latest-run peak, warning-status, and hard-ceiling cards. Before the next review, the target-status card correctly has no sample because prior runs did not record that field. The textfile collector was checked at `node_textfile_scrape_error 0`; Prometheus returned a live input cumulative sample of 0 before the rehearsal. Grafana's authenticated API rejected programmatic access with HTTP 401, so final visual confirmation should be done in the user's signed-in dashboard. No fabricated live token counts were published.
|
||||
|
||||
## Memory target and safety ceiling
|
||||
|
||||
The model lock and shared contract still set the complete inference-workload target at **250,000,000 bytes**. The prior actual Actions run peaked exactly at its page-rounded 249,999,360-byte hard cap and recorded 433 `memory.events.max` pressure events but no OOM kill. That is not evidence of the natural uncapped peak. The Actions job now requests a **384,000,000-byte hard ceiling** with swap disabled. Its measured `memory.peak` covers runtime preparation, reviewer, child inference process, and private model tmpfs. If the peak exceeds the 250,000,000-byte target, `resource.json`, the review bundle, the short PDF and the Actions log retain an explicit warning while a successful model run continues. If the hard ceiling produces a real OOM kill, or the model fails, no ready bundle is published. Docker cannot turn an actual hard-cap OOM into a harmless warning after the process is killed. The latest-run Grafana cards are a display of recorded values, not a fabricated live process trace.
|
||||
|
||||
## Rehearsal preparation
|
||||
|
||||
@@ -22,4 +26,4 @@ The integration branch is prepared with a valid `demo/demo.py` containing exactl
|
||||
|
||||
## Local verification and limits
|
||||
|
||||
In the pinned compiler/runtime image `sha256:579106aaffa81dc2436a72a5dbfc51d3590f1a97646321fd38c694aae6d7cba1`, the updated CI suite passed 24 tests and the reviewer/application suite passed 19. The four affected metrics tests passed after the collector-readable file-mode fix. The new short PDF compiled from a saved real review bundle with `pdflatex -no-shell-escape` as a one-page offline preview. This change did not rerun the real model, reserve a new live version, execute the full Jenkins job, or prove the future rehearsal succeeds. Save the Actions/Jenkins/Grafana screenshots and new review bundle during that user-led run.
|
||||
In the pinned compiler/runtime image `sha256:579106aaffa81dc2436a72a5dbfc51d3590f1a97646321fd38c694aae6d7cba1`, the updated CI suite passed 24 tests and the reviewer/application suite passed 19 before the memory display adjustment. The affected pipeline/metrics suites then passed 15 and 4 tests. Docker reported the requested 384,000,000-byte cgroup ceiling and zero swap. The modified short PDF compiled from a saved real review bundle with `pdflatex -no-shell-escape` as a one-page offline preview. This change did not rerun the real model, reserve a new live version, execute the full Jenkins job, or prove the future rehearsal succeeds. Save the Actions/Jenkins/Grafana screenshots and new review bundle during that user-led run.
|
||||
|
||||
Reference in New Issue
Block a user