Skip to content

test(rust): verify populated acquisition withdrawal isolation - #549

Merged
LIghtJUNction merged 1 commit into
mainfrom
test/rust-acquisition-withdrawal-isolation
Sep 30, 2026
Merged

LIghtJUNction merged 1 commit into
mainfrom
test/rust-acquisition-withdrawal-isolation

Conversation

@LIghtJUNction

@LIghtJUNction LIghtJUNction commented Sep 30, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Follow-up to #548 and #542. #542 is now merged into main at 74a455a146d9d878e9a419f3b940557d91b6c90d, and this PR has been retargeted to main. It contains one Rust test file only. Fresh post-retarget CI passed, including all five PostgreSQL tests. Merged into main at 268dc3f17e968c1ee0d42736f7189f3b2ed5bf80; post-merge full CI, server qualification, and all five CodeQL analyses passed. Final main has the identical tree as the tested PR head. All five acquisition PostgreSQL tests executed successfully on main.

The previous withdrawal test asserted emptiness but did not populate most tables that withdrawal must erase. Strengthen the existing PostgreSQL round-trip test to:

  • Populate all five tables in the account revoke contract: activities, corrections, correction heads, first-payment attribution and accounts.
  • Exercise multiple activity days and correction revisions for the withdrawing user.
  • Seed a second user's account, consent, visitor and visit; compare complete snapshots to ensure withdrawal never deletes or changes unrelated data.
  • Repeat withdrawal and reassert complete target-user cleanup, preserved unrelated rows and retained explicit consent denial.

Self-reports remain covered by their separate explicit-delete assertion, consistent with existing Go/Rust semantics. No production code, database schema, API, frontend or Go changes. The compiled acquisition suite remains five PostgreSQL tests.

Verification

Passed locally with repository-pinned Rust 1.91.0:

  • cargo fmt --all --check
  • cargo clippy --locked -p lmm-api-rs --test acquisition -- -D warnings
  • cargo test --locked -p lmm-api-rs --test acquisition -- --skip postgres_: 2 passed; PostgreSQL cases compiled but not executed locally
  • python3 apps/api-rust/tests/scripts/test-new-integration-suites.py: 7 passed
  • bash apps/api-rust/tests/scripts/check-real-integration-gates.sh: passed, 96 ignored tests across 10 modules
  • git diff --check

PostgreSQL 18 integration logs for exact head 0b648702 confirm all 5 acquisition tests executed and passed (0 failed, 0 ignored), including the expanded populated-withdrawal case. Full CI run 36685526815 passed, including CI Quality Gate, Rust workspace checks, RustSec, route alignment, root-route lockfile, workflow guards and web checks.

Scope

LMM API-specific regression coverage; no issue closed. Preserves existing license/header and production semantics. No credentials or production data included.

@LIghtJUNction
LIghtJUNction changed the base branch from test/rust-route-contract-coverage to main September 30, 2026 08:20
@LIghtJUNction
LIghtJUNction marked this pull request as ready for review September 30, 2026 08:21
Copilot AI balanced review requested due to automatic review settings September 30, 2026 08:21

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 30, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
🔒 Security Review ✅ Completed 2026-09-30T08:27:49.972961Z 0b64870 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@LIghtJUNction
LIghtJUNction merged commit 268dc3f into main Sep 30, 2026
28 checks passed
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.

2 participants