Skip to content

chore: add an independent chat room consumer - #246

Merged
electrohyun merged 2 commits into
mainfrom
chore/add-chat-room-consumer
Aug 12, 2026
Merged

electrohyun merged 2 commits into
mainfrom
chore/add-chat-room-consumer

Conversation

@electrohyun

Copy link
Copy Markdown
Owner

Summary

  • Keep examples/chat-room as the canonical workspace-backed application while consumers/chat-room records only an exact released dependency, npm lockfile, and consumer instructions. A Node-only runner assembles both inputs outside the checkout, rejects Node versions below 20, verifies the installed package source and version, runs the shared application test and transcript, and removes the temporary project on success or failure.
  • Extend the existing package job with candidate-package coverage. The job packs the built source under review, changes only the temporary manifest to use that tarball, performs a clean npm install, and runs the same chat-room workflow without using workspace dependencies or root node_modules.
  • Add a separate published-package workflow for registry-backed checks on relevant pull requests and main pushes, a weekly schedule, and manual dispatch. The committed lock pins [email protected], and the README badge makes this separate check visible.
  • Add a repository-root StackBlitz entry point that skips workspace installation and starts the published-package runner. Record ADR 0024 for the same-repository assembly, rejecting a separate repository, a hand-maintained application copy, and a generated mirror unless a provider later demonstrates that it requires an independent source tree.
  • Link the consumer and sandbox from the root and application READMEs, and distinguish their packaging and integration evidence from the dual-run conformance guarantee.

Related issue

Closes #208

Checklist

  • Tests added or updated
  • Behavior verified against real socket.io (no new behavior; the shared application uses existing dual-run cases)

@github-actions github-actions Bot added chore Tooling, CI, and dependencies 📏 l Pull request changes 200–999 lines labels Aug 12, 2026
@coderabbitai

coderabbitai Bot commented Aug 12, 2026 •

Copy link
Copy Markdown

Review Change Stack

Warning

Review limit reached

@electrohyun, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 53 minutes

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: c49f82e3-0395-4529-8de1-5ff7408e07ff

📥 Commits

Reviewing files that changed from the base of the PR and between da5310b and cd0bdda.

📒 Files selected for processing (2)
  • .github/workflows/ci.yml
  • consumers/chat-room/README.md
📝 Walkthrough

Walkthrough

Adds an isolated chat-room consumer that validates published and candidate smocket packages. It connects candidate validation to CI, adds a published-consumer workflow and StackBlitz entry point, and documents the consumer boundary and validation policy.

Changes

Chat-room consumer validation

Layer / File(s) Summary
Consumer boundary and project assembly
consumers/chat-room/*, scripts/run-chat-room-consumer.mjs, package.json
Defines the independent consumer package and assembles the chat-room application in a temporary project.
Published and candidate package validation
scripts/run-chat-room-consumer.mjs
Installs and verifies either the exact published package or a tarball packed from the repository, then runs consumer tests and startup.
CI and sandbox wiring
.github/workflows/ci.yml, .github/workflows/published-consumer.yml, .stackblitzrc
Runs candidate validation in package CI and adds published validation for repository events, schedules, manual dispatch, and StackBlitz.
Consumer documentation and decision record
docs/decisions/*, README.md, README.ko.md, examples/chat-room/README.md
Documents the consumer boundary, package-input policy, validation scope, repository decision, and entry points.

Estimated code review effort: 3 (Moderate) | ~20 minutes

Sequence Diagram(s)

sequenceDiagram
  participant CI
  participant runChatRoomConsumer
  participant npmRegistry
  participant packedSmocketTarball
  participant tempConsumerProject
  CI->>runChatRoomConsumer: choose published or candidate mode
  runChatRoomConsumer->>npmRegistry: install published smocket package
  runChatRoomConsumer->>packedSmocketTarball: pack and install candidate package
  runChatRoomConsumer->>tempConsumerProject: run tests and startup
  tempConsumerProject-->>runChatRoomConsumer: return validation results
Loading

Possibly related PRs

Suggested labels: documentation

🚥 Pre-merge checks | ✅ 3 | ❌ 2

❌ Failed checks (1 warning, 1 inconclusive)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
Linked Issues check ❓ Inconclusive For [#208], the changes address the consumer, package validation, CI, sandbox, and documentation objectives, but the excluded lockfile cannot be verified. Review consumers/chat-room/package-lock.json, excluded by !**/package-lock.json, to verify the committed lockfile and published dependency resolution.
✅ Passed checks (3 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly identifies the main change: adding an independent chat-room consumer.
Description check ✅ Passed The description directly explains the consumer, validation modes, CI workflows, sandbox, documentation, and linked issue.
Out of Scope Changes check ✅ Passed All reviewed changes support [#208]'s independent consumer, package-boundary validation, CI, sandbox, documentation, or repository-structure objectives.

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

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

@electrohyun
electrohyun force-pushed the chore/add-chat-room-consumer branch from 234533b to da5310b Compare August 12, 2026 05:52

@coderabbitai coderabbitai Bot 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.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@scripts/run-chat-room-consumer.mjs`:
- Around line 71-76: Generate and add the missing
consumers/chat-room/package-lock.json using npm install --package-lock-only
--ignore-scripts --no-audit --no-fund from the consumer directory, so
assembleProject’s includeLockfile path can copy it successfully.
🪄 Autofix

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: 362e6194-3655-4dc9-a576-8da3a5605d64

📥 Commits

Reviewing files that changed from the base of the PR and between a295e2d and da5310b.

⛔ Files ignored due to path filters (1)
  • consumers/chat-room/package-lock.json is excluded by !**/package-lock.json
📒 Files selected for processing (12)
  • .github/workflows/ci.yml
  • .github/workflows/published-consumer.yml
  • .stackblitzrc
  • README.ko.md
  • README.md
  • consumers/chat-room/README.md
  • consumers/chat-room/package.json
  • docs/decisions/0024-assemble-consumer-from-canonical-example.md
  • docs/decisions/README.md
  • examples/chat-room/README.md
  • package.json
  • scripts/run-chat-room-consumer.mjs

Comment thread scripts/run-chat-room-consumer.mjs Resolved
@electrohyun
electrohyun force-pushed the chore/add-chat-room-consumer branch from da5310b to cd0bdda Compare August 12, 2026 05:58
@electrohyun
electrohyun merged commit ff7a8b4 into main Aug 12, 2026
26 of 27 checks passed
@electrohyun
electrohyun deleted the chore/add-chat-room-consumer branch August 12, 2026 06:02
@electrohyun electrohyun self-assigned this Aug 12, 2026
@github-project-automation github-project-automation Bot moved this to Done in smocket Aug 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

chore Tooling, CI, and dependencies 📏 l Pull request changes 200–999 lines

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

docs: add a published-package sandbox for the chat room example

1 participant