Skip to content

🐛 fix(load-test): use pre-instantiated DI providers#80

Merged
itisnotyourenv merged 1 commit into
mainfrom
fix/load-test-di-providers
Apr 14, 2026
Merged

🐛 fix(load-test): use pre-instantiated DI providers#80
itisnotyourenv merged 1 commit into
mainfrom
fix/load-test-di-providers

Conversation

@itisnotyourenv

Copy link
Copy Markdown
Owner

Description

The load test runner was still manually instantiating interactor providers via a list comprehension, which was missed during the DI refactor in 9c86fb3. This fix removes the redundant instantiation and passes interactor_providers directly, aligning with the centralized provider setup used in the bot, API, and tests.

Type of Change

  • Bug fix (non-breaking change which fixes an issue)

Testing

  • I have performed a self-review of my own code
  • Pre-commit hooks pass

Code Quality

  • I have performed a self-review of my own code
  • My changes generate no new warnings
  • Pre-commit hooks pass (run pre-commit run --all-files)
  • Ruff linting passes (ruff check src/ tests/)
  • Ruff formatting passes (ruff format src/ tests/ --check)

Related Issues

Follow-up fix for #79

Additional Notes

The interactor_providers list in src/infrastructure/di/interactors/__init__.py was refactored to contain pre-instantiated provider instances. The load test runner was the only consumer that still called interactor() on each item, which would fail at runtime since they're already instances, not classes.


🤖 Generated with Claude Code

The load test runner was still manually instantiating interactor
providers, which was missed during the DI refactor in 9c86fb3.
Remove the redundant list comprehension and pass `interactor_providers`
directly, aligning with the centralized provider setup.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@itisnotyourenv itisnotyourenv merged commit fe2c672 into main Apr 14, 2026
7 of 8 checks passed
@itisnotyourenv itisnotyourenv deleted the fix/load-test-di-providers branch April 14, 2026 12:13
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.

1 participant