Repository navigation
fix(showcase): restore bounded PocketBase result capacity - #7549
Conversation
Register private container and volume ownership before allocation. Attempt evidence and each cleanup independently. Preserve the original failure alongside finalization errors, and stop retained containers or fall back to removal. Call-site audit: volume/start retain their existing capacity proof callers. attempt and ownedDocker are private finalization helpers with no public exports. Eight real Docker fault regressions, the ordinary capacity proof, scoped format/lint, and the existing scripts suites verify the change. Production migrations are unchanged.
|
Important Review skippedIgnore keyword(s) in the title. ⛔ Ignored keywords (4)
Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Repository: CopilotKit/CopilotKit/.coderabbit.yaml Review profile: CHILL Plan: Advanced Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Production Digest-Pinning AuditAll 42 services digest-pinned. Run 2026-09-30 20:31:50 PDT — 0 finding(s). |
…nce (#7550) Selected fleet results still used separate status and history writes, so a history failure could be acknowledged as processed. This connects selected observations to the atomic PocketBase endpoint in #7548. Status, history, and the durable observation receipt commit together; persistence failures propagate to the existing consumer and leave the job unprocessed. Selection comes from the persisted job payload. Selected D5 keys use the canonical d5 namespace; aggregate and off-scope rows are excluded. Interrupted results reuse the same run, including after the boot stale-run sweep, and committed observation receipts replay without duplicate history, counters, or status events. A completed-run fingerprint is recorded only after all selected observations and required run finish succeed. The caller asks the endpoint to validate durable receipt replay. The existing writer calculations and ordinary/unfiltered behavior remain. This change adds no probe execution, retry/skip qualification, dashboard UI, storage schema, or test framework. It does not establish honest functional green. Validation: - Focused regression cases failed against the prior caller, then passed with the integration; existing relevant suites and the repaired orchestrator job-lookup case passed. - Harness Nx typecheck/build and scoped format passed. Lint has zero errors and the same 102 warnings as the exact base; the new helper has no diagnostics. - A private real PocketBase run reproduced the old false acknowledgement. With the candidate, a successful prefix committed once, a later history-validation failure rolled back and left the job unprocessed, and a new consumer process ran the real stale-run sweep before recovering the same run. Prefix data/history/receipt, excluded aggregate/off-scope rows, and the raw worker result stayed unchanged; the later observation gained exactly one history row and receipt. All disposable resources were removed. This PR is stacked on #7548 and should follow its endpoint deployment. Capacity restoration is separate in #7549. Preserve database schema/data across application rollback and follow the artifact's staged rollout with a complete D5/D6 observation between changes. No deployment is included. Restart reference: narrowly restores the persistence seam from #7256, without restoring its producer and qualification policy changes.
Complete fleet results can exceed the existing 65,536-byte probe_jobs.result limit and fail persistence. This restores the additive migration from #7335 byte-for-byte, raising the finite limit to 2,000,000 bytes while preserving existing larger limits and other schema options. Missing or incorrectly typed fields fail with a specific migration error. The down callback remains a no-op.
The focused integration driver uses official PocketBase images and disposable local databases. It checks baseline rejection, full payload equality after upgrading the same row, finite overflow rejection, fresh installs, preserved larger limits, malformed schema guards, exact migration re-execution, and application-image rollback and re-upgrade. No down migration is run. Its synthetic fixture verifies storage capacity; it is not evidence that demo features pass.
Removed the Docker lifecycle fault suite, custom-input test, legacy failure mode, evidence writer, artifact retention options, and duplicate payload hashes. Direct database assertions and owned-resource cleanup remain. Production migration behavior is unchanged.
Validation: the retained real PocketBase suite passed on official images, including baseline rejection, upgrade/fresh writes, guards, finite overflow, idempotence, and application-image rollback/re-upgrade. Scoped Nx format/lint and JavaScript syntax checks passed; the full official Docker image built successfully. Test containers and volumes were removed.
Deploy separately after the endpoint prerequisite, retaining schema/data and observing a complete staging D5/D6 cycle before the next change. No rollout is included.
Restart references: #7335, #7340. This does not reverse the broader showcase rollback or merge the archive.