Skip to content

test: gate community-only tenant cases from EE - #21874

Merged
JinHai-CN merged 1 commit into
infiniflow:mainfrom
buua436:go147
Nov 2, 2026
Merged

JinHai-CN merged 1 commit into
infiniflow:mainfrom
buua436:go147

Conversation

@buua436

@buua436 buua436 commented Nov 2, 2026

Copy link
Copy Markdown
Contributor

What problem does this PR solve?

Move the two community-only tenant tests into !ee test files so they continue to run in community builds without failing the enterprise test suite. Keep the shared test helpers and remaining tests available to both editions.

Type of change

  • Refactor (no functional change)

@coderabbitai

coderabbitai Bot commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

No actionable comments were generated in the recent review.

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: Advanced
  • Run ID: 2db130fb-2b87-4dc6-9289-fd2d61bb98d0
Commits

Reviewing files that changed from the base of the PR and between 543f57e and 169bdee.

Files selected for processing: 4
  • internal/service/memory_message_owner_tenant_test.go
  • internal/service/memory_message_test.go
  • internal/service/search_active_tenant_test.go
  • internal/service/search_test.go
Files with no reviewable changes: 2
  • internal/service/memory_message_test.go
  • internal/service/search_test.go

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.

Walkthrough

The PR moves two service tests into dedicated test files. One covers owner-tenant model resolution when a team member updates memory. The other covers active-tenant identity in completion plans.

Changes: Memory owner-tenant model test

Layer / File(s) Summary
Move the memory model-resolution test
internal/service/memory_message_owner_tenant_test.go, internal/service/memory_message_test.go
The test was added to a dedicated file and removed from its previous file. It checks that the updated memory stores the owner tenant’s model ID.

Search active-tenant identity test

Layer / File(s) Summary
Move the search identity test
internal/service/search_active_tenant_test.go, internal/service/search_test.go
The test was added to a dedicated file and removed from its previous file. It checks the completion plan’s success code and identity. The unused common import was removed.

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

Change: Refactor

Suggested labels: ci, ☯️ refactor

Suggested reviewers: wangq8

Merge Risk: Minimal · up to 169bd

The community-only tests are being separated from EE builds. No merge-blocking risk was identified.

Pre-merge checks: Passed 4 · Failed 1

Failed Failed checks: 1 warning

Check name Status Explanation Resolution
Docstring Coverage Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentat… Write docstrings for the functions missing them to satisfy the coverage threshold.
Passed Passed checks: 4 passed
Check name Status Explanation
Title check Passed The title clearly identifies the change: gating community-only tenant tests from EE test runs.
Description check Passed The description explains the problem, intended solution, scope, and refactor classification. It provides the required summary information under a different heading than the template.
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: Docstring Coverage

Explanation

Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. 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 2 functions across 2 files.

Resolution

Write docstrings for the functions missing them to satisfy the coverage threshold.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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

A rabbit checks the tests at dawn,
Two hops, two files, the old lines gone.
Owner models match their place,
Search plans keep the tenant’s trace.
Then carrots crunch, and checks pass on.

@buua436 buua436 added the ci Continue Integration label Nov 2, 2026
@buua436
buua436 requested a review from wangq8 November 2, 2026 12:58
@JinHai-CN
JinHai-CN merged commit 5fa9608 into infiniflow:main Nov 2, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci Continue Integration

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants