Skip to content

docs: factual fixes from DOCS_REVIEW.md (Section A)#84

Merged
ankurs merged 2 commits into
mainfrom
docs/factual-fixes
May 1, 2026
Merged

docs: factual fixes from DOCS_REVIEW.md (Section A)#84
ankurs merged 2 commits into
mainfrom
docs/factual-fixes

Conversation

@ankurs
Copy link
Copy Markdown
Member

@ankurs ankurs commented May 1, 2026

Summary

Three factual fixes from DOCS_REVIEW.md Section A. All verified against upstream main of each repo.

A1 — Tracing howto used a non-existent function name

  • howto/Tracing.md lines 23, 25 referenced NewDatabaseSpan in prose.
  • The actual function in go-coldbrew/tracing/tracing.go is NewDatastoreSpan (the same page used the correct name in the code sample at L89 and the link reference at L308).
  • Fix: rename in prose to match the rest of the page.

A2 — Local-stack service/profile counts were wrong on three pages

  • Source of truth: cookiecutter-coldbrew/{{cookiecutter.app_name}}/docker-compose.local.yml defines 21 services across 18 single-service profiles plus the obs group profile (Prometheus, Grafana, Jaeger).
  • Index.md:45 said "19 services across 18 profiles + obs group" ❌
  • howto/local-dev.md:16 said "19 infrastructure services across 18 individual profiles plus one group profile" ❌
  • quickstart.md was already correct.
  • Fix: standardize wording across both pages.

A3 — Startup lifecycle hooks were under-documented in two pages

signals.md and readiness.md already cover CBPreStarter/CBPostStarter thoroughly. The remaining gaps:

  • howto/production.md covered shutdown hooks but not startup hooks → added a new Startup lifecycle subsection symmetric to the existing graceful-shutdown coverage.
  • architecture.md startup/shutdown sequences listed numbered steps without naming the lifecycle hooks → both sequences now name all six hooks (PreStart, PostStart, PreStop, FailCheck, Stop, PostStop) with godoc links.
  • Index.md "What You Get Out of the Box" → new Service Lifecycle Hooks feature row.

Tests

New tests/content.spec.ts "Factual accuracy" describe block asserts:

  • /howto/Tracing/ contains NewDatastoreSpan and not NewDatabaseSpan
  • Home page and /howto/local-dev/ contain "21 services" / "18 single-service profiles"
  • /howto/production/ contains "Startup lifecycle", "CBPreStarter", "CBPostStarter"

This locks the corrected wording so the same drift can't happen again.

Test plan

  • bundle exec jekyll build succeeds with no broken-link warnings
  • npx playwright test tests/content.spec.ts — new "Factual accuracy" tests pass against a local Jekyll server
  • Spot-check on the rendered site: /howto/Tracing/, /howto/local-dev/, /howto/production/, /architecture/, /

Summary by CodeRabbit

Documentation

  • Enhanced lifecycle hooks documentation: added PreStart/PostStart/PreStop/Stop/PostStop callback guidance for service initialization and shutdown sequences
  • Updated Local Dev Stack composition details: infrastructure service count adjusted to 21, with clarified 18 single-service profiles
  • Refined production startup sequence documentation to include lifecycle hook execution order
  • Updated tracing documentation terminology for consistency

Tests

  • Added content correctness validation tests covering documentation key terms and infrastructure details

…cycle hooks

- Tracing howto: rename NewDatabaseSpan -> NewDatastoreSpan (matches the
  actual function in tracing/tracing.go and the code sample on the same page)
- Index.md and local-dev.md: correct local-stack counts to 21 services
  across 18 single-service profiles plus the obs group profile
  (source of truth: cookiecutter docker-compose.local.yml)
- production.md: new "Startup lifecycle" subsection covering CBPreStarter
  and CBPostStarter, symmetric to the existing shutdown coverage
- architecture.md: startup and shutdown sequences now name all six
  lifecycle hooks (PreStart, PostStart, PreStop, FailCheck, Stop, PostStop)
  and link to the godoc
- Index.md: new feature row advertising service lifecycle hooks
- tests/content.spec.ts: new "Factual accuracy" describe block locks the
  corrected wording so it cannot drift again
Copilot AI review requested due to automatic review settings May 1, 2026 14:41
@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented May 1, 2026

Warning

Rate limit exceeded

@ankurs has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 22 minutes and 33 seconds before requesting another review.

To keep reviews running without waiting, you can enable usage-based add-on for your organization. This allows additional reviews beyond the hourly cap. Account admins can enable it under billing.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: ec652753-1ee0-4da9-a548-c9361e923012

📥 Commits

Reviewing files that changed from the base of the PR and between c199614 and d29d0e2.

📒 Files selected for processing (3)
  • Index.md
  • howto/Tracing.md
  • howto/signals.md
📝 Walkthrough

Walkthrough

