Skip to content

Ship the two health probes instead of leaving them as examples - #39

Merged
flavorjones merged 3 commits into
masterfrom
probe-operations
Sep 28, 2026
Merged

flavorjones merged 3 commits into
masterfrom
probe-operations

Conversation

@djmb

@djmb djmb commented Aug 26, 2026

Copy link
Copy Markdown
Contributor

Echo and Reopen are the operations an application copies into its cell for health checks. bc5 and HEY have both copied them, and copies drift. They move into the server gem as health.echo and health.reopen, and a cell serves them only if it requires hot_cell/health_operations.

Copilot AI balanced review requested due to automatic review settings August 26, 2026 13:59

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.

Pull request overview

Moves reusable health probes into hotcell-server as opt-in operations.

Changes:

  • Adds health.echo and health.reopen with tests.
  • Updates examples, clients, and deployment documentation.
  • Removes duplicated example implementations.

Tip

If you aren't ready for review, convert to a draft PR.
Click "Convert to draft" or run gh pr ready --undo.
Click "Ready for review" or run gh pr ready to reengage.

Reviewed changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
hotcell-server/lib/hot_cell/health_operations.rb Adds packaged health operations.
hotcell-server/test/health_operations_test.rb Tests opt-in and round-trip behavior.
examples/operations/health.rb Enables packaged probes in example cells.
examples/operations/echo.rb Removes duplicated echo operation.
examples/operations/reopen.rb Removes duplicated reopen operation.
examples/lib/clients.rb Uses new operation names.
docs/DEPLOYMENT.md Updates the reopen probe reference.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread hotcell-server/lib/hot_cell/health_operations.rb
Echo and Reopen are the operations an application copies into its cell
for health checks. bc5 and HEY have both copied them, and copies drift.
They move into the server gem as health.echo and health.reopen, and a
cell serves them only if it requires hot_cell/health_operations.
Requiring it before `hot_cell/server` raised `NameError` for `HotCell::Operation`.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The README still told applications to copy the example files this branch
deletes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@flavorjones
flavorjones merged commit ea48cfc into master Sep 28, 2026
16 checks passed
@flavorjones
flavorjones deleted the probe-operations branch September 28, 2026 16:19
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.

3 participants