Skip to content

Remove unused Performance Tests feature - #328

Merged
oxesoft merged 1 commit into
v2.15.1-developfrom
feature/1014-remove-performance-tests
Jun 2, 2026
Merged

Remove unused Performance Tests feature#328
oxesoft merged 1 commit into
v2.15.1-developfrom
feature/1014-remove-performance-tests

Conversation

@rquidute

@rquidute rquidute commented Jun 2, 2026

Copy link
Copy Markdown
Contributor

Summary

Remove the unused Performance Tests feature from the backend. This feature was built but never adopted by users, leaving a significant amount of dead
code in the codebase.

Motivation

The Performance Tests feature was implemented but is not being used by users in production. Keeping it adds unnecessary maintenance burden, increases cognitive overhead when reading the codebase, and adds dead volume mounts to every SDK container startup. Removing it reduces the codebase by ~2,044 lines.

Impact

  • No functional impact for users — the feature was not in use
  • The POST /{id}/performance_summary API endpoint is removed; any client calling it will receive a 404
  • SDK containers will no longer mount the three stress test script volumes
  • TestScriptManager logic is simplified — the iteration/loop-commissioning special-case is gone

Related Issue

#1014

Testing

All unit tests runs successfully
TH runs successfully

- Delete test_collections/matter/sdk_tests/support/performance_tests/ folder
  (test collection, models, scripts — 13 files)
- Remove sdk_performance_collection import from test_collections/matter/__init__.py
- Remove STRESS_TEST_COLLECTION import and pop() call from pics_applicable_test_cases.py
- Remove create_summary_report import and POST /{id}/performance_summary endpoint
  from app/api/api_v1/endpoints/test_run_executions.py
- Remove Performance Test Suite special-case branches and TestStep import
  from app/test_engine/test_script_manager.py
- Remove stress test script path constants and volume mounts from sdk_container.py
@rquidute rquidute self-assigned this Jun 2, 2026

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request removes the SDK Performance and Stress Tests collection, including its endpoints, test cases, suites, parser, and related Docker container volume mounts. Feedback on the changes includes addressing an indentation issue in app/test_engine/test_script_manager.py where the body of a for loop is over-indented following the removal of an if-else block.

else:
for test_case_execution in test_case_executions:
for test_case_execution in test_case_executions:
# TODO: request correct TestCase from TestScriptManager

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The body of the for loop (lines 326 to 336) is over-indented by 4 spaces. It should be unindented to align with the standard 4-space indentation level under the for statement, in accordance with PEP 8.

References
  1. PEP 8 recommends using 4 spaces per indentation level. (link)

@oxesoft
oxesoft merged commit 63f2ef0 into v2.15.1-develop Jun 2, 2026
5 of 9 checks passed
oxesoft pushed a commit that referenced this pull request Jun 2, 2026
- Delete test_collections/matter/sdk_tests/support/performance_tests/ folder
  (test collection, models, scripts — 13 files)
- Remove sdk_performance_collection import from test_collections/matter/__init__.py
- Remove STRESS_TEST_COLLECTION import and pop() call from pics_applicable_test_cases.py
- Remove create_summary_report import and POST /{id}/performance_summary endpoint
  from app/api/api_v1/endpoints/test_run_executions.py
- Remove Performance Test Suite special-case branches and TestStep import
  from app/test_engine/test_script_manager.py
- Remove stress test script path constants and volume mounts from sdk_container.py
@oxesoft

oxesoft commented Jun 2, 2026

Copy link
Copy Markdown
Contributor

Cherry-picked to v2.16-develop

@oxesoft
oxesoft deleted the feature/1014-remove-performance-tests branch June 2, 2026 16:01
This was referenced Jun 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants