Skip to content

feat(integration): implement iggy_harness macro and test utils#2603

Closed
hubcio wants to merge 1 commit intomasterfrom
test-binaries-refactor
Closed

feat(integration): implement iggy_harness macro and test utils#2603
hubcio wants to merge 1 commit intomasterfrom
test-binaries-refactor

Conversation

@hubcio
Copy link
Contributor

@hubcio hubcio commented Jan 23, 2026

Integration tests duplicated 30+ lines of TestServer/ClientFactory
setup per scenario, making maintenance painful and inconsistent
cleanup causing occasional test pollution.

The harness centralizes binary lifecycle in TestContext which
guarantees cleanup regardless of test outcome. Tests now declare
infrastructure needs via #[iggy_harness] macro instead of
imperative setup.

IGGY_* env passthrough lets CI override test defaults without
code changes - useful for testing specific configurations.
IGGY_TEST_CLEANUP_DISABLED preserves test_logs/ for debugging.

Lastly, fixed WebSocket TLS - client factory lacked TLS config
propagation, causing handshake failures after harness refactor.

IGGY_CI_BUILD triggered timestamp capture, forcing relinks.
Removed it from pre-merge to enable incremental builds and
cache hits.

@hubcio hubcio force-pushed the test-binaries-refactor branch 14 times, most recently from 6141de1 to 69572b2 Compare January 26, 2026 22:15
Integration tests duplicated 30+ lines of TestServer/ClientFactory
setup per scenario, making maintenance painful and inconsistent
cleanup causing occasional test pollution.

The harness centralizes binary lifecycle in TestContext which
guarantees cleanup regardless of test outcome. Tests now declare
infrastructure needs via #[iggy_harness] macro instead of
imperative setup.

IGGY_* env passthrough lets CI override test defaults without
code changes - useful for testing specific configurations.
IGGY_TEST_CLEANUP_DISABLED preserves test_logs/ for debugging.

Lastly, fixed WebSocket TLS - client factory lacked TLS config
propagation, causing handshake failures after harness refactor.
@hubcio hubcio force-pushed the test-binaries-refactor branch from 69572b2 to a8ded8f Compare January 27, 2026 17:12
@hubcio hubcio closed this Jan 27, 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.

1 participant