Skip to content

docs: fix broken Data Streams doc link in README - #3180

Closed
xiaoyaoqilan wants to merge 2 commits into
dimensionalOS:mainfrom
xiaoyaoqilan:fix/readme-data-streams-broken-link
Closed

docs: fix broken Data Streams doc link in README#3180
xiaoyaoqilan wants to merge 2 commits into
dimensionalOS:mainfrom
xiaoyaoqilan:fix/readme-data-streams-broken-link

Conversation

@xiaoyaoqilan

Copy link
Copy Markdown
Contributor

README pointed to docs/usage/data_streams/README.md, which does not exist. The actual file is index.md. Redirect the link so it resolves.

The WHITELIST path comparisons in test_get_logger, test_no_sections,
and test_no_dunder_new compare `rel_path` against "/" - hardcoded paths.
But `rel_path` is built from `os.path.relpath` / `Path.relative_to`,
which yield OS-native separators ("\\" on Windows). On any OS where
`os.sep != "/"`, the comparison never matches, so the whitelist is
dead code: it masks real violations and reports spurious ones.

test_no_get_logger currently fails on Windows with 8 false positives
(the 8 whitelisted `logging.getLogger` usages all get flagged). The
same latent bug affects test_no_sections (docker_module.py sentinel)
and test_no_dunder_new (mujoco __new__).

Normalize `rel_path` to forward slashes before comparing. No-op on
Linux/macOS, correct everywhere. Verified: the three checks now pass
on Windows and are unchanged on POSIX.
README pointed to docs/usage/data_streams/README.md, which does not
exist. The actual file is index.md. Redirect the link so it resolves.
@greptile-apps

greptile-apps Bot commented Jul 25, 2026

Copy link
Copy Markdown
Contributor

Greptile Summary

Corrects the README’s Data Streams link and makes three codebase-check whitelist comparisons platform-independent.

  • Points the Data Streams documentation link to the existing index.md.
  • Normalizes relative paths to forward slashes before matching whitelist entries on Windows.

Confidence Score: 5/5

The PR appears safe to merge with no actionable defects identified.

The corrected documentation target exists and follows neighboring link conventions, while all three path changes consistently normalize OS-native separators before exact whitelist comparisons.

Important Files Changed

Filename Overview
README.md Updates the broken Data Streams link to the existing documentation entry point.
dimos/codebase_checks/test_get_logger.py Normalizes relative paths before comparing them with forward-slash whitelist entries.
dimos/codebase_checks/test_no_dunder_new.py Adds equivalent cross-platform path normalization for dunder-new whitelist matching.
dimos/codebase_checks/test_no_sections.py Adds equivalent cross-platform path normalization for section-marker whitelist matching.

Reviews (1): Last reviewed commit: "docs: fix broken Data Streams doc link" | Re-trigger Greptile

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