Merged
Conversation
There was a problem hiding this comment.
Pull request overview
This is a comprehensive test infrastructure pull request that reorganizes and expands the backend testing suite. The PR introduces a three-tier test grouping system (core, external_api, mineru) with dedicated test runners, coverage configurations, and extensive new test coverage across authentication, database repositories, external API integrations, and MinerU PDF parsing. Additionally, it adds stress/load testing infrastructure with support for testing health endpoints, authenticated routes, academic search, and DeepSeek API calls.
Key Changes:
- Implements pytest marker-based test grouping with separate execution scripts and coverage configurations
- Adds comprehensive test coverage for schema validation, authentication flows, database repositories, external providers, and MinerU integration
- Introduces stress testing suite with support for in-process ASGI testing and live server testing
- Adds detailed documentation explaining test organization and execution
Reviewed changes
Copilot reviewed 54 out of 78 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
backend/pytest.ini |
Adds external_api and mineru pytest markers for test grouping |
backend/conftest.py |
Adds auto-fixture to bypass Redis verification codes and creates media subdirectories |
backend/tests/test_*.py (multiple new files) |
Comprehensive test coverage for schema validators, query parsers, MinerU, external providers, repositories, and endpoints |
backend/scripts/test_*.sh |
Test execution scripts for core, external_api, and mineru test groups |
backend/scripts/stress_test.py |
Enhanced with academic_search scenario and token file support |
backend/scripts/deepseek_stress_test.py |
New DeepSeek API stress testing script |
backend/scripts/mineru_comprehensive_check.py |
New MinerU concurrent parsing performance testing script |
backend/scripts/run_stress_suite.sh |
Unified stress test suite runner |
backend/.coveragerc.mineru |
Coverage configuration for MinerU test group |
backend/TEST_GROUPS.md, backend/TEST_INDEX.md |
Comprehensive test documentation |
backend/README.md |
Updated with test and stress testing documentation |
backend/app/services/ai/llm_client.py |
Bug fix for chat_content_stream to prevent duplicate done events |
.gitignore |
Excludes test-reports and .pip-cache directories |
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.
No description provided.