Skip to content

test(service): Reopen isolated Redis after process exit - #452

Merged
danny-avila merged 1 commit into
mainfrom
danny-avila/reopen-test-redis
Dec 5, 2026
Merged

danny-avila merged 1 commit into
mainfrom
danny-avila/reopen-test-redis

Conversation

@danny-avila

Copy link
Copy Markdown
Collaborator

Summary

The ephemeral Redis fixture removes its data on shutdown, so a process-crash test cannot recover against the original files. Add a Unix-socket-only fixture with a private AOF directory beneath caller-supplied scratch space. It disables snapshots and uses appendfsync always so tests can use the write reply as the durability barrier.

reopen waits for Redis readiness; stop waits for child exit without removing data; dispose removes only fixture-owned paths. The Linux CI test verifies SIGKILL, recovery on the same directory inode, graceful stop and reopen, and final cleanup. Existing ephemeral callers retain their API. This is test-only and independent of #451.

Verification

  • 60 focused Bun tests passed: Redis recovery, checkpoint lease tickets, egress ledger/reconnect, store pairing, and file server.
  • Scoped strict TypeScript check and git diff --check passed.

@danny-avila

Copy link
Copy Markdown
Collaborator Author

@codex review

Please review exact head 4999405. Focus on Redis child lifecycle, deterministic AOF recovery, and fixture cleanup.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Dec 5, 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-12-05T14:13:59.525339Z 4999405 Manual request
ℹ️ 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.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. 🚀

Reviewed commit: 499940549a

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@danny-avila

Copy link
Copy Markdown
Collaborator Author

@codex review

Pass 2 of 3 on head 4999405.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Chef's kiss.

Reviewed commit: 499940549a

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@danny-avila

Copy link
Copy Markdown
Collaborator Author

@codex review

This is the final review for this PR (pass 3 of 3) of head 4999405. Please flag only blocking issues: correctness, security, or data loss.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Hooray!

Reviewed commit: 499940549a

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@danny-avila
danny-avila merged commit 19c505e into main Dec 5, 2026
24 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.

1 participant