Jeremie Fraeys
f827ee522a
test(tracking/plugins): add PodmanInterface and comprehensive plugin tests for 91% coverage
...
Refactor plugins to use interface for testability:
- Add PodmanInterface to container package (StartContainer, StopContainer, RemoveContainer)
- Update MLflow plugin to use container.PodmanInterface
- Update TensorBoard plugin to use container.PodmanInterface
- Add comprehensive mocked tests for all three plugins (wandb, mlflow, tensorboard)
- Coverage increased from 18% to 91.4%
2026-03-14 16:59:16 -04:00
Jeremie Fraeys
04175a97ee
test(tracking): add comprehensive plugin registry tests
...
Add tests for tracking package main exports:
- NewRegistry, Register, Get plugin management
- ProvisionAll with empty, disabled, unregistered configs
- TeardownAll lifecycle management
- NewPortAllocator, Allocate, Release with proper port reuse
- StringSetting, ToolMode constants, ToolConfig structure
Coverage: 84.7%
2026-03-13 23:35:10 -04:00
Jeremie Fraeys
9b8d8e5281
test(tracking): add factory plugin loader tests
...
Add tests for:
- NewPluginLoader: factory creation
- RegisterFactory: custom factory registration
- LoadPluginsEmpty: empty plugin handling
- LoadPluginsDisabled: skip disabled plugins
- LoadPluginsUnknown: unknown plugin handling
- PluginConfigStructure: config field validation
- LoadPluginsMLflow, TensorBoard, Wandb: plugin type support
Coverage: 79.2%
2026-03-13 23:26:52 -04:00
Jeremie Fraeys
61660dc925
refactor: co-locate security, storage, telemetry, tracking, worker tests
...
Move unit tests from tests/unit/ to internal/ following Go conventions:
Security tests:
- tests/unit/security/* -> internal/security/* (audit, config_integrity, filetype, gpu_audit, hipaa_validation, manifest_filename, path_traversal, resource_quota, secrets)
Storage tests:
- tests/unit/storage/* -> internal/storage/* (db, experiment_metadata)
Telemetry tests:
- tests/unit/telemetry/* -> internal/telemetry/* (telemetry)
Tracking tests:
- tests/unit/reproducibility/* -> internal/tracking/* (config_hash, environment_capture)
Worker tests:
- tests/unit/worker/* -> internal/worker/* (artifacts, config, hash_bench, plugins/jupyter_task, plugins/vllm, prewarm_v1, run_manifest_execution, snapshot_stage, snapshot_store, worker)
Update import paths in test files to reflect new locations.
2026-03-12 16:37:03 -04:00