Repository navigation
test: characterize completion clocks and preserve raw history - #1083
Conversation
|
No actionable comments were generated in the recent review.
|
| Layer / File(s) | Summary |
|---|---|
Completion fixture and state checks internal/purchase/plan_step_clock_characterization_integration_test.go |
The fixture snapshots plan and database state and simulates prior-step completions. The test checks the plan clock, existing step-three data, and duplicate-completion behavior. |
Notification scenario checks internal/purchase/plan_step_clock_characterization_integration_test.go |
The test varies plan type, step-two outcome, and step-three date. It checks notification timing, step-three creation or retention, suppression and cooldown state, and repeat-run behavior. |
Priority:
Estimated code review effort: 2 (Simple) | ~12 minutes
Change: Other
Merge Risk: 
Minimal · up to d2519
-
This PR adds test coverage for purchase-step completion and notification timing and does not change runtime behavior. No merge-blocking risk was found in the supplied context.
Pre-merge checks: 
4 · 
1
-
Failed checks: 1 warning Passed checks: 4 passedFull details: Docstring Coverage
-
Explanation
Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 3 functions across 1 files.
Resolution
Write docstrings for the functions missing them to satisfy the coverage threshold.
-
Finishing Touches: 💡 1
-
📝 Generate docstrings: 💡
-
- Commit to this branch
- Create a new PR
🧪 Generate unit tests (beta)
-
- Commit to this branch
- Create a new PR
-
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Comment @coderabbitai help to get the list of available commands.
|
archera_reviewer_a APPROVED b790891 by archera_reviewer_a Two adversarial source passes and retained fix reviews cover the full main-based change. Verified the exact committed tree against the reviewed index and proven source, all 16 native cases passing without skips, the intended timestamp-only failure and passing assertion-deletion probe, pinned lint/build results and all 12 applicable normal hooks. Historical original-head evidence remains distinguished from the current proof. Production code is unchanged. Local approval only. Public CI, CodeRabbit review and the existing merge/deployment decision remain separate gates. |
|
archera_reviewer_b APPROVED b790891 by archera_reviewer_b Two adversarial source passes and retained fix reviews cover the full main-based change. Independently matched the committed tree, file modes and source to the approved staged artifacts and audited the 16-case native run, exact timestamp assertion failure, passing deletion probe, lint/build and normal-hook evidence. No remaining actionable local finding. Process cleanup assessment relies on the inspected guard and terminal execution receipts; no independent process-list reproduction was available in this review. Local approval only. Public CI, CodeRabbit review and the existing merge/deployment decision remain separate gates. |
|
@coderabbitai full review |
✅ Action performedFull review finished. |
|
resume-cc-audit Verification at
No merge or deployment was performed. Merge remains held pending the existing development deployment decision. Remaining #631 acceptance gaps are recorded in the parent issue; this characterization does not close it. Follow-up issues filed: none. The warning is justified above, and remaining parent-issue work is already tracked in #631. |
|
Session: claude-cc-platform Taking over this PR from |
|
Status (claude-cc-platform): this PR's approvals at
|
…pressions Since this branch was cut, main canonicalises the suppression service slug (CanonicalSuppressionService, used by suppressions_build.go after #1411/#1419/#1424/#1426), so an AWS ec2 recommendation is now stored as service "compute". The whole-row expectation in TestB3C1CompletionNotification still pinned "ec2". Update that one field to the exact current value; all other fields, the whole-struct comparison and the historical timestamp assertions are unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
New head
The approvals above are for |
|
Independent review 2 (claude-fleet, cold): APPROVE d25194b Scope: the PR is test-only, adding one file, internal/purchase/plan_step_clock_characterization_integration_test.go (+268). The base is origin/main 7e94bb2, which is also the merge base. First parent: 0e81df0 and b790891 (the characterization tests), the plain merge of main 424d914, then the one-line re-baseline d25194b. Findings: none blocking. Attacked:
Verified locally (GOTOOLCHAIN=go1.26.10, cloud config pointed at /dev/null, heavy runs under the lock):
Reviewed by an independent agent with no author context (second reviewer). Review only: nothing was pushed, and the GitHub review state is unchanged. |
|
VERDICT: APPROVE d25194b Findings:
Attacked:
|
|
Local verification at
|
Refs #631. Supersedes #1082, preserving its original branch and review history.
Characterize persisted ramp-step completion and notification clocks across 16 manual/automatic, purchased/target-met and existing/absent-root cases, including a second notification tick. Whole-row comparisons now preserve historical timestamps across the first completion and notification transitions. Production code is unchanged. The baseline fixture also checks the transaction error before its success flag.
Verified against this source locally on macOS with Docker PostgreSQL 16 and migration 130:
go build ./..., integration-tagged purchase-package lint with golangci-lint 2.10.1 and all 12 applicable normal commit hooks passed.b790891cbb22b4db9db5037085efc1ece527147dafter checking its committed tree and local proof.Provider completion is simulated and email delivery uses a counted fake sender. This does not prove live vendor behavior or exact pipeline clock equality. The veto/gate, failure, post-send and remaining UI/API slices stay open in #631. All 21 Build & Test jobs and pre-commit passed. CodeRabbit completed its exact-head review with no actionable comments; its test-docstring warning is justified in the verification comment. Platform merge is held pending the existing development deployment decision.
Summary by CodeRabbit