Skip to content

test: share saved provisioning plan setup - #5452

Merged
freeqaz-openai merged 1 commit into
mainfrom
quality/share-provisioning-dependency-tests
Nov 11, 2026
Merged

freeqaz-openai merged 1 commit into
mainfrom
quality/share-provisioning-dependency-tests

Conversation

@freeqaz-openai

@freeqaz-openai freeqaz-openai commented Nov 11, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Share the Namespace, Secret, and request setup used by the five tests that revalidate a saved provisioning plan after a Driver change. The Plugin cases share the Driver switch setup, and the transient Sandbox and Secret cases share the check for one queued retry after the first worker attempt. Each case keeps its own refusal, replay, side-effect, audit, and cleanup assertions.

Verification

  • The owning PostgreSQL provisioning file passed all 63 cases on base 6905a203 and candidate 958dff53. The ordered results matched with zero skips, including all five affected cases. Both runs completed cleanup.
  • Workspace validation, TypeScript, scoped ESLint, formatting, and the owning CI file selection passed locally.
  • The hosted PostgreSQL Platform job passed all 63 owning cases in the same order with zero skips and successful cleanup.

@clawsweeper

clawsweeper Bot commented Nov 11, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@clawsweeper clawsweeper Bot added P3 Low-risk cleanup, docs, polish, ergonomics, or speculative feature. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Nov 11, 2026
@clawsweeper

clawsweeper Bot commented Nov 11, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR shares admission, Plugin Driver switching, and first-retry setup across five PostgreSQL provisioning tests.

Example: A Secret Driver becomes unavailable after provisioning admission.

  • Before: The test separately collected worker events and asserted one queued PROVISIONING_DEPENDENCY_UNAVAILABLE retry.
  • After: The shared helper performs those same checks, while the scenario retains its provisioning-error assertion.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The patch is focused and preserves coverage; validation consists of the reported base/candidate comparison and successful hosted checks, with detailed hosted logs unavailable to this review.
Proof confidence 🦐 gold shrimp (3/6) This maintainer-authored test-only refactor changes no shipped behavior; the supplied comparison exercises the existing PostgreSQL suite through its controller and worker harness.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Test only · Worth it: Yes · Fix scope: Complete
Reason: Shared typed setup reduces repetition while keeping the five distinct behavioral contracts visible; maintainer authorship establishes direction.

Merge readiness

✅ Ready for maintainer review

Keep this maintainer-authored draft open. The focused test refactor preserves the five scenarios’ assertions and worker timing; no actionable introduced defect was found.

Priority: P3
Reviewed head: 958dff532beb0fe5a756d892d56528404dd5831d

Before merge

None.

Findings

None.

Agent review details

How this fits together

The PostgreSQL provisioning suite submits requests through an injected controller app, runs the real controller worker with test Drivers, and checks persisted work, API responses, effects, and audit records.

flowchart LR
  A[Provisioning scenarios] --> B[Shared setup helpers]
  B --> C[Injected controller app]
  C --> D[PostgreSQL state]
  D --> E[Controller worker]
  E --> F[Test Drivers]
  D --> G[Scenario assertions]
Loading

Technical review

Best possible solution:

Retain the focused extraction and its scenario-specific assertions for normal review when the author marks the draft ready.

Do we have a high-confidence way to reproduce the issue?

No product bug is claimed; the relevant verification is preservation of the existing provisioning scenarios.

Is this the best way to solve the issue?

The extraction uses the existing fixture and worker stop hook, preserves independent expected outcomes, and adds no production seam or duplicate tests.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against d8cfd61434b8.

Provenance checked

  • Plugin Driver switch setup keeps the original intent (fix(occ): read provisioning status without rechecking the plugin policy #1446: Status must remain readable after a Plugin Driver switch, while retry and replay still revalidate the saved plan.)
  • First-attempt retry observation keeps the original intent (4295ace: Stop inside the completion pass so jitter cannot permit a second attempt before assertions.)
  • Saved Secret Driver ownership refusal keeps the original intent (fix(occ): fail provisioning work on a secret driver ownership refusal #1723: Permanently reject a saved plan whose Secrets belong to a replaced Driver, while keeping an unavailable Driver retryable.)
  • Typed fixture and test-project inclusion keeps the original intent (339f298: Share typed provisioning fixtures without changing scenario registration, assertions, worker lifecycle, or cleanup.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

Likely related people:

  • Free Wortley: Raw commit 339f298 adds tests/integration/postgres-agent-provisioning-fixture.ts:434 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 339f29863f74; files: tests/integration/postgres-agent-provisioning-fixture.ts)

Preflight source

Source unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified.

Review metrics

Metric Value Why it matters
Change footprint Production +0/-0; tests and test configuration +171/-150 The net growth adds typed shared setup while removing repeated scenario setup; no production machinery is introduced.

Labels

Label changes:

  • add P3: This is behavior-preserving test maintenance with no changed user-facing runtime contract.
  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Label justifications:

  • P3: This is behavior-preserving test maintenance with no changed user-facing runtime contract.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Rating scale

6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

Reviewed November 11, 2026, 5:13 AM ET / 10:13 UTC.

@freeqaz-openai
freeqaz-openai marked this pull request as ready for review November 11, 2026 10:16
@freeqaz-openai
freeqaz-openai requested a review from a team as a code owner November 11, 2026 10:16
@freeqaz-openai
freeqaz-openai merged commit ebf49b9 into main Nov 11, 2026
66 of 68 checks passed
@freeqaz-openai
freeqaz-openai deleted the quality/share-provisioning-dependency-tests branch November 11, 2026 10:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

P3 Low-risk cleanup, docs, polish, ergonomics, or speculative feature. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant