GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix(replica): replay atomic tutorial writes on current pre-dev (#773) by Storypapst · Pull Request #830 · OpenResilienceInitiative/ORISO-UserService

Conversation

@Storypapst

@Storypapst Storypapst commented Jul 27, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Collaborator

What changed

  • replaces the tutorial-progress read-then-insert race with one MariaDB ON DUPLICATE KEY UPDATE
  • keeps the canonical post-write read inside a small READ_COMMITTED transaction owner
  • serializes first writes per user with a database advisory lock, so replicas creating different scopes cannot exceed the row cap
  • hashes the user identifier when deriving the lock name; raw identifiers are not stored as lock names
  • keeps existing-scope updates on the lock-free path
  • adds real MariaDB contracts for same-scope first-write, different-scope row-cap, and lock-release behavior
  • adds a required two-JVM authenticated load/restart proof with shared disposable MariaDB and Redis

Current-base replay

The branch contains current pre-dev at 947cd1baa142cc4ac9360a96f4694be5e932c657. Two conflicts were resolved:

  • the MariaDB workflow now runs the tutorial contract together with the already-merged database drift, statistics, Organizer, and group-chat-deactivation contracts
  • the identical Java 21 helper retains the executable mode required by the replica runner

The exact current-base diff is 13 files (1,246 insertions, 108 deletions).

Architecture boundary

The sole chat system is Matrix through the ORISO-owned frontend. Calls use an ORISO-controlled Element Call / MatrixRTC fork and LiveKit. The runner and production change contain no Rocket.Chat or Jitsi configuration, dependency, or fallback.

Exact-head verification

Exact head: 391d3ef2ff6cc2f269b60457a8ca728e90396f94

  • focused tutorial unit suite: 9 tests, 0 failures/errors/skips
  • tutorial controller E2E: 5 tests, 0 failures/errors/skips
  • full unit suite: 3,411 tests, 0 failures, 0 errors, 4 existing pre-dev quarantine skips
  • full integration suite: 849 tests, 0 failures, 0 errors, 9 environment-gated skips
  • real MariaDB tutorial replica contract on a fresh disposable database: 4 tests, 0 failures/errors/skips
  • complete Python CI guards: 35 passed
  • Spotless, Python syntax, shell syntax and diff checks passed
  • all 12 exact-head GitHub checks are terminal green, including branch/PR builds, Docker validation, both required-integration jobs, both combined MariaDB contracts, Redis, OpenAPI, API diff, and Required PreDev CI
  • all disposable MariaDB/Redis containers and both local service processes were removed; no persistent database was reset

Real two-replica proof

  • initial phase: 80 concurrent authenticated PUTs plus one GET per replica; 82 operations, 0 failures, 48.80 ms aggregate p95
  • restart phase: restart one service process, then 12 PUTs plus one GET per replica; 14 operations, 0 failures, 22.51 ms aggregate p95
  • exactly one canonical version-1 database row remained
  • no duplicate-key warning was emitted
  • the same zero-error and 1,000 ms p95 bounds passed per operation and per replica

Deployment boundary

This PR contains source, local, real two-replica, and exact-head CI verification. It is open, not merged or deployed, and does not by itself authorize replica scale-out.

Supersedes #774
Closes #773
Refs #543, #734

🤖 Generated with Claude Code

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Storypapst added 3 commits July 27, 2026 20:57
@Storypapst
fix(replica): make authenticated tutorial writes atomic (#773)
fd44b60
@Storypapst
test(load): warm replica proof on an isolated scope (#773)
8aa9743
@Storypapst
test(load): align replica proof with Matrix-only pre-dev (#773)
b2228e8
@Storypapst
Storypapst requested review from Hassan9215, shanzaeimran and shazia-k July 27, 2026 19:05
@coderabbitai

coderabbitai Bot commented Jul 27, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

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: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 9bf71ad2-4648-4cd5-aa76-2e3ac1d72eed

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
✨ Finishing Touches
✨ Simplify code
  • Create PR with simplified code
  • Commit simplified code in branch replay/tutorial-atomic-writes-773

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
  • X
  • Mastodon
  • Reddit
  • LinkedIn

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

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

This was referenced Jul 27, 2026
Prove authenticated writes across two UserService replicas #773
Closed
fix(replica): make authenticated tutorial writes atomic (#773) #774
Closed
@kiodreambau kiodreambau mentioned this pull request Jul 28, 2026
Stabilize UserService non-blocking CI gates #335
Closed
@Storypapst @claude
fix(replica): serialize tutorial row-cap writes (#773)
847c270
Co-Authored-By: Claude Opus 4.8 <[email protected]>
@Storypapst Storypapst self-assigned this Jul 28, 2026
@Storypapst @claude
test(replica): keep required tutorial proof portable (#773)
73c6074
Co-Authored-By: Claude Opus 4.8 <[email protected]>
@Storypapst
Storypapst marked this pull request as ready for review July 28, 2026 04:45
@Storypapst

Storypapst commented Jul 28, 2026

Copy link
Copy Markdown
Collaborator Author

Exact-head evidence for 73c607428a9e6dd1cefd81002dc65a209ac09494:

  • 12/12 configured checks terminal green, including both 844-test Required Integration jobs and both real MariaDB/two-replica jobs
  • local Required Integration: 79 reports / 844 tests, 0 failures, 0 errors, 7 environment-gated skips
  • local real MariaDB tutorial contract: 4 tests, including different-scope row-cap serialization and release-after-rejection
  • local two-JVM proof: 82 initial operations, 0 failures, 41.76 ms p95; 14 measured post-restart operations, 0 failures, 19.22 ms p95; one canonical row
  • merge-tree clean with perf(admin): replay tenant-safe consultant agency read collapse (#764) #827, fix(observability): replay bounded OTP admin-session retry metric (#766) #828, test(stability): replay zero-quarantine guard on current pre-dev (#768) #829, refactor(identity): replay provider-neutral magic-link sessions (#770) #831, perf(agency): replay bounded outage fallback calls (#785) #832, fix(runtime): remove obsolete MongoDB stack (#855) #856 and feat(observability): bound Keycloak transport and redact traces (#857) #862
  • test(load): replay measured two-replica mixed reads (#743) #834 has only an identical-content add/add mode conflict on scripts/load/ensure-java-21.sh; retain executable mode

CodeRabbit was configured/skipped while the PR was draft and is not human review. Requested human reviewers remain shazia-k, Hassan9215 and shanzaeimran. This is source/CI readiness only; it is not merged or deployed PreDev proof.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@cursor

cursor Bot commented Jul 28, 2026

Copy link
Copy Markdown

Bugbot is not enabled for your account, so this pull request was not reviewed.

Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

This was referenced Jul 28, 2026
Measure and bound asynchronous LiveService delivery #854
Merged
feat(observability): replay Matrix sync cycle traces (#760) #825
Merged
Make Matrix sync background traces attributable #760
Closed
fix(notification): replay group-chat reminder idempotency (#845) #846
Merged
Prove group-chat reminder idempotency across replicas #845
Closed
fix(notification): serialize inactive email dispatch (#847) #848
Merged
Serialize inactive-account notification dispatch across replicas #847
Closed
test(appointment): prove cleanup idempotency (#849) #850
Merged
Prove appointment cleanup idempotency on MariaDB #849
Closed
test(group-chat): prove Matrix deactivation serialization #852
Merged
Prove Matrix group-chat deactivation serialization #851
Closed
test(stability): replay zero-quarantine guard on current pre-dev (#768) #829
Merged
@Storypapst
Merge remote-tracking branch 'origin/pre-dev' into replay/tutorial-at…
391d3ef
…omic-writes-773

# Conflicts:
#	.github/workflows/mariadb-contract.yml
#	scripts/load/ensure-java-21.sh
shazia-k
shazia-k approved these changes Jul 28, 2026
View reviewed changes
@shazia-k
shazia-k merged commit 9a69ae9 into pre-dev Jul 28, 2026
12 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@shazia-k
shazia-k deleted the replay/tutorial-atomic-writes-773 branch July 28, 2026 09:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@shazia-k shazia-k shazia-k approved these changes
@Hassan9215 Hassan9215 Awaiting requested review from Hassan9215
@shanzaeimran shanzaeimran Awaiting requested review from shanzaeimran

Uh oh!

There was an error while loading. Please reload this page.

Assignees

@Storypapst Storypapst

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@Storypapst @shazia-k
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.