Conversation
There was a problem hiding this comment.
Pull request overview
This PR updates an end-to-end CLI test to cap application run list results via --limit, reducing repeated heavy list queries during test_cli_run_submit_and_describe_and_cancel_and_download_and_delete.
Changes:
- Import
LIST_APPLICATION_RUNS_MAX_PAGE_SIZEand reuse it as the--limitvalue across multiplerun listinvocations in the complex CLI e2e test. - Add
--limitto severalapplication run listcalls that filter by--query,--note-regex, and--tags.
80110dd to
10eb6dd
Compare
There was a problem hiding this comment.
Pull request overview
This PR optimizes an end-to-end CLI test by adding an explicit --limit to multiple application run list invocations, preventing the underlying list operation from iterating through many pages of results (and thus avoiding repeated heavy backend queries). It also improves the GitHub Actions failure summary labels for the E2E suites.
Changes:
- Add
--limit(usingLIST_APPLICATION_RUNS_MAX_PAGE_SIZE) to repeatedapplication run listcalls in a long-running CLI E2E test to cap pagination work. - Update the “Assert no test failures” step to report more specific E2E suite names in CI output.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
tests/aignostics/application/cli_test.py |
Adds a --limit argument to multiple run list CLI invocations to avoid enumerating all runs during the test. |
.github/workflows/_test.yml |
Renames the reported failing suite labels for the E2E steps to be more specific (regular/long/very-long). |
✅ PR Review Complete - APPROVEDReviewer: Claude Code (Medical Device Software Review) SummaryThis PR makes two focused improvements:
Status: ✅ APPROVED - All checks passed, no blocking issues found. Critical Checks ✅1. Test Markers ✅
2. Linting ✅All linting checks passed:
3. Code Quality ✅
4. Conventional Commits ✅Both commits follow conventional commit format:
5. Test Coverage ✅
Detailed AnalysisChange 1: Test Performance Optimization (cli_test.py)What changed: Added Why this matters:
Impact:
Change 2: Improved CI/CD Observability (_test.yml)What changed: Updated test suite failure reporting names:
Why this matters:
Impact:
Architecture & Medical Device Compliance ✅Modulith Architecture Compliance ✅
Medical Device & Security ✅
CI/CD Impact ✅
RecommendationsSuggestions (Non-Blocking)None - This PR is well-scoped and implements exactly what's needed. Optional Future EnhancementsConsider for future work (not for this PR):
Verification CommandsTo verify this PR locally: # 1. Check linting
make lint
# 2. Verify test markers
uv run pytest -m "not unit and not integration and not e2e" --collect-only
# 3. Run the specific test (requires staging credentials)
uv run pytest tests/aignostics/application/cli_test.py::test_cli_run_submit_and_describe_and_cancel_and_download_and_delete -v
# 4. Check all application module tests
make test_e2e -k applicationFinal Verdict✅ APPROVED This is a high-quality, focused PR that:
No blocking issues found. Ready to merge after CI passes. Reviewed with: CLAUDE.md (root), .github/CLAUDE.md, Medical Device Software Standards Great work, @olivermeyer! 🎉 |
❌ 1 Tests Failed:
View the top 1 failed test(s) by shortest run time
To view more test analytics, go to the Test Analytics Dashboard |
|
|
Fixing in #495 |



Limits the number of runs returned by the
listoperations intest_cli_run_submit_and_describe_and_cancel_and_download_and_deleteto avoid executing a heavy query dozens of time per operation.