Skip to content

chore(repo): move root internals to owned directories - #2142

Merged
Sinity merged 1 commit into
masterfrom
feature/chore/root-organization
Jun 19, 2026
Merged

Sinity merged 1 commit into
masterfrom
feature/chore/root-organization

Conversation

@Sinity

@Sinity Sinity commented Jun 19, 2026

Copy link
Copy Markdown
Owner

Summary

Moves repository internals that do not need to live at the top level into their owning directories: packaging/build files under packaging/ and the Pages site config under docs/site/. The root now keeps the normal project control files and public docs, while packaging and docs tooling own their implementation files.

Problem

The repository root had accumulated implementation-specific files (Containerfile, hatch_build.py, pages.toml) beside canonical root entrypoints like README.md, pyproject.toml, flake.nix, and release configuration. That made the top level noisier than necessary and kept packaging/site internals detached from the directories that own them.

Solution

  • Moved hatch_build.py to packaging/hatch_build.py and updated Hatch metadata.
  • Moved pages.toml to docs/site/pages.toml and updated the Pages renderer defaults.
  • Moved Containerfile to packaging/Containerfile and updated the container workflow, install docs, and distribution coverage metadata.
  • Removed the stale distribution gap claiming container builds only happen on release tags; the dedicated container workflow now smoke-builds relevant PRs.
  • Updated repo-layout docs and inline container build examples for the new locations.

Verification

  • python -m py_compile packaging/hatch_build.py devtools/render_pages.py devtools/pages_builder.py
  • devtools test tests/unit/site/test_renderer_behavior.py -> 15 passed
  • devtools render pages --check -> sources render successfully
  • uv build --wheel --out-dir .cache/build-smoke -> built wheel
  • devtools verify-ci-workflows -> 16 workflow files checked, no errors
  • devtools verify-manifests -> manifest consistency checks passed
  • devtools render all --check -> all generated surfaces sync OK
  • devtools verify --quick -> exit_code 0, run_id 20260619T003337Z-quick-3535144-e58d3025

Move packaging and documentation-site internals out of the repository root so the top level keeps only standard project entrypoints and required control files.

What changed:
- Move the Hatch build hook to packaging/hatch_build.py and update pyproject.toml.
- Move the Pages config to docs/site/pages.toml and update the pages renderer defaults.
- Move the OCI Containerfile to packaging/Containerfile and update the container workflow, install docs, and distribution coverage metadata.
- Remove a stale distribution gap that claimed the container image only builds on release tags; the dedicated container workflow now smoke-builds PRs touching that surface.
- Update repo-layout docs and container comments for the new ownership.

Verification:
- python -m py_compile packaging/hatch_build.py devtools/render_pages.py devtools/pages_builder.py
- devtools test tests/unit/site/test_renderer_behavior.py -> 15 passed
- devtools render pages --check -> sources render successfully
- uv build --wheel --out-dir .cache/build-smoke -> built wheel
- devtools verify-ci-workflows -> 16 workflow files checked, no errors
- devtools verify-manifests -> manifest consistency checks passed
- devtools render all --check -> all generated surfaces sync OK
- devtools verify --quick -> exit_code 0, run_id 20260619T003337Z-quick-3535144-e58d3025
@coderabbitai

coderabbitai Bot commented Jun 19, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@Sinity, we couldn't start this review because you've reached your PR review rate limit.

More reviews will be available in 38 minutes and 31 seconds. Learn how PR review limits work.

Your organization has used up its prepaid credits, and credit purchases are no longer available. Enable the review add-on in the billing tab to keep reviews running — you're only billed for reviews past your plan's rate limits ($0.25/file).

⌛ How to resolve this issue?

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 credits.

🚦 How do rate limits work?

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

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, the refill rate gradually slows as usage increases. The highest same-day bursts are limited more strictly.

Please see our Fair Usage Limits Policy for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro

Run ID: a5b8eed0-5cea-42ec-b987-9a63928528bd

📥 Commits

Reviewing files that changed from the base of the PR and between 350c7ab and 04ce63f.

📒 Files selected for processing (10)
  • .github/workflows/container.yml
  • devtools/pages_builder.py
  • devtools/render_pages.py
  • docs/installation.md
  • docs/plans/distribution-coverage.yaml
  • docs/repo-layout.md
  • docs/site/pages.toml
  • packaging/Containerfile
  • packaging/hatch_build.py
  • pyproject.toml
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feature/chore/root-organization

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 and usage tips.

github-actions Bot pushed a commit that referenced this pull request Jun 19, 2026
@Sinity
Sinity merged commit 73cf75b into master Jun 19, 2026
16 checks passed
@Sinity
Sinity deleted the feature/chore/root-organization branch June 19, 2026 00:36
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