Skip to content

Skip the help-topic coverage test on machines with a user ado directory but no Stata install - #355

Merged
jbearak merged 1 commit into
mainfrom
help-topic-coverage-needs-stata
Nov 5, 2026
Merged

jbearak merged 1 commit into
mainfrom
help-topic-coverage-needs-stata

Conversation

@jbearak

@jbearak jbearak commented Nov 5, 2026 •

Copy link
Copy Markdown
Owner

On a dev Mac with a ~/ado directory but no Stata install, tests/integration/help-topic-coverage.test.ts ran and failed for all 864 cached commands and 309 expression functions. It counted any directory from discover_stata_ado_paths() as a Stata install, and ~/ado is only a user ado directory. CI was unaffected because it has neither.

The test now runs only when discovery finds an install's ado/base, where the built-in .sthlp files live. Only install roots contribute ado/base candidates. discover_stata_ado_paths() and help resolution are unchanged.

Proof: on this machine (only ~/ado) the file now reports 0 fail and 3 skip; before the fix it failed. On voyager, which has /Applications/Stata/ado/base (StataMP 18), the same commit runs the tests and they pass (2 pass). The four gates pass on this machine.

Reviewed with sol-loop: 1 round with gpt-6.1-sol. Sol verdict: approved

Created with Claude Opus 5.5 in Claude Code (T3 Code); reviewed by gpt-6.1-sol in Codex.

Summary by CodeRabbit

  • Tests
    • Help-topic coverage checks now run only when an installed Stata environment is detected through its base ado directory. User ado directories alone no longer trigger these checks. This changes test execution only; no end-user functionality or behavior is affected.

A user ado directory such as ~/ado made the test think Stata was
installed, so it ran and failed on a dev machine without Stata.
@coderabbitai

coderabbitai Bot commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The help-topic coverage test now runs only when discovered Stata ado paths include an ado/base path. Its documentation clarifies that user ado directories alone do not qualify.

Changes: Help-topic coverage test

Layer / File(s) Summary
Stata installation check
tests/integration/help-topic-coverage.test.ts
The test now requires a discovered path whose basename is base and whose parent directory is ado. The documentation states that user ado directories alone do not qualify.

Estimated code review effort: 2 (Simple) | ~5 minutes

Change: Bug fix

Possibly related PRs

  • jbearak/sight#343: Reports the help-topic coverage test failing when it detects a partial Stata path.
Merge Risk: Minimal · up to fd880

The change safely skips help-topic coverage when no Stata installation is discovered.

Pre-merge checks: Passed 5

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title states the main change: the help-topic coverage test is skipped on machines that have a user ado directory but no Stata install. The raw summary and PR objectives confirm the test now runs o…
Docstring Coverage Passed No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentat…
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.
Full details: Title check

Explanation

The title states the main change: the help-topic coverage test is skipped on machines that have a user ado directory but no Stata install. The raw summary and PR objectives confirm the test now runs only when discovery finds an ado/base path, so the title matches the changeset. The title is specific, uses no vague terms, and is 92 characters long, which is slightly long but acceptable.

Full details: Docstring Coverage

Explanation

No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 0 functions across 1 files.

Finishing Touches

Generate docstrings

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Team
  • Run ID: d6a89989-6af6-4880-ac26-cf7e5255126d
Commits

Reviewing files that changed from the base of the PR and between 39a2060 and fd88073.

Files selected for processing: 1

  • tests/integration/help-topic-coverage.test.ts

Included review availability: This review used your included allowance. 1 included review remains after this review. Your included PR review attempts over the past 7 days set your current allowance at 8 reviews per hour.

@jbearak
jbearak merged commit 2d738ad into main Nov 5, 2026
14 checks passed
@jbearak
jbearak deleted the help-topic-coverage-needs-stata branch November 5, 2026 00:25
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