Skip to content

test: verify fenced retries and complete job conservation - #192

Merged
egeominotti merged 2 commits into
mainfrom
fix-ci-delivery-accounting
Nov 14, 2026
Merged

egeominotti merged 2 commits into
mainfrom
fix-ci-delivery-accounting

Conversation

@egeominotti

Copy link
Copy Markdown
Owner

Summary

Two test oracles rejected valid queue behavior: chaos accounting omitted delayed retries, and the PostgreSQL public Worker test treated an applied failure/retry as duplicate processing. The tests now check every original ID across all states and require fenced per-attempt delivery histories with exactly one durable completion.

Real SQLite and PostgreSQL regressions prove both counterexamples. The race suite retains all 18 original cases, with three additional regressions; the delivery checker has 19 rejection cases and two acceptance cases. Runtime and retry/lease settings are unchanged. The specific historical PostgreSQL CI cause remains unclassified because its original logs lacked per-attempt evidence; unexplained repeats still fail.

Type of change

  • Bug fix (non-breaking)
  • Build, CI or tooling

Compatibility

Tests and documentation only. Public APIs, protocols, schemas and runtime scheduling/retry/lease settings are unchanged; no migration.

How was this tested?

Validation on executable tree e2c50d57:

  • Full parallel sandbox: unit 11,931 pass / 0 fail / 404 skip, TCP 553 / 0, embedded 349 / 0; no errors or resource anomalies.

  • Fresh Ubuntu 24.04 arm64 Machine: unit 12,062 / 0 / 404, TCP 553 / 0, embedded 349 / 0, tinyfs 9 / 0, typecheck and format passed; logs copied and Machine deleted.

  • Complete PostgreSQL 16.16, 17.12 and 18.7 suites: each 571 pass / 0 fail / 1 opt-in soak skip.

  • Later changes affect only the changelog and work-state evidence; gate-delta.sh classifies the delta as documentation only.

  • Added or updated tests; real persistence reproductions fail with the old oracles.

  • bun run test:sandbox passes.

  • Standalone test:model and test:sandbox:sdk are not triggered by this test/documentation change; both queue/workflow models also pass inside the full unit gate.

Checklist

  • Technical docs under docs/ updated.
  • docs/src/content/docs/changelog.md updated.
  • Only synthetic test data; no secrets, credentials or real job payloads included.
  • Specific English commit messages.

@vercel

vercel Bot commented Nov 14, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
docs Ready Ready Preview Nov 14, 2026 11:27am UTC

@claude

claude Bot commented Nov 14, 2026

Copy link
Copy Markdown

Code review

No issues found. Checked for bugs and CLAUDE.md compliance.

@claude

claude Bot commented Nov 14, 2026

Copy link
Copy Markdown

Code review

No issues found. Checked for bugs and CLAUDE.md compliance.

@egeominotti
egeominotti merged commit 7901c13 into main Nov 14, 2026
39 checks passed

This branch was successfully deployed

1 active deployment
Preview — ac1cf0ca Deployed Nov 14, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant