Skip to content

test: [cp3.0] update default_nb from 2000 to 3000 across all test modules#48877

Merged
sre-ci-robot merged 1 commit intomilvus-io:3.0from
zhuwenxing:cp_48787_to_3.0
Apr 11, 2026
Merged

test: [cp3.0] update default_nb from 2000 to 3000 across all test modules#48877
sre-ci-robot merged 1 commit intomilvus-io:3.0from
zhuwenxing:cp_48787_to_3.0

Conversation

@zhuwenxing
Copy link
Copy Markdown
Contributor

Summary

Cherry-pick of #48787 to 3.0 branch.

  • Update default_nb from 2000 to 3000 across Python client, RESTful v2, and index test modules
  • Index creation requires > 2048 rows, so the previous default of 2000 was insufficient
  • Replace hardcoded nb=2000/nb=100/nb=200/nb=3000 with ct.default_nb/default_nb references for better maintainability

Cherry-pick conflict resolution

  • tests/python_client/testcases/test_large_topk.py was deleted in 3.0, so its changes were skipped.
  • tests/python_client/milvus_client_v2/test_milvus_client_search_none_default.py had a structural conflict (3.0 uses collection_w.search instead of self.search); only the targeted nb = 2000nb = ct.default_nb change at the relevant test method was applied.

pr: #48787

…lvus-io#48787)

- Update `default_nb` from 2000 to 3000 across Python client, RESTful
v2, and index test modules
- Index creation requires > 2048 rows, so the previous default of 2000
was insufficient
- Replace hardcoded `nb=2000` with `ct.default_nb` references for better
maintainability
- Add `default_nb` constant to RESTful v2 and replace hardcoded
`nb=100`/`nb=200` with `nb=3000`

| Module | Change |
|--------|--------|
| `python_client/common/common_type.py` | `default_nb = 2000` → `3000` |
| `python_client/testcases/indexes/*` | 7 files: local `default_nb =
2000` → `ct.default_nb` |
| `python_client/milvus_client/*` | 5 files: hardcoded `nb=2000` →
`ct.default_nb` |
| `python_client/milvus_client_v2/*` | 6 files: hardcoded `nb=2000` →
`ct.default_nb` |
| `python_client/testcases/*` | 3 files: hardcoded `nb=2000` →
`ct.default_nb` |
| `restful_client_v2/utils/constant.py` | Added `default_nb = 3000` |
| `restful_client_v2/base/testbase.py` | `init_collection` default
`nb=100` → `nb=3000` |
| `restful_client_v2/utils/utils.py` | `get_data_by_payload` default
`nb=100` → `nb=3000` |
| `restful_client_v2/testcases/*` | 4 files: hardcoded `nb=100`/`nb=200`
→ `nb=3000` |

issue: milvus-io#42446

---------

Signed-off-by: zhuwenxing <wenxing.zhu@zilliz.com>
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
(cherry picked from commit 0a689a7)
@sre-ci-robot sre-ci-robot added the size/L Denotes a PR that changes 100-499 lines. label Apr 9, 2026
@mergify mergify Bot added dco-passed DCO check passed. kind/test labels Apr 9, 2026
@sre-ci-robot sre-ci-robot added the do-not-merge/need-milestone generate by v2-label-manager label Apr 9, 2026
@sre-ci-robot
Copy link
Copy Markdown
Contributor

[INFO] PR Label Summary by Default
[SUCCESS] PR #48787 merged to master

[WARNING] Milestone not set

You can set milestone by commenting:
/set-milestone
Example:
/set-milestone 2.5.0

Use /refresh-label to update related check and label manually

@sre-ci-robot
Copy link
Copy Markdown
Contributor

[ci-v2-notice]
Notice: ci-v2 system is enabled for this PR (3.0 branch).

To rerun ci-v2 checks, comment with:

  • /ci-rerun-build-ut-cov // for ci-v2/build-ut-cov (build + unit tests)
  • /ci-rerun-e2e-amd // for ci-v2/e2e-amd (e2e tests)
  • /ci-rerun-gosdk // for ci-v2/go-sdk (Go SDK E2E tests)

If you have any questions or requests, please contact @zhikunyao.

@zhuwenxing zhuwenxing added this to the 3.0 milestone Apr 9, 2026
@sre-ci-robot
Copy link
Copy Markdown
Contributor

✅ CI Loop Results 3aafed9

Stage Result Duration Tests
✅ Build SUCCESS 11.6min -

Total: 19min | Pipeline | Artifacts

@sre-ci-robot
Copy link
Copy Markdown
Contributor

✅ CI Loop Results 3aafed9

Stage Result Duration Tests
✅ Build SUCCESS 2.7min -

Total: 7min | Pipeline | Artifacts

@mergify mergify Bot added the ci-passed label Apr 9, 2026
@zhuwenxing zhuwenxing removed the do-not-merge/need-milestone generate by v2-label-manager label Apr 10, 2026
@yanliang567
Copy link
Copy Markdown
Contributor

/lgtm
/approve

@sre-ci-robot
Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: yanliang567, zhuwenxing

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@sre-ci-robot
Copy link
Copy Markdown
Contributor

[INFO] PR Label Summary by Default
[SUCCESS] PR #48787 merged to master

Use /refresh-label to update related check and label manually

@sre-ci-robot sre-ci-robot merged commit 6fe70fb into milvus-io:3.0 Apr 11, 2026
7 of 10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants