photoncloud-monorepo/docs/por/T034-test-drift-fix/task.yaml
centra 5c6eb04a46 T036: Add VM cluster deployment configs for nixos-anywhere
- netboot-base.nix with SSH key auth
- Launch scripts for node01/02/03
- Node configuration.nix and disko.nix
- Nix modules for first-boot automation

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2025-12-11 09:59:19 +09:00

76 lines
2.5 KiB
YAML

id: T034
slug: test-drift-fix
name: Fix Test API Drift
title: Fix Test API Drift (chainfire, flaredb, k8shost)
status: complete
priority: P0
completed: 2025-12-10
created: 2025-12-10
owner: peerB
tags: [quality, tests, tech-debt]
goal: Fix 3 test compilation failures caused by API drift
objective: |
Fix 3 test compilation failures caused by API drift from T027 (TLS) and T020 (delete).
Ensure all workspaces have passing test suites before production deployment.
acceptance:
- cargo test --manifest-path chainfire/Cargo.toml passes
- cargo test --manifest-path flaredb/Cargo.toml passes
- cargo test --manifest-path k8shost/Cargo.toml passes
- No test compilation errors across all 10 Rust workspaces
steps:
- step: S1
name: Fix chainfire integration_test.rs
done: Add tls field to NetworkConfig in test
status: complete
completed: 2025-12-10
owner: peerB
priority: P0
notes: |
File: chainfire/crates/chainfire-server/tests/integration_test.rs:34
Error: missing field `tls` in initializer of `NetworkConfig`
Fix: Add `tls: None` to NetworkConfig struct initialization
Root cause: T027 added TlsConfig to NetworkConfig, test not updated
- step: S2
name: Fix flaredb test_rpc_connect.rs
done: Add raw_delete and delete methods to mock service
status: complete
completed: 2025-12-10
owner: peerB
priority: P0
notes: |
File: flaredb/crates/flaredb-client/tests/test_rpc_connect.rs:82
Error: not all trait items implemented, missing: `raw_delete`, `delete`
Fix: Add stub implementations for raw_delete and delete to TestKvService
Root cause: T020 added delete operations to KvRaw/KvCas traits, mock not updated
- step: S3
name: Fix k8shost test compilation
done: Fix type mismatch in scheduler tests
status: complete
completed: 2025-12-10
owner: peerB
priority: P0
notes: |
File: k8shost/crates/k8shost-server/src/scheduler.rs and related tests
Error: E0308 type mismatch
Fix: Investigate and fix type alignment in test code
Root cause: API changes in scheduler, tests not updated
evidence: []
notes: |
Quality check revealed 3 test files with compilation failures.
All failures are API drift issues (test fixtures not updated when APIs changed).
Core functionality is working - these are test-only issues.
Estimated effort: ~1-2 hours total
After completion: All 10 workspaces should have passing tests.
Next: Production deployment (T032)