Allow constrained pricing health checks to complete

This commit is contained in:
2026-11-15 21:54:21 -05:00
parent a19fab34e3
commit 34f26e6948
15 changed files with 460 additions and 67 deletions
@@ -0,0 +1,74 @@
# Staging deployment, blocked rerun and health-timeout trial
Client date: 15 November 2026 (Eastern). Execution timestamps below are
16 November UTC. Billy approved PR 25 at 01:46:19 UTC; Vincent merged it at
01:51:04 as `a19fab34e39420811e73f91fcfbb82ee598bd74a`.
[Pricing build 4](https://ci.yebilly.me/job/secure-delivery/job/pricing/4/)
selected that full source/configuration commit. It began 02:00:09.554 UTC,
took 198.101 seconds and finished FAILURE. Twelve control tests, three app
tests, source/dependency gates and both image gates passed. The published image was:
```text
git.yebilly.me/ssw590-group1/pricing@sha256:63e2e3d49a5119b1064868b0b15b39a1719a60a632ff0ecdc3f676fcdc55de3b
```
The noninteractive SSH correction worked. Initial staging deployment ran
02:01:48.628–02:02:58.341 UTC (69.713 seconds) and passed all HTTPS health,
version, source-SHA and quantity=3 total=30 assertions. Its recap was
`ok=10 changed=4 unreachable=0 failed=0`.
The unchanged rerun ran 02:03:01.314–02:03:25.201 UTC (23.887 seconds).
Directory/template checks were unchanged, but Compose stopped because the
existing container was unhealthy: `ok=4 changed=0 unreachable=0 failed=1`.
This is **not** a passed idempotence gate. Jenkins skipped production approval
and deployment. All reports are archived in build 4 and copied to ignored
`build/evidence/assignment8-execution/jenkins-4/`. These records are not
known-good rollback selections in `delivery/releases/`.
## Diagnosis
Docker reported `Health check exceeded timeout (3s)`. Its recorded probe
durations were near three seconds, including successful probes. The staging
container later recovered without a restart; an HTTPS health request returned
`{"status":"ok","version":"v1"}`. Gunicorn remained running. The observed
container had no OOM kill, about 48.56 MiB usage against 64 MiB, and memory-limit
events without OOM events. CPU quota is 0.25. This supports a probe deadline
problem under these constraints; it does not establish that every later health
failure has that cause.
## Bounded diagnostic of the correction
At 02:06:37–02:08:24 UTC a temporary container ran the **same reviewed image**
with the same UID, read-only filesystem, capability restrictions, 64/96 MiB
RAM/RAM+swap, 0.25 CPU and 64 PID cap. It had no Docker network, published port,
proxy alias, deployment directory or app data volume. Only Docker's overall
health timeout was overridden to ten seconds. The HTTP request timeout remained
two seconds. Existing staging and shared services were unchanged.
Eight consecutive probes passed, taking 5.660, 3.183, 3.109, 2.905, 2.999,
3.183, 3.698 and 2.817 seconds. The final state was healthy; memory events
showed no limit hit or OOM. CPU throttling was observed. The temporary container
was removed by its exact newly created ID in a finally block. The
[exact diagnostic script](health-timeout-trial-20261115.py) and
[raw JSON](health-timeout-trial-20261115.json) preserve the experiment.
The Dockerfile correction changes only the overall health-check timeout from
three to ten seconds. It keeps the endpoint, request timeout, retry count,
cadence, startup period and all resource/security limits. It still needs review
and a successful assessed release; this diagnostic did not deploy production.
## v1 and v2 review sequence
The branch also prepares the required v2 source/test change: VERSION=v2,
UNIT_PRICE=12, quantity 3 total=36. Three local functional tests and twelve
control tests passed. The Windows functional environment used Flask 3.1.3 and
Werkzeug 3.1.8; deployment remains locked to Werkzeug 3.1.9 and must pass the
real Jenkins gates. Docker Desktop was not running; the remote runners remain
independent of it.
Keep two commits: first the health fix with v1 source, then the v2 app/test
change. Review both in one PR and merge with a merge commit, preserving their
SHAs. Run v1 with the first reviewed commit and v2 with the second; each still
requires staging/idempotence and real human production approval. Save and
review the actual successful release records before either recovery exercise.