Skip to content

Update test framework - #16875

Merged
JinHai-CN merged 5 commits into
infiniflow:mainfrom
JinHai-CN:fix543
Jul 14, 2026
Merged

JinHai-CN merged 5 commits into
infiniflow:mainfrom
JinHai-CN:fix543

Conversation

@JinHai-CN

Copy link
Copy Markdown
Member

Summary

  1. add colorful print
  2. update the test priority

Signed-off-by: Jin Hai <[email protected]>
@JinHai-CN JinHai-CN added the ci Continue Integration label Jul 13, 2026
@coderabbitai

coderabbitai Bot commented Jul 13, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 0792b5e8-3655-4311-9620-bcf6eb2222fd

📥 Commits

Reviewing files that changed from the base of the PR and between 10cf165 and 50d2ec7.

📒 Files selected for processing (2)
  • test/testcases/restful_api/test_dify_retrieval_routes_unit.py
  • test/testcases/restful_api/test_openai_compatible.py
🚧 Files skipped from review as they are similar to previous changes (1)
  • test/testcases/restful_api/test_dify_retrieval_routes_unit.py

📝 Walkthrough

Walkthrough

The REST test protocol now highlights slower per-test durations with star markers. Five REST tests have their pytest priority marker changed from p2 to p3, with test logic unchanged.

Changes

Timing Output Coloring

Layer / File(s) Summary
Duration marker output
test/testcases/restful_api/conftest.py
Per-test duration output now includes star markers for durations of at least 1, 5, or 10 seconds.

Test Priority Adjustment

Layer / File(s) Summary
Marker updates
test/testcases/restful_api/test_openai_compatible.py, test/testcases/restful_api/test_dify_retrieval_routes_unit.py
Three OpenAI-compatible tests and two Dify retrieval tests change their markers from p2 to p3; test behavior remains unchanged.

Estimated code review effort: 1 (Trivial) | ~5 minutes

Suggested reviewers: 6ba3i

Poem

I’m a rabbit with stars in my sight,
Slow tests now sparkle just right.
Five tests hop from p2 to p3,
Their assertions rest cozily.
Carrots celebrate the tidy night!

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ 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%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title is concise and related to the main change, though it is broader than the specific test-output and marker updates.
Description check ✅ Passed The description includes the required Summary section and clearly states the two main changes, with only limited background detail missing.
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.

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.

@JinHai-CN
JinHai-CN marked this pull request as ready for review July 13, 2026 13:02
@dosubot dosubot Bot added the size:XS This PR changes 0-9 lines, ignoring generated files. label Jul 13, 2026
@JinHai-CN
JinHai-CN marked this pull request as draft July 13, 2026 13:03
@JinHai-CN
JinHai-CN marked this pull request as ready for review July 13, 2026 13:03
@JinHai-CN
JinHai-CN marked this pull request as draft July 13, 2026 13:11
@JinHai-CN
JinHai-CN marked this pull request as ready for review July 13, 2026 13:11
@JinHai-CN JinHai-CN added ci Continue Integration and removed ci Continue Integration labels Jul 13, 2026
@codecov

codecov Bot commented Jul 13, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 93.16%. Comparing base (999eb53) to head (50d2ec7).

Additional details and impacted files
@@           Coverage Diff           @@
##             main   #16875   +/-   ##
=======================================
  Coverage   93.16%   93.16%           
=======================================
  Files          10       10           
  Lines         717      717           
  Branches      118      118           
=======================================
  Hits          668      668           
  Misses         29       29           
  Partials       20       20           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@JinHai-CN
JinHai-CN merged commit 1323669 into infiniflow:main Jul 14, 2026
9 of 10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci Continue Integration size:XS This PR changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant