fetch_ml/internal
Jeremie Fraeys d0266c4a90
refactor: scheduler hub bug fix, test helpers, and orphan recovery tests
Fix bug in scheduler hub orphan reconciliation:
- Move delete(h.pendingAcceptance, taskID) inside the requeue success block
- Prevents premature cleanup when requeue fails

Add comprehensive test infrastructure:
- hub_test_helpers.go: New test helper utilities (78 lines)
  - Mock scheduler components for isolated testing
  - Test fixture setup and teardown helpers

Refactor and enhance hub capabilities tests:
- Significant restructuring of hub_capabilities_test.go (213 lines changed)
- Improved test coverage for worker capability matching

Add comprehensive orphan recovery tests:
- internal/scheduler/orphan_recovery_test.go (451 lines)
- Tests orphaned job detection and recovery
- Covers requeue logic, timeout handling, state cleanup
2026-03-12 16:38:33 -04:00
..
api refactor: co-locate api, audit, auth tests with source code 2026-03-12 16:34:54 -04:00
audit refactor: co-locate api, audit, auth tests with source code 2026-03-12 16:34:54 -04:00
auth refactor: co-locate api, audit, auth tests with source code 2026-03-12 16:34:54 -04:00
config refactor: co-locate config, container, envpool, errors, experiment, jupyter tests 2026-03-12 16:35:15 -04:00
container refactor: co-locate config, container, envpool, errors, experiment, jupyter tests 2026-03-12 16:35:15 -04:00
crypto feat(crypto,auth): harden KMS and improve permission handling 2026-03-12 12:04:32 -04:00
domain feat(domain): add task visibility and supporting infrastructure 2026-03-08 13:03:27 -04:00
envpool refactor: co-locate config, container, envpool, errors, experiment, jupyter tests 2026-03-12 16:35:15 -04:00
errtypes refactor: co-locate config, container, envpool, errors, experiment, jupyter tests 2026-03-12 16:35:15 -04:00
experiment refactor: co-locate config, container, envpool, errors, experiment, jupyter tests 2026-03-12 16:35:15 -04:00
fileutil feat(domain): add task visibility and supporting infrastructure 2026-03-08 13:03:27 -04:00
jupyter refactor: co-locate config, container, envpool, errors, experiment, jupyter tests 2026-03-12 16:35:15 -04:00
logging refactor: co-locate logging, manifest, network, privacy, prommetrics tests 2026-03-12 16:35:37 -04:00
manifest refactor: co-locate logging, manifest, network, privacy, prommetrics tests 2026-03-12 16:35:37 -04:00
metrics refactor: Phase 6 - Complete migration, remove legacy files 2026-02-17 14:39:48 -05:00
middleware feat(crypto,auth): harden KMS and improve permission handling 2026-03-12 12:04:32 -04:00
network refactor: co-locate logging, manifest, network, privacy, prommetrics tests 2026-03-12 16:35:37 -04:00
privacy refactor: co-locate logging, manifest, network, privacy, prommetrics tests 2026-03-12 16:35:37 -04:00
prommetrics refactor: co-locate logging, manifest, network, privacy, prommetrics tests 2026-03-12 16:35:37 -04:00
queue refactor: co-locate queue and resources tests, add manager tests 2026-03-12 16:36:02 -04:00
resources refactor: co-locate queue and resources tests, add manager tests 2026-03-12 16:36:02 -04:00
scheduler refactor: scheduler hub bug fix, test helpers, and orphan recovery tests 2026-03-12 16:38:33 -04:00
security refactor: co-locate security, storage, telemetry, tracking, worker tests 2026-03-12 16:37:03 -04:00
storage refactor: co-locate security, storage, telemetry, tracking, worker tests 2026-03-12 16:37:03 -04:00
store refactor: relocate store package from cmd/tui/internal to internal 2026-03-12 16:38:01 -04:00
telemetry refactor: co-locate security, storage, telemetry, tracking, worker tests 2026-03-12 16:37:03 -04:00
tracking refactor: co-locate security, storage, telemetry, tracking, worker tests 2026-03-12 16:37:03 -04:00
validation feat: add security monitoring and validation framework 2026-02-19 15:34:25 -05:00
worker refactor: co-locate security, storage, telemetry, tracking, worker tests 2026-03-12 16:37:03 -04:00