Skip to content

refactor(integration): consolidate server tests using test matrices#1901

Merged
spetz merged 1 commit into
masterfrom
integration-refactor
Jun 22, 2025
Merged

refactor(integration): consolidate server tests using test matrices#1901
spetz merged 1 commit into
masterfrom
integration-refactor

Conversation

@hubcio
Copy link
Copy Markdown
Contributor

@hubcio hubcio commented Jun 22, 2025

This refactoring eliminates code duplication across transport-specific
server tests (TCP, QUIC, HTTP) by introducing a unified test matrix
approach. The same test scenarios now run across all supported
transports automatically, ensuring consistent testing coverage while
reducing maintenance overhead.

Key changes:

  • Moved benchmark utilities to a shared module (bench_utils)
  • Added transport() and server_addr() methods to ClientFactory trait
  • Created test matrices for general scenarios (all transports) and
    consumer group scenarios (TCP/QUIC only)
  • Consolidated data integrity tests to use parameterized cache settings
  • Removed transport-specific test files in favor of unified approach
  • Enhanced restart tests to verify data persistence with different
    segment cache configurations

This change improves test maintainability by having a single source
of truth for each test scenario while preserving the ability to run
transport-specific tests where needed.

@hubcio hubcio force-pushed the integration-refactor branch 5 times, most recently from 142fc34 to defdd54 Compare June 22, 2025 16:38
This refactoring eliminates code duplication across transport-specific
server tests (TCP, QUIC, HTTP) by introducing a unified test matrix
approach. The same test scenarios now run across all supported
transports automatically, ensuring consistent testing coverage while
reducing maintenance overhead.

Key changes:
- Moved benchmark utilities to a shared module (bench_utils)
- Added transport() and server_addr() methods to ClientFactory trait
- Created test matrices for general scenarios (all transports) and
  consumer group scenarios (TCP/QUIC only)
- Consolidated data integrity tests to use parameterized cache settings
- Removed transport-specific test files in favor of unified approach
- Enhanced restart tests to verify data persistence with different
  segment cache configurations

This change improves test maintainability by having a single source
of truth for each test scenario while preserving the ability to run
transport-specific tests where needed.
@hubcio hubcio force-pushed the integration-refactor branch from defdd54 to a804e7b Compare June 22, 2025 16:39
@spetz spetz merged commit deb9ff7 into master Jun 22, 2025
26 checks passed
@spetz spetz deleted the integration-refactor branch June 22, 2025 18:41
hageshiame pushed a commit to hageshiame/iggy that referenced this pull request Nov 7, 2025
…pache#1901)

This refactoring eliminates code duplication across transport-specific
server tests (TCP, QUIC, HTTP) by introducing a unified test matrix
approach. The same test scenarios now run across all supported
transports automatically, ensuring consistent testing coverage while
reducing maintenance overhead.

Key changes:
- Moved benchmark utilities to a shared module (bench_utils)
- Added transport() and server_addr() methods to ClientFactory trait
- Created test matrices for general scenarios (all transports) and
  consumer group scenarios (TCP/QUIC only)
- Consolidated data integrity tests to use parameterized cache settings
- Removed transport-specific test files in favor of unified approach
- Enhanced restart tests to verify data persistence with different
  segment cache configurations

This change improves test maintainability by having a single source
of truth for each test scenario while preserving the ability to run
transport-specific tests where needed.
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.

3 participants