This PR updates documentation across multiple files to introduce Service Lifecycle Hooks (PreStart, PostStart, PreStop, PostStop), updates Docker Compose service counts from 19 to 21, clarifies profile terminology in local development setup, replaces deprecated tracing API references, and adds content correctness test coverage.

Changes

Cohort / File(s) Summary
Service Lifecycle Hooks Documentation
architecture.md, howto/production.md
Documents new lifecycle hooks: PreStart(ctx) before server creation, PostStart(ctx) after listeners start, PreStop(ctx) before failure, and PostStop(ctx) after cleanup. Specifies execution order and abort-on-error behavior for PreStart.
Local Development Stack Info
index.md, howto/local-dev.md
Updates service count from 19 to 21 and rephrases profile description from "18 profiles" to "18 single-service profiles" with clarification of the obs group composition.
Tracing Documentation
howto/Tracing.md
Replaces deprecated NewDatabaseSpan with NewDatastoreSpan API references in examples and guidance.
Content Correctness Tests
tests/content.spec.ts
Adds new Playwright test group validating rendered page content: tracing span naming, local-stack service/profile counts, and production startup lifecycle documentation markers.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Possibly related PRs

Poem

🐰 Twenty-one services dance in compose,
PreStart and PostStart in lifecycle's pose,
Hooks spring to action, the datastore glows,
Tests check each detail as the platform grows! ✨

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately summarizes the PR's main focus: it makes factual documentation corrections from a DOCS_REVIEW document, covering tracing function names, service counts, and lifecycle hooks documentation.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch docs/factual-fixes

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
Review rate limit: 0/1 reviews remaining, refill in 22 minutes and 33 seconds.

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

Copy link
Copy Markdown

@coderabbitai coderabbitai Bot left a comment

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 the current code and only fix it if needed.

Inline comments:
In `@howto/Tracing.md`:
- Around line 23-25: Fix the wording in the tracing docs: change "The Package
provides function like `NewInternalSpan/NewExternalSpan/NewDatastoreSpan`" to
"the package provides functions like `NewInternalSpan`, `NewExternalSpan`, and
`NewDatastoreSpan` and update the following sentence to read that you must use
the context returned from those functions because the span is added to that
context; also replace "will not be add" with "will not be added" (refer to the
occurrences of NewInternalSpan/NewExternalSpan/NewDatastoreSpan and the
sentences about using the returned context).
🪄 Autofix (Beta)

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: defaults

Review profile: CHILL

Plan: Pro

Run ID: cdfbbbd0-7f0c-4629-a151-3ad1795d6805

📥 Commits

Reviewing files that changed from the base of the PR and between 81ad888 and c199614.

📒 Files selected for processing (6)
  • Index.md
  • architecture.md
  • howto/Tracing.md
  • howto/local-dev.md
  • howto/production.md
  • tests/content.spec.ts

Comment thread howto/Tracing.md Outdated
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the documentation site to correct a handful of verified factual inaccuracies (function names, local-dev stack counts, and lifecycle hook coverage) and adds Playwright assertions to prevent these facts from drifting again.

Changes:

  • Fix tracing howto prose to reference NewDatastoreSpan (not NewDatabaseSpan).
  • Standardize local dev stack wording/counts (“21 services”, “18 single-service profiles”, plus obs group profile).
  • Expand production + architecture docs to explicitly name startup/shutdown lifecycle hooks, and add Playwright “Factual accuracy” content tests.

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
tests/content.spec.ts Adds Playwright content assertions to lock corrected wording/function names.
howto/production.md Adds a “Startup lifecycle” section documenting CBPreStarter/CBPostStarter and ordering.
howto/local-dev.md Updates local-stack counts/wording to the verified numbers.
howto/Tracing.md Fixes incorrect function name in prose (NewDatastoreSpan).
architecture.md Updates startup/shutdown sequences to name lifecycle hooks and link to godoc.
Index.md Updates feature table (local-dev counts) and adds a lifecycle hooks feature row.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread howto/Tracing.md Outdated
Comment thread howto/production.md
Comment thread Index.md Outdated
- Tracing.md: fix grammar in the prose around the function names
  ("The Package provides function like" -> "The package provides functions
  like ...", "will not be add" -> "will not be added"). Pre-existing wording
  carried into this PR; flagged by CodeRabbit and Copilot.
- signals.md: align lifecycle interface table with the godoc — show
  PreStart's `error` return type and call out that returning an error
  aborts startup. Resolves the signature mismatch between this table and
  the new "Startup lifecycle" section in production.md.
- Index.md: feature row now links to the lifecycle interfaces section
  directly instead of the page-level "Shutdown Lifecycle" anchor, so the
  link text reflects that the row covers both startup and shutdown hooks.
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 7 out of 7 changed files in this pull request and generated no new comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@ankurs ankurs merged commit 0b39a6d into main May 1, 2026
11 checks passed
@ankurs ankurs deleted the docs/factual-fixes branch May 1, 2026 15:29
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.

2 participants