refactor(intake): harden ClickHouse access boundary - #942
Merged
Conversation
Signed-off-by: Brian Newsom <brnewsom@nvidia.com>
Signed-off-by: Brian Newsom <brnewsom@nvidia.com>
Signed-off-by: Brian Newsom <brnewsom@nvidia.com>
Signed-off-by: Brian Newsom <brnewsom@nvidia.com>
Signed-off-by: Brian Newsom <brnewsom@nvidia.com>
Signed-off-by: Brian Newsom <brnewsom@nvidia.com>
Signed-off-by: Brian Newsom <brnewsom@nvidia.com>
Signed-off-by: Brian Newsom <brnewsom@nvidia.com>
shanaiabuggy
approved these changes
Jul 28, 2026
Base automatically changed from
clickhouse-complete-repository-migration/brnewsom
to
main
July 28, 2026 21:28
Signed-off-by: Brian Newsom <brnewsom@nvidia.com>
Contributor
📝 WalkthroughWalkthroughClickHouse table qualification now uses shared helpers instead of ChangesClickHouse boundary cleanup
Possibly related PRs
Suggested labels: Suggested reviewers: 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
Contributor
There was a problem hiding this comment.
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 `@services/intake/tests/test_clickhouse_architecture.py`:
- Around line 26-36: Update _imports_raw_client to resolve relative ImportFrom
modules using each source path before matching clickhouse_client, so relative
and absolute imports are normalized consistently. Keep
test_raw_clickhouse_client_imports_are_confined_to_approved_modules unchanged in
enforcing exact equality against _EXPECTED_RAW_CLIENT_IMPORTS.
🪄 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: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Enterprise
Run ID: 0d8f249e-da3f-478f-9714-d50af549e776
📒 Files selected for processing (7)
services/intake/src/nmp/intake/spans/clickhouse_client.pyservices/intake/src/nmp/intake/spans/storage.pyservices/intake/tests/integration/spans/conftest.pyservices/intake/tests/integration/spans/test_clickhouse_bootstrap.pyservices/intake/tests/integration/spans/test_otlp_ingest_simple.pyservices/intake/tests/integration/spans/test_sessions_read.pyservices/intake/tests/test_clickhouse_architecture.py
💤 Files with no reviewable changes (1)
- services/intake/src/nmp/intake/spans/storage.py
Contributor
|
github-merge-queue
Bot
removed this pull request from the merge queue due to failed status checks
Jul 28, 2026
ngoncharenko
pushed a commit
that referenced
this pull request
Jul 29, 2026
* test(intake): pin ClickHouse 26.3 LTS Signed-off-by: Brian Newsom <brnewsom@nvidia.com> * refactor(intake): add ClickHouse repository boundary Signed-off-by: Brian Newsom <brnewsom@nvidia.com> * refactor(intake): migrate evaluation rollup queries Signed-off-by: Brian Newsom <brnewsom@nvidia.com> * refactor(intake): migrate evaluation session queries Signed-off-by: Brian Newsom <brnewsom@nvidia.com> * refactor(intake): add evaluation read service Signed-off-by: Brian Newsom <brnewsom@nvidia.com> * refactor(intake): migrate annotation and evaluator result storage Signed-off-by: Brian Newsom <brnewsom@nvidia.com> * refactor(intake): migrate span and trace storage Signed-off-by: Brian Newsom <brnewsom@nvidia.com> * refactor(intake): harden ClickHouse access boundary Signed-off-by: Brian Newsom <brnewsom@nvidia.com> --------- Signed-off-by: Brian Newsom <brnewsom@nvidia.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Stack
Validation
tyacross repositories and changed cleanup files: passedSummary by CodeRabbit
Refactor
Tests