Commit graph

5 commits

Author SHA1 Message Date
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
Jeremie Fraeys
4cdb68907e
refactor(utilities): update supporting modules for scheduler integration
Update utility modules:
- File utilities with secure file operations
- Environment pool with resource tracking
- Error types with scheduler error categories
- Logging with audit context support
- Network/SSH with connection pooling
- Privacy/PII handling with tenant boundaries
- Resource manager with scheduler allocation
- Security monitor with audit integration
- Tracking plugins (MLflow, TensorBoard) with auth
- Crypto signing with tenant keys
- Database init with multi-user support
2026-02-26 12:07:15 -05:00
Jeremie Fraeys
dab680a60d feat(tracking): add pluggable tracking backends and audit support 2026-01-05 12:33:57 -05:00