Skip to content

fix(showcase): restore bounded PocketBase result capacity - #7549

Merged
contextablemark merged 8 commits into
mainfrom
contextablemark/restart-pocketbase-capacity
Oct 1, 2026
Merged

contextablemark merged 8 commits into
mainfrom
contextablemark/restart-pocketbase-capacity

Conversation

@contextablemark

@contextablemark contextablemark commented Oct 1, 2026 •

Copy link
Copy Markdown
Contributor

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.

jpr5 and others added 7 commits September 30, 2026 16:19
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.
@coderabbitai

coderabbitai Bot commented Oct 1, 2026 •

Copy link
Copy Markdown
Contributor

Important

Review skipped

Ignore keyword(s) in the title.

⛔ Ignored keywords (4)
  • fix(showcase)
  • feat(showcase)
  • chore(release)
  • chore: release

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Repository: CopilotKit/CopilotKit/.coderabbit.yaml

Review profile: CHILL

Plan: Advanced

Run ID: 1b5d4f17-3b80-4ba7-8db8-69d2f95c1ccd

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
  • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Autopilot is currently an internal CodeRabbit preview.


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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@github-actions

github-actions Bot commented Oct 1, 2026 •

Copy link
Copy Markdown
Contributor

Production Digest-Pinning Audit

All 42 services digest-pinned.

Run 2026-09-30 20:31:50 PDT — 0 finding(s).

@contextablemark
contextablemark marked this pull request as ready for review October 1, 2026 01:59
contextablemark added a commit that referenced this pull request Oct 1, 2026
…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.
@contextablemark
contextablemark merged commit 7fd2407 into main Oct 1, 2026
27 checks passed
@contextablemark
contextablemark deleted the contextablemark/restart-pocketbase-capacity branch October 1, 2026 03:51
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.

3 participants