Skip to content

Conversation

markpollack
Copy link
Member

@markpollack markpollack commented Nov 7, 2024

This change simplifies how we manage Ollama containers in tests by moving from manual toggles to environment variables for better control. Instead of scattered container configuration, we now have:

  • OLLAMA_WITH_REUSE: Toggle reuse of existing containers between tests
  • OLLAMA_TESTS_ENABLED: Control test execution globally

The motivation is to make tests more reliable and easier to maintain. Previously, developers had to modify code to run tests locally vs CI. Now they can control this via environment variables.

We also introduce thread-safe API access and consistent default settings across all test classes, removing duplicated configuration and potential resource leaks.

This makes the test infrastructure more maintainable and provides clearer separation between local development and CI environments.

This change simplifies how we manage Ollama containers in tests by moving
from manual toggles to environment variables for better control. Instead of
scattered container configuration, we now have:

- OLLAMA_WITH_REUSE: Toggle reuse of existing containers between tests
- OLLAMA_TESTS_ENABLED: Control test execution globally

The motivation is to make tests more reliable and easier to maintain.
Previously, developers had to modify code to run tests locally vs CI. Now
they can control this via environment variables.

We also introduce thread-safe API access and consistent default settings
across all test classes, removing duplicated configuration and potential
resource leaks.

This makes the test infrastructure more maintainable and provides clearer
separation between local development and CI environments.
@sobychacko sobychacko self-assigned this Nov 8, 2024
@sobychacko sobychacko added this to the 1.0.0-M4 milestone Nov 8, 2024
@sobychacko
Copy link
Contributor

Closed via 21fc653.

@sobychacko sobychacko closed this Nov 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants