Loading page...Загружаем страницу...正在加载页面...
AtlasRepo

The Senior Kept the Wire Digest After the Load Test Lied

Описание и применение

Автоматический тест, измеряющий только задержку, не гарантирует корректность API. Внедренный «wire‑digest»‑гейт фиксирует статус, тип контента и SHA‑256 тела ответа, сравнивая их с зафиксированным снимком, тем самым предотвращая регрессии в контракте и данных.

Задача

Automated load tests that only measure latency and ignore response body can give false confidence, allowing regressions in API contract and data integrity to slip into production.

Результат

The new gate prevents regressions in API contract and data integrity while keeping CI fast and deterministic. It replaces fragile load tests with a concrete, verifiable snapshot of the wire.

Рабочий процесс

  • 1. Start the app in the same way CI does.
  • 2. Send a single, frozen request (method, path, headers).
  • 3. Record status code, content‑type, and SHA‑256 of the raw body.
  • 4. Compare these three fields to a committed snapshot; if any differ, require a pairing signature.
  • 5. Log elapsed time in coarse buckets (fast/ok/slow) but do not gate on it.

Доказательства

The senior asked for the body. The next model turn offered to log res.headers. Headers in a console are not an oracle.

Источник

The gate is deliberately boring: ... Compare those three fields to a committed snapshot.

Источник

  • Дата записи: 2026-09-22T12:15:28.731Z