Skip to content

test(e2e): stop sharing a Project from the owner's Viewer, and run two more scenarios in CI - #3079

Merged
kunickiaj merged 1 commit into
mainfrom
test/flow4-owner-stop-sharing
Nov 29, 2026
Merged

kunickiaj merged 1 commit into
mainfrom
test/flow4-owner-stop-sharing

Conversation

@kunickiaj

@kunickiaj kunickiaj commented Nov 29, 2026 •

Copy link
Copy Markdown
Owner

Description

ADR 0007 requires an end-to-end test for each sync and sharing flow that completes without Advanced or the CLI. Flow 4, "Stop sharing a Project with someone", was covered only from the recipient's side. This adds the owner's side to the project-withdrawal scenario, and runs that scenario and pre-sync-share in CI.

  • Owner stops sharing: after the recipient has stopped and resumed alpha, the owner removes the recipient's Identity from alpha through the Viewer's recipient policy routes, previewing and then committing the change as Projects → Update sharing does. The scenario waits until the owner revokes the recipient's access to alpha. The owner then writes to both Projects. The recipient receives the beta write, nothing more from alpha, and removes every copy of alpha it held. Every beta copy stays. Skipping the owner's change makes the scenario fail.
  • User guide: a new sentence says that removing someone from a Project stops delivery to their devices, and that each device removes its copies of that Project's memories at its next sync with the owner.
  • CI: e2e:pre-sync-share and e2e:project-withdrawal join the specialized E2E matrix in ci.yml (pushes to main and release runs) and in e2e-full.yml (daily, manual, and pull requests labeled ci:full). The workflow contract test and the E2E README list them.

Type of Change

  • 🚀 Feature (new functionality)
  • 🐛 Bug fix (fixes an issue)
  • 📚 Documentation (docs-only change)
  • 🔧 Maintenance (refactor, chore, CI, etc.)
  • 🧪 Testing (test-only changes)

Testing

  • CODEMEM_E2E_BUILD=1 pnpm run e2e:project-withdrawal passed in an isolated Docker stack with synthetic data. With the owner's change removed, it fails because the recipient still holds its alpha copies.

  • pnpm run e2e:pre-sync-share passed.

  • pnpm run test:ci-workflow passed (75 tests), and the lint ratchet passed.

  • Relevant checks pass locally (pnpm run tsc, pnpm run lint, pnpm run test)

  • Added/updated tests for changes

  • Manually verified changes work as expected

Checklist

  • Code follows project style (pnpm run lint passes for touched files)
  • Self-review completed
  • Documentation updated (if needed)
  • No new warnings introduced

…o more scenarios in CI

ADR 0007 flow 4, from the owner's side: the owner removes the
recipient's Identity from one Project through the Viewer's recipient
policy routes, as Projects -> Update sharing does. The recipient then
receives nothing more for that Project and removes its copies of it,
while the other shared Project keeps syncing. The user guide now says
so.

The project-withdrawal and pre-sync-share scenarios join the
specialized E2E matrix in CI and in Full E2E.
@kunickiaj kunickiaj added the ci:full Force the full CI suite for this pull request label Nov 29, 2026
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 29, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-29T06:06:13.346658Z c7660b1 PR opened
ℹ️ 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.

Copy link
Copy Markdown
Owner Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

@kunickiaj
kunickiaj merged commit 10e0df0 into main Nov 29, 2026
30 checks passed
@kunickiaj
kunickiaj deleted the test/flow4-owner-stop-sharing branch November 29, 2026 06:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci:full Force the full CI suite for this pull request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant