Restore demo guide and start review with visible model evidence
This commit is contained in:
+8
-6
@@ -1,12 +1,13 @@
|
|||||||
# SSW590 Group 7 final-project demo handoff
|
# SSW590 Group 7 final-project demo handoff
|
||||||
|
|
||||||
Updated 28 November 2026. This is the current documentation-preparation record for the Gitea Actions → real SmolLM2 review → Jenkins → LaTeX/tests → versioned ZIP demo. It does not assert that the upcoming user-led rehearsal has occurred. The older `secure-delivery/HANDOFF.md` is for Assignment 8 and is unrelated to this demo. The original Member 1 record is `HANDOFF.txt`; the earlier deployed integration record is `ci/HANDOFF.txt`.
|
Updated 28 November 2026. This is the current documentation-preparation record for the Gitea Actions → real SmolLM2 review → Jenkins → LaTeX/tests → versioned ZIP demo. A broken-input commit exists, but this handoff does not assert that its complete Actions → Jenkins rehearsal has succeeded. The older `secure-delivery/HANDOFF.md` is for Assignment 8 and is unrelated to this demo. The original Member 1 record is `HANDOFF.txt`; the earlier deployed integration record is `ci/HANDOFF.txt`.
|
||||||
|
|
||||||
## Source state and ownership
|
## Source state and ownership
|
||||||
|
|
||||||
- Shared base: `5373351a7e7ac2bc0f34bae19c25383de3843ca7`. Prepared demo branch in Gitea: `feature/final-ci-demo`; this local checkout is `feature/final-demo-refresh`.
|
- Shared base: `5373351a7e7ac2bc0f34bae19c25383de3843ca7`. Prepared demo branch in Gitea: `feature/final-ci-demo`; this local checkout is `feature/final-demo-refresh`.
|
||||||
- Preparation commit `1bb4e0a9dde2e57380bd85156ffe5ceb0896340a` added the valid demo source and short PDF/versioned live demo changes. Commit `d118a677e0a67795336e8c8fddadd7412c68806d` adjusted the memory ceiling, warning, and Grafana display. Both were pushed by the user using the interactive credential helper.
|
- Preparation commit `1bb4e0a9dde2e57380bd85156ffe5ceb0896340a` added the valid demo source and short PDF/versioned live demo changes. Commit `d118a677e0a67795336e8c8fddadd7412c68806d` adjusted the memory ceiling, warning, and Grafana display. Both were pushed by the user using the interactive credential helper.
|
||||||
- Reviewer-test implementation commit `3ad7836e5b7e70b1c1fd95934c95748979534ab6` focuses the demo tests and separates the Jenkins reviewed-program stage. The subsequent handoff and Actions-log changes **have not been pushed to Gitea as of this handoff**. The local `../outputs/push-ssw590-demo-refresh.sh` checks the expected tip and old remote head and asks for credentials only in the user's interactive SSH terminal; it stores none. The preparation commits contain `[skip ci]`, so the intentionally broken on-stage commit should be the next live inference event.
|
- Reviewer-test implementation commit `3ad7836e5b7e70b1c1fd95934c95748979534ab6` focuses the demo tests and separates the Jenkins reviewed-program stage. The subsequent handoff and Actions-log changes **have not been pushed to Gitea as of this handoff**. The local `../outputs/push-ssw590-demo-refresh.sh` checks the expected tip and old remote head and asks for credentials only in the user's interactive SSH terminal; it stores none. The earlier preparation commits used `[skip ci]`; the next commit with the already-broken input must trigger its own live Actions run.
|
||||||
|
- After that test commit reached Gitea, `10db5a6adfb69c614a0ba75261b9f19c9bcf805a` deleted `demo/README.md` and `d8cb38616aa3ef60cdcde91032e8f150fe2add10` committed the one-character broken `demo/demo.py` input. The README deletion was unrelated to the demo edit and is restored in the pending integration tip. The current branch must be treated as **already broken for live inference**; a new tip needs its own matching Actions run and Jenkins SOURCE_SHA.
|
||||||
- Member 1 owns `reviewer/`, `demo/`, reviewer tests and source evidence. Member 2 originally integrated the Actions, Jenkins, bundle/ZIP, version reservation, shared CI and monitoring. Subsequent demo refresh changes were made with the user's authorization and are identified below. Final LaTeX course documentation remains deferred at the user's request.
|
- Member 1 owns `reviewer/`, `demo/`, reviewer tests and source evidence. Member 2 originally integrated the Actions, Jenkins, bundle/ZIP, version reservation, shared CI and monitoring. Subsequent demo refresh changes were made with the user's authorization and are identified below. Final LaTeX course documentation remains deferred at the user's request.
|
||||||
|
|
||||||
## Implemented review and live pipeline
|
## Implemented review and live pipeline
|
||||||
@@ -19,7 +20,7 @@ Updated 28 November 2026. This is the current documentation-preparation record f
|
|||||||
|
|
||||||
## Latest test correction and exact on-stage edit
|
## Latest test correction and exact on-stage edit
|
||||||
|
|
||||||
- `demo/` contains `demo.py`, `build_demo_pdf.py`, `demo_report.tex`, and `README.md`; all are needed. The prepared `demo/demo.py` is exactly one line, `print("hello")`, plus a newline. During the user-led demo, edit **only that file** and delete **only the final closing parenthesis**. Commit the resulting `print("hello"` to `feature/final-ci-demo`. The broken committed source is the review input, not the successful program to run.
|
- `demo/` contains `demo.py`, `build_demo_pdf.py`, `demo_report.tex`, and `README.md`. The earlier prepared `demo/demo.py` was exactly one line, `print("hello")`, plus a newline. Remote commit `d8cb386…` has already removed its final `)`, yielding `print("hello"` plus newline. The broken committed source is the review input, not the successful program to run. For a future repeat, restore the valid baseline in a separate prep commit before making a new one-character live edit.
|
||||||
- The final-project Actions and Jenkins unit-test commands now discover only `tests/test_reviewer.py` and `ci/tests`; unrelated legacy `tests/test_pricing.py` is excluded from this demo pipeline. `Jenkinsfile.final-project` has a separate **Compile and execute model-reviewed Python** stage. The existing `ci/final_project.py test` command compiles the verified `reviewed.py`, calls `tests/smoke_demo.py`, and independently executes `reviewed.py`, requiring exit 0 and exact `hello\n` output. Only then is `out/test-result.json` written and packaging allowed. Source details: `demo/README.md` and `handoff/member1/demo-refresh.md`.
|
- The final-project Actions and Jenkins unit-test commands now discover only `tests/test_reviewer.py` and `ci/tests`; unrelated legacy `tests/test_pricing.py` is excluded from this demo pipeline. `Jenkinsfile.final-project` has a separate **Compile and execute model-reviewed Python** stage. The existing `ci/final_project.py test` command compiles the verified `reviewed.py`, calls `tests/smoke_demo.py`, and independently executes `reviewed.py`, requiring exit 0 and exact `hello\n` output. Only then is `out/test-result.json` written and packaging allowed. Source details: `demo/README.md` and `handoff/member1/demo-refresh.md`.
|
||||||
- The Gitea Actions step **Run real model, show accepted repair and measure memory** now prints the source commit, locked model ID, measured tokens, raw model response, accepted one-character diff, and a reviewed-program smoke PASS message after the smoke check succeeds. These lines come from the real review bundle fields and the executed reviewed file; they are meant to make the fix visible in the Actions log without downloading the artifact. The bundle's `review.json` and the short Jenkins PDF remain the durable evidence. This log display has not yet been observed in a live run.
|
- The Gitea Actions step **Run real model, show accepted repair and measure memory** now prints the source commit, locked model ID, measured tokens, raw model response, accepted one-character diff, and a reviewed-program smoke PASS message after the smoke check succeeds. These lines come from the real review bundle fields and the executed reviewed file; they are meant to make the fix visible in the Actions log without downloading the artifact. The bundle's `review.json` and the short Jenkins PDF remain the durable evidence. This log display has not yet been observed in a live run.
|
||||||
- Verification of the latest test selection: `python3 -m unittest discover -s tests -p 'test_reviewer.py' -v` passed **17/17** locally on 28 November; `git diff --check` passed before commit. The new stage layout has **not** yet been seen in live Jenkins. The previously established `ci/tests` and smoke behavior were not rerun solely for this label/selection change.
|
- Verification of the latest test selection: `python3 -m unittest discover -s tests -p 'test_reviewer.py' -v` passed **17/17** locally on 28 November; `git diff --check` passed before commit. The new stage layout has **not** yet been seen in live Jenkins. The previously established `ci/tests` and smoke behavior were not rerun solely for this label/selection change.
|
||||||
@@ -27,6 +28,7 @@ Updated 28 November 2026. This is the current documentation-preparation record f
|
|||||||
## Monitoring and memory behavior
|
## Monitoring and memory behavior
|
||||||
|
|
||||||
- `ci/publish_live_metrics.py` updates cumulative `review_input_tokens_total` and `review_output_tokens_total` only after Jenkins verifies a live Actions bundle. SHA/run/attempt ledger entries prevent double counting on retry; null counts add nothing and fixtures are refused. Grafana shows cumulative counters that can increase after Jenkins publication and a Prometheus scrape. The prior 23/5 latest-run gauges remain in data for historical evidence but their flat time-series panels were removed.
|
- `ci/publish_live_metrics.py` updates cumulative `review_input_tokens_total` and `review_output_tokens_total` only after Jenkins verifies a live Actions bundle. SHA/run/attempt ledger entries prevent double counting on retry; null counts add nothing and fixtures are refused. Grafana shows cumulative counters that can increase after Jenkins publication and a Prometheus scrape. The prior 23/5 latest-run gauges remain in data for historical evidence but their flat time-series panels were removed.
|
||||||
|
- The user prefers the graphs to rise for each inference, while avoiding a new trusted publishing service. In this pipeline, inference occurs in Gitea Actions and Jenkins only verifies/publishes; each distinct successful live Actions run is counted once when Jenkins reaches its metrics stage. Counts remain unchanged during Actions. A failed/unpublished review and an Actions run that is never passed to Jenkins do not increment the graph. That timing and scope should be stated during the presentation.
|
||||||
- The deployed final-project dashboard source is `monitoring/grafana/provisioning/dashboards/json/final-project.json`; the live provisioned copy was checked in Grafana's v13 resource store. Host CPU and available-memory charts remain. Latest review duration, age, tokens availability, whole-job memory peak, target warning and hard ceiling are status cards, not flat time-series. The collector and zero counter baseline were checked; see `../outputs/demo-refresh-checks/grafana-loaded-panels.json`, `collector-baseline.txt`, and Prometheus baseline JSON files. The user's signed-in Grafana view should be visually checked during the rehearsal. Host-load charts include other services and do not measure model-only memory.
|
- The deployed final-project dashboard source is `monitoring/grafana/provisioning/dashboards/json/final-project.json`; the live provisioned copy was checked in Grafana's v13 resource store. Host CPU and available-memory charts remain. Latest review duration, age, tokens availability, whole-job memory peak, target warning and hard ceiling are status cards, not flat time-series. The collector and zero counter baseline were checked; see `../outputs/demo-refresh-checks/grafana-loaded-panels.json`, `collector-baseline.txt`, and Prometheus baseline JSON files. The user's signed-in Grafana view should be visually checked during the rehearsal. Host-load charts include other services and do not measure model-only memory.
|
||||||
- The complete inference workload **target remains 250,000,000 bytes**. Actions now has a **384,000,000-byte hard ceiling**, with swap disabled. An observed target overage is recorded as a warning in resource evidence, bundle, log and PDF if inference succeeds. An actual hard-ceiling OOM or model failure still stops the ready bundle. The previous live run reached the old page-rounded 249,999,360-byte cap with 433 `memory.events.max` events; natural uncapped peak is unknown. The new ceiling was checked in a local Docker cgroup; see `../outputs/demo-refresh-checks/memory-policy-check.txt`. No new live inference measurement under the higher ceiling has been claimed.
|
- The complete inference workload **target remains 250,000,000 bytes**. Actions now has a **384,000,000-byte hard ceiling**, with swap disabled. An observed target overage is recorded as a warning in resource evidence, bundle, log and PDF if inference succeeds. An actual hard-ceiling OOM or model failure still stops the ready bundle. The previous live run reached the old page-rounded 249,999,360-byte cap with 433 `memory.events.max` events; natural uncapped peak is unknown. The new ceiling was checked in a local Docker cgroup; see `../outputs/demo-refresh-checks/memory-policy-check.txt`. No new live inference measurement under the higher ceiling has been claimed.
|
||||||
|
|
||||||
@@ -34,10 +36,10 @@ Updated 28 November 2026. This is the current documentation-preparation record f
|
|||||||
|
|
||||||
- Earlier live integration at commit `c735c8c6934c3084944de3077dfba027bf423bef`: Gitea Actions run **43 SUCCESS**, real model **23 input / 5 output tokens**, **3.0561 seconds**, corrected output, whole-job peak **249,999,360 bytes**, no OOM kill. Jenkins `final-project-live` build **#1 SUCCESS**, 39 tests including reviewed-file smoke, and an older **170-page** PDF in immutable release **1.0.4**. Build **#2** rejected an invalid run before release; build **#3** reused byte-identical 1.0.4. The downloaded ZIP, companion checksum, payload hashes, PDF identity and extracted Python behavior were checked. This proves the earlier integrated pipeline, not the newer short-PDF rehearsal. Raw bundle, review, resource, Jenkins, Prometheus and issue evidence are indexed in `ci/evidence/live-integration/summary.json` and explained in `ci/HANDOFF.txt`.
|
- Earlier live integration at commit `c735c8c6934c3084944de3077dfba027bf423bef`: Gitea Actions run **43 SUCCESS**, real model **23 input / 5 output tokens**, **3.0561 seconds**, corrected output, whole-job peak **249,999,360 bytes**, no OOM kill. Jenkins `final-project-live` build **#1 SUCCESS**, 39 tests including reviewed-file smoke, and an older **170-page** PDF in immutable release **1.0.4**. Build **#2** rejected an invalid run before release; build **#3** reused byte-identical 1.0.4. The downloaded ZIP, companion checksum, payload hashes, PDF identity and extracted Python behavior were checked. This proves the earlier integrated pipeline, not the newer short-PDF rehearsal. Raw bundle, review, resource, Jenkins, Prometheus and issue evidence are indexed in `ci/evidence/live-integration/summary.json` and explained in `ci/HANDOFF.txt`.
|
||||||
- Earlier local Member 1 trials and raw responses are in `handoff/member1/evidence/`; the acceptance trial measured **234,405,888 bytes** under a 250,000,000-byte cap. These are local feasibility runs, not deployed Actions runs. The offline short-PDF build, targeted test logs, dashboard storage check, memory cgroup check, and one-page cue-sheet build are under `../outputs/demo-refresh-checks/` and `../outputs/rehearsal-notes/`. User-facing rehearsal PDFs are `../outputs/rehearsal-pdfs/SSW590_Rehearsal_Full.pdf` and `SSW590_Rehearsal_One_Page.pdf`. The one-page cue sheet is one column and asks the presenter to take only web UI actions.
|
- Earlier local Member 1 trials and raw responses are in `handoff/member1/evidence/`; the acceptance trial measured **234,405,888 bytes** under a 250,000,000-byte cap. These are local feasibility runs, not deployed Actions runs. The offline short-PDF build, targeted test logs, dashboard storage check, memory cgroup check, and one-page cue-sheet build are under `../outputs/demo-refresh-checks/` and `../outputs/rehearsal-notes/`. User-facing rehearsal PDFs are `../outputs/rehearsal-pdfs/SSW590_Rehearsal_Full.pdf` and `SSW590_Rehearsal_One_Page.pdf`. The one-page cue sheet is one column and asks the presenter to take only web UI actions.
|
||||||
- No user-led rehearsal has been performed by this refresh, no new release version has been reserved, and no new screenshots of its Actions/Jenkins/Grafana sequence exist. Do not quote the offline 1.0.5 preview as an issued release, the fixture counts as live tokens, or the old capped memory peak as the natural peak under 384 MB. The new dashboard should be visually checked by the signed-in user; an authenticated Grafana API check was unavailable.
|
- The user has committed the one-character demo edit, but no complete new Actions → Jenkins rehearsal has been verified by this agent, no new release version has been reserved by this refresh, and no new screenshots of its Actions/Jenkins/Grafana sequence are held here. Do not quote the offline 1.0.5 preview as an issued release, the fixture counts as live tokens, or the old capped memory peak as the natural peak under 384 MB. The new dashboard should be visually checked by the signed-in user; an authenticated Grafana API check was unavailable.
|
||||||
|
|
||||||
## Next integration and documentation evidence
|
## Next integration and documentation evidence
|
||||||
|
|
||||||
1. Push the prepared tip containing implementation commit `3ad7836e5b7e70b1c1fd95934c95748979534ab6` and this handoff to `feature/final-ci-demo` before the audience demo; check that the `[skip ci]` preparation commit did not start a real review. This requires the user's interactive Gitea credentials; do not place them in the repository.
|
1. Push a fast-forward tip containing the restored demo README, handoff, and Actions-log presentation change on top of `d8cb38616aa3ef60cdcde91032e8f150fe2add10`. This tip will have a **new full SHA and new Actions run** because Jenkins requires the selected run's SHA to match its checkout. Do not rewrite `d8cb386…` or reuse an older Actions run. The interactive helper checks the exact old remote tip and stores no credentials.
|
||||||
2. In the user-led rehearsal, create/identify the issue, make the one-character `demo/demo.py` edit, and save the new full SHA. Capture the successful Actions run ID/attempt, reviewer raw response, review JSON, token counts, resource JSON and uploaded bundle. Then trigger Jenkins with that exact identity in `live` mode, capture the separate compile/execute stage, test receipt, one-page PDF, issued version and downloaded ZIP/checksum. Check Grafana counter increase and host-load window after the scrape; save UI screenshots and exact timestamps. The user requested that the assistant not operate the system during rehearsal unless asked.
|
2. In the user-led rehearsal, save the successful new Actions run ID/attempt, reviewer raw response, review JSON, token counts, resource JSON and uploaded bundle. Then trigger Jenkins with that exact new SHA and identity in `live` mode, capture the separate compile/execute stage, test receipt, one-page PDF, issued version and downloaded ZIP/checksum. Check Grafana counter increase after Jenkins publishes and Prometheus scrapes; save UI screenshots and exact timestamps. The user requested that the assistant not operate the system during rehearsal unless asked.
|
||||||
3. Use this handoff and `handoff/member1/report-contribution.md`, `metrics-proposal.md`, `demo-refresh.md`, `ci/HANDOFF.txt`, and the new rehearsal evidence to write the final course documentation later. Clearly separate earlier 1.0.4 integration, offline preview, and new live rehearsal results. Report any failure or memory-target overage plainly.
|
3. Use this handoff and `handoff/member1/report-contribution.md`, `metrics-proposal.md`, `demo-refresh.md`, `ci/HANDOFF.txt`, and the new rehearsal evidence to write the final course documentation later. Clearly separate earlier 1.0.4 integration, offline preview, and new live rehearsal results. Report any failure or memory-target overage plainly.
|
||||||
|
|||||||
@@ -0,0 +1,29 @@
|
|||||||
|
# Controlled syntax-review demo
|
||||||
|
|
||||||
|
The current live-demo input in `demo.py` is `print("hello"` with its final
|
||||||
|
closing parenthesis missing. The preceding preparation commit contained the
|
||||||
|
valid baseline `print("hello")`; the one-character edit is already committed.
|
||||||
|
|
||||||
|
To repeat the live demonstration later, restore the valid baseline in a
|
||||||
|
separate preparation commit, then delete only its final closing parenthesis
|
||||||
|
in a new live commit. The Actions reviewer sends exactly `print("hello"` to the
|
||||||
|
SmolLM2 model. It preserves the committed input and writes the validated repair
|
||||||
|
to `reviewed.py` in the review bundle. Jenkins verifies that bundle, builds the
|
||||||
|
short versioned demo PDF, tests the reviewed program, and packages the release.
|
||||||
|
|
||||||
|
The final-project workflow runs the reviewer and pipeline unit tests. Jenkins
|
||||||
|
then has a separate `Compile and execute model-reviewed Python` stage: it
|
||||||
|
compiles the verified `reviewed.py`, runs it, and requires exactly `hello` on
|
||||||
|
standard output. The original broken `demo.py` is intentionally not executed.
|
||||||
|
Legacy `pricing.py` tests belong to the older application and are not part of
|
||||||
|
this syntax-review demo.
|
||||||
|
|
||||||
|
The dashboard's cumulative live token panels update after Jenkins verifies and
|
||||||
|
publishes the measured review metrics and Prometheus scrapes them. The valid
|
||||||
|
baseline preparation commits used `[skip ci]`; the broken-input commit and a
|
||||||
|
future live review commit must run Actions. A Jenkins retry of the same run
|
||||||
|
does not add the token counts twice.
|
||||||
|
|
||||||
|
The complete workload's 250,000,000-byte memory target is a measured warning
|
||||||
|
threshold. Actions has a 384,000,000-byte hard ceiling with swap disabled; a
|
||||||
|
target overage is retained in the review evidence while a successful run continues.
|
||||||
Reference in New Issue
Block a user