Files
foxhunt/coverage_full.txt
jgrusewski 61801cfd06 feat(deprecation): Complete deprecated code analysis and cleanup preparation
**Wave D Phase 6 - Technical Debt Cleanup (Agent C6)**

## Changes
- Identified deprecated code patterns across codebase
- Analyzed mock repository usage (strategically retained per AGENT_M13)
- Documented deprecation cleanup strategy
- Prepared deprecation removal todos

## Analysis Results
- Mock structs: RETAINED (strategic testing infrastructure)
- Never-read fields: 2 instances in backtesting_service
- Dead code warnings: 35 total across workspace
- databento_old references: None found in active code

## Status
-  Deprecation analysis complete
-  Cleanup execution pending user confirmation
- 📊 Test impact assessment ready

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-19 00:46:19 +02:00

805 lines
32 KiB
Plaintext

info: cargo-llvm-cov currently setting cfg(coverage); you can opt-out it by passing --no-cfg-coverage
Compiling config v1.0.0 (/home/jgrusewski/Work/foxhunt/config)
Compiling ml v1.0.0 (/home/jgrusewski/Work/foxhunt/ml)
Compiling tli v1.0.0 (/home/jgrusewski/Work/foxhunt/tli)
Compiling api_gateway v1.0.0 (/home/jgrusewski/Work/foxhunt/services/api_gateway)
Compiling trading_service v1.0.0 (/home/jgrusewski/Work/foxhunt/services/trading_service)
Compiling backtesting_service v1.0.0 (/home/jgrusewski/Work/foxhunt/services/backtesting_service)
Compiling foxhunt_e2e v0.1.0 (/home/jgrusewski/Work/foxhunt/tests/e2e)
Compiling ml_training_service v1.0.0 (/home/jgrusewski/Work/foxhunt/services/ml_training_service)
Compiling trading_agent_service v1.0.0 (/home/jgrusewski/Work/foxhunt/services/trading_agent_service)
Compiling integration_load_tests v0.1.0 (/home/jgrusewski/Work/foxhunt/tests/load_tests)
Compiling data_acquisition_service v1.0.0 (/home/jgrusewski/Work/foxhunt/services/data_acquisition_service)
Compiling trading_service_load_tests v1.0.0 (/home/jgrusewski/Work/foxhunt/services/load_tests)
Compiling integration_tests v1.0.0 (/home/jgrusewski/Work/foxhunt/services/integration_tests)
Compiling risk-data v1.0.0 (/home/jgrusewski/Work/foxhunt/risk-data)
Compiling common v1.0.0 (/home/jgrusewski/Work/foxhunt/common)
warning: multiple fields are never read
--> common/src/ml_strategy.rs:124:5
|
66 | pub struct MLFeatureExtractor {
| ------------------ fields in this struct
...
124 | volatility_history: Vec<f64>,
| ^^^^^^^^^^^^^^^^^^
125 | /// Rolling volume history for percentile calculation (separate from main volume buffer)
126 | volume_percentile_buffer: Vec<f64>,
| ^^^^^^^^^^^^^^^^^^^^^^^^
127 | /// Return history for autocorrelation calculation
128 | returns_history: Vec<f64>,
| ^^^^^^^^^^^^^^^
129 | /// Momentum ROC(5) history for acceleration calculation
130 | momentum_roc_5_history: Vec<f64>,
| ^^^^^^^^^^^^^^^^^^^^^^
131 | /// Momentum ROC(10) history for acceleration calculation
132 | momentum_roc_10_history: Vec<f64>,
| ^^^^^^^^^^^^^^^^^^^^^^^
133 | /// Acceleration history for jerk calculation
134 | acceleration_history: Vec<f64>,
| ^^^^^^^^^^^^^^^^^^^^
135 | /// Price highs for divergence detection (last 20 periods)
136 | price_highs: Vec<f64>,
| ^^^^^^^^^^^
137 | /// Momentum highs for divergence detection (last 20 periods)
138 | momentum_highs: Vec<f64>,
| ^^^^^^^^^^^^^^
139 | /// Historical momentum values for regime classification (last 100 periods)
140 | momentum_regime_history: Vec<f64>,
| ^^^^^^^^^^^^^^^^^^^^^^^
|
= note: `MLFeatureExtractor` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis
= note: `#[warn(dead_code)]` on by default
Compiling trading_engine v1.0.0 (/home/jgrusewski/Work/foxhunt/trading_engine)
Compiling storage v1.0.0 (/home/jgrusewski/Work/foxhunt/storage)
Compiling adaptive-strategy v1.0.0 (/home/jgrusewski/Work/foxhunt/adaptive-strategy)
Compiling stress_tests v1.0.0 (/home/jgrusewski/Work/foxhunt/services/stress_tests)
warning: `common` (lib) generated 1 warning
Compiling model_loader v1.0.0 (/home/jgrusewski/Work/foxhunt/model_loader)
warning: unused variable: `base_price`
--> common/tests/volume_indicators_test.rs:147:9
|
147 | let base_price = 100.0;
| ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_base_price`
|
= note: `#[warn(unused_variables)]` on by default
warning: unused variable: `i`
--> common/tests/ml_strategy_integration_tests.rs:570:9
|
570 | for i in 0..15 {
| ^ help: if this is intentional, prefix it with an underscore: `_i`
|
= note: `#[warn(unused_variables)]` on by default
warning: unused variable: `i`
--> common/tests/ml_strategy_integration_tests.rs:604:9
|
604 | for i in 0..15 {
| ^ help: if this is intentional, prefix it with an underscore: `_i`
warning: unused variable: `i`
--> common/tests/ml_strategy_integration_tests.rs:673:9
|
673 | for i in 0..15 {
| ^ help: if this is intentional, prefix it with an underscore: `_i`
warning: unused variable: `i`
--> common/tests/ml_strategy_integration_tests.rs:698:13
|
698 | for i in 0..15 {
| ^ help: if this is intentional, prefix it with an underscore: `_i`
warning: unused variable: `i`
--> common/tests/ml_strategy_integration_tests.rs:727:9
|
727 | for i in 0..15 {
| ^ help: if this is intentional, prefix it with an underscore: `_i`
warning: unused variable: `i`
--> common/tests/ml_strategy_integration_tests.rs:763:9
|
763 | for i in 0..15 {
| ^ help: if this is intentional, prefix it with an underscore: `_i`
warning: unused variable: `i`
--> common/tests/ml_strategy_integration_tests.rs:852:9
|
852 | for i in 0..15 {
| ^ help: if this is intentional, prefix it with an underscore: `_i`
warning: unused variable: `i`
--> common/tests/ml_strategy_integration_tests.rs:1791:9
|
1791 | for i in 0..15 {
| ^ help: if this is intentional, prefix it with an underscore: `_i`
warning: extern crate `chrono` is unused in crate `model_loader`
|
= help: remove the dependency or add `use chrono as _;` to the crate root
= note: requested on the command line with `-W unused-crate-dependencies`
warning: extern crate `tokio` is unused in crate `model_loader`
|
= help: remove the dependency or add `use tokio as _;` to the crate root
warning: unused import: `mock_downloader::*`
--> services/data_acquisition_service/tests/common/mod.rs:13:9
|
13 | pub use mock_downloader::*;
| ^^^^^^^^^^^^^^^^^^
|
= note: `#[warn(unused_imports)]` on by default
warning: unused import: `mock_service::*`
--> services/data_acquisition_service/tests/common/mod.rs:14:9
|
14 | pub use mock_service::*;
| ^^^^^^^^^^^^^^^
warning: unused import: `types::*`
--> services/data_acquisition_service/tests/common/mod.rs:16:9
|
16 | pub use types::*;
| ^^^^^^^^
warning: unused import: `Sha256`
--> services/data_acquisition_service/tests/minio_upload_tests.rs:14:20
|
14 | use sha2::{Digest, Sha256};
| ^^^^^^
warning: unused imports: `Arc` and `Mutex`
--> services/data_acquisition_service/tests/minio_upload_tests.rs:15:17
|
15 | use std::sync::{Arc, Mutex};
| ^^^ ^^^^^
warning: unused variable: `request`
--> services/data_acquisition_service/tests/common/mock_downloader.rs:243:9
|
243 | request: DownloadRequest,
| ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_request`
|
= note: `#[warn(unused_variables)]` on by default
warning: unused import: `Digest`
--> services/data_acquisition_service/tests/minio_upload_tests.rs:14:12
|
14 | use sha2::{Digest, Sha256};
| ^^^^^^
warning: extern crate `lru` is unused in crate `versioning_cache_tests`
|
= help: remove the dependency or add `use lru as _;` to the crate root
= note: requested on the command line with `-W unused-crate-dependencies`
warning: extern crate `serde` is unused in crate `versioning_cache_tests`
|
= help: remove the dependency or add `use serde as _;` to the crate root
warning: extern crate `tracing` is unused in crate `versioning_cache_tests`
|
= help: remove the dependency or add `use tracing as _;` to the crate root
warning: enum `ErrorMode` is never used
--> services/data_acquisition_service/tests/common/mock_downloader.rs:13:10
|
13 | pub enum ErrorMode {
| ^^^^^^^^^
|
= note: `#[warn(dead_code)]` on by default
warning: struct `TestDownloader` is never constructed
--> services/data_acquisition_service/tests/common/mock_downloader.rs:26:12
|
26 | pub struct TestDownloader {
| ^^^^^^^^^^^^^^
warning: multiple associated items are never used
--> services/data_acquisition_service/tests/common/mock_downloader.rs:36:12
|
35 | impl TestDownloader {
| ------------------- associated items in this implementation
36 | pub fn new() -> Self {
| ^^^
...
47 | pub fn with_error_mode(mut self, mode: ErrorMode) -> Self {
| ^^^^^^^^^^^^^^^
...
52 | pub fn with_max_failures(mut self, max: u32) -> Self {
| ^^^^^^^^^^^^^^^^^
...
57 | pub fn with_timeout(mut self, timeout: Duration) -> Self {
| ^^^^^^^^^^^^
...
62 | pub async fn download(
| ^^^^^^^^
...
142 | pub fn get_retry_delays(&self) -> Vec<Duration> {
| ^^^^^^^^^^^^^^^^
...
146 | pub fn get_retry_count(&self) -> u32 {
| ^^^^^^^^^^^^^^^
warning: function `create_test_downloader_with_network_issues` is never used
--> services/data_acquisition_service/tests/common/mock_downloader.rs:155:14
|
155 | pub async fn create_test_downloader_with_network_issues(_path: &Path) -> TestDownloader {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: function `create_test_downloader_with_retry_tracking` is never used
--> services/data_acquisition_service/tests/common/mock_downloader.rs:161:14
|
161 | pub async fn create_test_downloader_with_retry_tracking(_path: &Path) -> TestDownloader {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: function `create_test_downloader_with_rate_limiting` is never used
--> services/data_acquisition_service/tests/common/mock_downloader.rs:167:14
|
167 | pub async fn create_test_downloader_with_rate_limiting(_path: &Path) -> TestDownloader {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: function `create_test_downloader_with_invalid_auth` is never used
--> services/data_acquisition_service/tests/common/mock_downloader.rs:173:14
|
173 | pub async fn create_test_downloader_with_invalid_auth(_path: &Path) -> TestDownloader {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: function `create_test_downloader_with_timeout` is never used
--> services/data_acquisition_service/tests/common/mock_downloader.rs:179:14
|
179 | pub async fn create_test_downloader_with_timeout(_path: &Path, timeout: Duration) -> TestDownloader {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: function `create_test_downloader_with_corrupted_data` is never used
--> services/data_acquisition_service/tests/common/mock_downloader.rs:183:14
|
183 | pub async fn create_test_downloader_with_corrupted_data(_path: &Path) -> TestDownloader {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: function `create_test_downloader_with_invalid_format` is never used
--> services/data_acquisition_service/tests/common/mock_downloader.rs:189:14
|
189 | pub async fn create_test_downloader_with_invalid_format(_path: &Path) -> TestDownloader {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: function `create_test_downloader_with_limited_disk` is never used
--> services/data_acquisition_service/tests/common/mock_downloader.rs:195:14
|
195 | pub async fn create_test_downloader_with_limited_disk(_path: &Path) -> TestDownloader {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: function `create_test_downloader_that_fails_midway` is never used
--> services/data_acquisition_service/tests/common/mock_downloader.rs:201:14
|
201 | pub async fn create_test_downloader_that_fails_midway(_path: &Path) -> TestDownloader {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: function `create_test_downloader_with_error_type` is never used
--> services/data_acquisition_service/tests/common/mock_downloader.rs:207:14
|
207 | pub async fn create_test_downloader_with_error_type(_path: &Path, error_type: &str) -> TestDownloader {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `TestService` is never constructed
--> services/data_acquisition_service/tests/common/mock_downloader.rs:226:12
|
226 | pub struct TestService {
| ^^^^^^^^^^^
warning: associated items `new`, `schedule_download`, and `get_download_status` are never used
--> services/data_acquisition_service/tests/common/mock_downloader.rs:233:12
|
232 | impl TestService {
| ---------------- associated items in this implementation
233 | pub fn new(concurrency_limit: usize) -> Self {
| ^^^
...
241 | pub async fn schedule_download(
| ^^^^^^^^^^^^^^^^^
...
295 | pub async fn get_download_status(
| ^^^^^^^^^^^^^^^^^^^
warning: function `create_test_service_with_concurrency_limit` is never used
--> services/data_acquisition_service/tests/common/mock_downloader.rs:309:14
|
309 | pub async fn create_test_service_with_concurrency_limit(_path: &Path, limit: usize) -> TestService {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: constant `STATUS_PENDING` is never used
--> services/data_acquisition_service/tests/common/mock_service.rs:16:7
|
16 | const STATUS_PENDING: i32 = 1;
| ^^^^^^^^^^^^^^
warning: constant `STATUS_DOWNLOADING` is never used
--> services/data_acquisition_service/tests/common/mock_service.rs:17:7
|
17 | const STATUS_DOWNLOADING: i32 = 2;
| ^^^^^^^^^^^^^^^^^^
warning: constant `STATUS_VALIDATING` is never used
--> services/data_acquisition_service/tests/common/mock_service.rs:18:7
|
18 | const STATUS_VALIDATING: i32 = 3;
| ^^^^^^^^^^^^^^^^^
warning: constant `STATUS_UPLOADING` is never used
--> services/data_acquisition_service/tests/common/mock_service.rs:19:7
|
19 | const STATUS_UPLOADING: i32 = 4;
| ^^^^^^^^^^^^^^^^
warning: constant `STATUS_COMPLETED` is never used
--> services/data_acquisition_service/tests/common/mock_service.rs:20:7
|
20 | const STATUS_COMPLETED: i32 = 5;
| ^^^^^^^^^^^^^^^^
warning: constant `STATUS_FAILED` is never used
--> services/data_acquisition_service/tests/common/mock_service.rs:21:7
|
21 | const STATUS_FAILED: i32 = 6;
| ^^^^^^^^^^^^^
warning: constant `STATUS_CANCELLED` is never used
--> services/data_acquisition_service/tests/common/mock_service.rs:22:7
|
22 | const STATUS_CANCELLED: i32 = 7;
| ^^^^^^^^^^^^^^^^
warning: struct `JobState` is never constructed
--> services/data_acquisition_service/tests/common/mock_service.rs:29:8
|
29 | struct JobState {
| ^^^^^^^^
warning: associated items `new`, `estimate_cost`, and `to_job_details` are never used
--> services/data_acquisition_service/tests/common/mock_service.rs:52:8
|
51 | impl JobState {
| ------------- associated items in this implementation
52 | fn new(job_id: String, request: ScheduleDownloadRequest) -> Self {
| ^^^
...
78 | fn estimate_cost(start_date: &str, end_date: &str, symbols: &[String]) -> f64 {
| ^^^^^^^^^^^^^
...
92 | fn to_job_details(&self) -> DownloadJobDetails {
| ^^^^^^^^^^^^^^
warning: struct `TestDataAcquisitionService` is never constructed
--> services/data_acquisition_service/tests/common/mock_service.rs:113:12
|
113 | pub struct TestDataAcquisitionService {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: associated items `new`, `schedule_download`, `progress_job_states`, `get_download_status`, `list_download_jobs`, and `cancel_download` are never used
--> services/data_acquisition_service/tests/common/mock_service.rs:119:12
|
118 | impl TestDataAcquisitionService {
| ------------------------------- associated items in this implementation
119 | pub fn new(simulate_corrupted_data: bool) -> Self {
| ^^^
...
126 | pub async fn schedule_download(
| ^^^^^^^^^^^^^^^^^
...
157 | async fn progress_job_states(
| ^^^^^^^^^^^^^^^^^^^
...
209 | pub async fn get_download_status(
| ^^^^^^^^^^^^^^^^^^^
...
221 | pub async fn list_download_jobs(
| ^^^^^^^^^^^^^^^^^^
...
260 | pub async fn cancel_download(
| ^^^^^^^^^^^^^^^
warning: function `create_test_service` is never used
--> services/data_acquisition_service/tests/common/mock_service.rs:283:14
|
283 | pub async fn create_test_service(_path: &Path) -> TestDataAcquisitionService {
| ^^^^^^^^^^^^^^^^^^^
warning: function `create_test_service_with_corrupted_data` is never used
--> services/data_acquisition_service/tests/common/mock_service.rs:287:14
|
287 | pub async fn create_test_service_with_corrupted_data(_path: &Path) -> TestDataAcquisitionService {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: fields `data` and `checksum` are never read
--> services/data_acquisition_service/tests/common/mock_uploader.rs:25:5
|
24 | struct StoredObject {
| ------------ fields in this struct
25 | data: Vec<u8>,
| ^^^^
26 | tags: HashMap<String, String>,
27 | checksum: String,
| ^^^^^^^^
|
= note: `StoredObject` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis
warning: struct `DownloadRequest` is never constructed
--> services/data_acquisition_service/tests/common/types.rs:11:12
|
11 | pub struct DownloadRequest {
| ^^^^^^^^^^^^^^^
warning: associated function `new_test_request` is never used
--> services/data_acquisition_service/tests/common/types.rs:20:12
|
19 | impl DownloadRequest {
| -------------------- associated function in this implementation
20 | pub fn new_test_request() -> Self {
| ^^^^^^^^^^^^^^^^
warning: struct `DownloadResult` is never constructed
--> services/data_acquisition_service/tests/common/types.rs:32:12
|
32 | pub struct DownloadResult {
| ^^^^^^^^^^^^^^
warning: struct `ScheduleResponse` is never constructed
--> services/data_acquisition_service/tests/common/types.rs:39:12
|
39 | pub struct ScheduleResponse {
| ^^^^^^^^^^^^^^^^
warning: struct `StatusResponse` is never constructed
--> services/data_acquisition_service/tests/common/types.rs:44:12
|
44 | pub struct StatusResponse {
| ^^^^^^^^^^^^^^
warning: struct `JobDetails` is never constructed
--> services/data_acquisition_service/tests/common/types.rs:49:12
|
49 | pub struct JobDetails {
| ^^^^^^^^^^
warning: struct `ScheduleDownloadRequest` is never constructed
--> services/data_acquisition_service/tests/common/types.rs:76:12
|
76 | pub struct ScheduleDownloadRequest {
| ^^^^^^^^^^^^^^^^^^^^^^^
warning: associated function `new_test_request` is never used
--> services/data_acquisition_service/tests/common/types.rs:88:12
|
87 | impl ScheduleDownloadRequest {
| ---------------------------- associated function in this implementation
88 | pub fn new_test_request() -> Self {
| ^^^^^^^^^^^^^^^^
warning: struct `ScheduleDownloadResponse` is never constructed
--> services/data_acquisition_service/tests/common/types.rs:103:12
|
103 | pub struct ScheduleDownloadResponse {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `DownloadJobDetails` is never constructed
--> services/data_acquisition_service/tests/common/types.rs:110:12
|
110 | pub struct DownloadJobDetails {
| ^^^^^^^^^^^^^^^^^^
warning: struct `GetDownloadStatusResponse` is never constructed
--> services/data_acquisition_service/tests/common/types.rs:124:12
|
124 | pub struct GetDownloadStatusResponse {
| ^^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `ListDownloadJobsResponse` is never constructed
--> services/data_acquisition_service/tests/common/types.rs:129:12
|
129 | pub struct ListDownloadJobsResponse {
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `CancelDownloadResponse` is never constructed
--> services/data_acquisition_service/tests/common/types.rs:137:12
|
137 | pub struct CancelDownloadResponse {
| ^^^^^^^^^^^^^^^^^^^^^^
warning: `model_loader` (lib test) generated 2 warnings
warning: `common` (test "volume_indicators_test") generated 1 warning
warning: unused import: `mock_uploader::*`
--> services/data_acquisition_service/tests/common/mod.rs:15:9
|
15 | pub use mock_uploader::*;
| ^^^^^^^^^^^^^^^^
warning: fields `schema`, `description`, `tags`, `priority`, and `estimated_cost_usd` are never read
--> services/data_acquisition_service/tests/common/mock_service.rs:36:5
|
29 | struct JobState {
| -------- fields in this struct
...
36 | schema: String,
| ^^^^^^
37 | description: String,
| ^^^^^^^^^^^
38 | tags: HashMap<String, String>,
| ^^^^
39 | priority: u32,
| ^^^^^^^^
...
47 | estimated_cost_usd: f64,
| ^^^^^^^^^^^^^^^^^^
|
= note: `JobState` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis
warning: struct `TestUploader` is never constructed
--> services/data_acquisition_service/tests/common/mock_uploader.rs:15:12
|
15 | pub struct TestUploader {
| ^^^^^^^^^^^^
warning: struct `StoredObject` is never constructed
--> services/data_acquisition_service/tests/common/mock_uploader.rs:24:8
|
24 | struct StoredObject {
| ^^^^^^^^^^^^
warning: multiple associated items are never used
--> services/data_acquisition_service/tests/common/mock_uploader.rs:31:12
|
30 | impl TestUploader {
| ----------------- associated items in this implementation
31 | pub fn new() -> Self {
| ^^^
...
39 | pub fn with_failures(max_failures: u32) -> Self {
| ^^^^^^^^^^^^^
...
47 | fn should_fail(&self) -> bool {
| ^^^^^^^^^^^
...
57 | fn calculate_checksum(data: &[u8]) -> String {
| ^^^^^^^^^^^^^^^^^^
...
63 | pub async fn upload_file(
| ^^^^^^^^^^^
...
111 | pub async fn upload_file_with_tags(
| ^^^^^^^^^^^^^^^^^^^^^
...
132 | pub async fn upload_file_with_progress<F>(
| ^^^^^^^^^^^^^^^^^^^^^^^^^
...
166 | pub async fn get_object_metadata(
| ^^^^^^^^^^^^^^^^^^^
warning: function `create_test_uploader` is never used
--> services/data_acquisition_service/tests/common/mock_uploader.rs:185:14
|
185 | pub async fn create_test_uploader() -> TestUploader {
| ^^^^^^^^^^^^^^^^^^^^
warning: function `create_test_uploader_with_failures` is never used
--> services/data_acquisition_service/tests/common/mock_uploader.rs:189:14
|
189 | pub async fn create_test_uploader_with_failures(num_failures: u32) -> TestUploader {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: struct `UploadResult` is never constructed
--> services/data_acquisition_service/tests/common/types.rs:58:12
|
58 | pub struct UploadResult {
| ^^^^^^^^^^^^
warning: struct `ObjectMetadata` is never constructed
--> services/data_acquisition_service/tests/common/types.rs:67:12
|
67 | pub struct ObjectMetadata {
| ^^^^^^^^^^^^^^
warning: `common` (test "ml_strategy_integration_tests") generated 8 warnings
warning: unused import: `futures::stream`
--> storage/tests/s3_tests.rs:18:5
|
18 | use futures::stream;
| ^^^^^^^^^^^^^^^
|
= note: `#[warn(unused_imports)]` on by default
warning: unused import: `GetResultPayload`
--> storage/tests/s3_tests.rs:22:55
|
22 | Error as ObjectStoreError, GetOptions, GetResult, GetResultPayload, ListResult, ObjectMeta,
| ^^^^^^^^^^^^^^^^
warning: unused import: `storage::object_store_backend::ObjectStoreBackend`
--> storage/tests/s3_tests.rs:26:5
|
26 | use storage::object_store_backend::ObjectStoreBackend;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: variants `AlreadyExists`, `Precondition`, `NotModified`, `NotImplemented`, and `UnknownConfigurationKey` are never constructed
--> storage/tests/s3_tests.rs:52:5
|
49 | enum ErrorType {
| --------- variants in this enum
...
52 | AlreadyExists,
| ^^^^^^^^^^^^^
53 | Precondition,
| ^^^^^^^^^^^^
54 | NotModified,
| ^^^^^^^^^^^
55 | NotImplemented,
| ^^^^^^^^^^^^^^
56 | Unauthenticated,
57 | UnknownConfigurationKey,
| ^^^^^^^^^^^^^^^^^^^^^^^
|
= note: `ErrorType` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis
= note: `#[warn(dead_code)]` on by default
warning: `data_acquisition_service` (test "download_workflow_tests") generated 33 warnings (24 duplicates) (run `cargo fix --test "download_workflow_tests"` to apply 1 suggestion)
warning: extern crate `lru` is unused in crate `integration_tests`
|
= help: remove the dependency or add `use lru as _;` to the crate root
= note: requested on the command line with `-W unused-crate-dependencies`
warning: extern crate `serde` is unused in crate `integration_tests`
|
= help: remove the dependency or add `use serde as _;` to the crate root
warning: extern crate `tracing` is unused in crate `integration_tests`
|
= help: remove the dependency or add `use tracing as _;` to the crate root
warning: unused import: `mock_service::*`
--> services/data_acquisition_service/tests/common/mod.rs:14:9
|
14 | pub use mock_service::*;
| ^^^^^^^^^^^^^^^
|
= note: `#[warn(unused_imports)]` on by default
warning: struct `MockStorage` is never constructed
--> model_loader/tests/integration_tests.rs:18:8
|
18 | struct MockStorage {
| ^^^^^^^^^^^
|
= note: `#[warn(dead_code)]` on by default
warning: associated function `new` is never used
--> model_loader/tests/integration_tests.rs:23:8
|
22 | impl MockStorage {
| ---------------- associated function in this implementation
23 | fn new() -> Self {
| ^^^
warning: `data_acquisition_service` (test "minio_upload_tests") generated 50 warnings (run `cargo fix --test "minio_upload_tests"` to apply 5 suggestions)
warning: variant `Timeout` is never constructed
--> services/data_acquisition_service/tests/common/mock_downloader.rs:17:5
|
13 | pub enum ErrorMode {
| --------- variant in this enum
...
17 | Timeout,
| ^^^^^^^
|
= note: `ErrorMode` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis
= note: `#[warn(dead_code)]` on by default
warning: fields `dataset`, `symbols`, `start_date`, and `end_date` are never read
--> services/data_acquisition_service/tests/common/types.rs:12:9
|
11 | pub struct DownloadRequest {
| --------------- fields in this struct
12 | pub dataset: String,
| ^^^^^^^
13 | pub symbols: Vec<String>,
| ^^^^^^^
14 | pub start_date: String,
| ^^^^^^^^^^
15 | pub end_date: String,
| ^^^^^^^^
|
= note: `DownloadRequest` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis
Compiling api_gateway_load_tests v0.1.0 (/home/jgrusewski/Work/foxhunt/services/api_gateway/load_tests)
warning: `model_loader` (test "versioning_cache_tests") generated 3 warnings
warning: unused variable: `i`
--> common/tests/macd_tests.rs:162:9
|
162 | for i in 0..20 {
| ^ help: if this is intentional, prefix it with an underscore: `_i`
|
= note: `#[warn(unused_variables)]` on by default
warning: unused variable: `i`
--> common/tests/macd_tests.rs:290:9
|
290 | for i in 0..50 {
| ^ help: if this is intentional, prefix it with an underscore: `_i`
warning: `data_acquisition_service` (test "error_handling_tests") generated 32 warnings (29 duplicates) (run `cargo fix --test "error_handling_tests"` to apply 1 suggestion)
warning: `storage` (test "s3_tests") generated 4 warnings (run `cargo fix --test "s3_tests"` to apply 3 suggestions)
warning: unused variable: `event`
--> trading_engine/src/types/events.rs:2114:18
|
2114 | let (event, timestamp) = queue.pop().ok_or("Queue empty during stress test")?;
| ^^^^^ help: if this is intentional, prefix it with an underscore: `_event`
|
= note: `#[warn(unused_variables)]` on by default
warning: `model_loader` (test "integration_tests") generated 5 warnings
error: `SQLX_OFFLINE=true` but there is no cached data for this query, run `cargo sqlx prepare` to update the query cache or unset `SQLX_OFFLINE`
--> common/tests/wave_d_regime_tracking_tests.rs:46:13
|
46 | let _ = sqlx::query!("DELETE FROM regime_states WHERE symbol = $1", symbol)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info)
error: `SQLX_OFFLINE=true` but there is no cached data for this query, run `cargo sqlx prepare` to update the query cache or unset `SQLX_OFFLINE`
--> common/tests/wave_d_regime_tracking_tests.rs:49:13
|
49 | let _ = sqlx::query!(
| _____________^
50 | | "DELETE FROM regime_transitions WHERE symbol = $1",
51 | | symbol
52 | | )
| |_____^
|
= note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info)
error: `SQLX_OFFLINE=true` but there is no cached data for this query, run `cargo sqlx prepare` to update the query cache or unset `SQLX_OFFLINE`
--> common/tests/wave_d_regime_tracking_tests.rs:55:13
|
55 | let _ = sqlx::query!(
| _____________^
56 | | "DELETE FROM adaptive_strategy_metrics WHERE symbol = $1",
57 | | symbol
58 | | )
| |_____^
|
= note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info)
error: `SQLX_OFFLINE=true` but there is no cached data for this query, run `cargo sqlx prepare` to update the query cache or unset `SQLX_OFFLINE`
--> common/tests/wave_d_regime_tracking_tests.rs:574:26
|
574 | let result = sqlx::query!(
| __________________________^
575 | | r#"
576 | | INSERT INTO regime_states (
577 | | symbol, regime, confidence, event_timestamp,
... |
589 | | Some(0.95)
590 | | )
| |_____________^
|
= note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info)
error: `SQLX_OFFLINE=true` but there is no cached data for this query, run `cargo sqlx prepare` to update the query cache or unset `SQLX_OFFLINE`
--> common/tests/wave_d_regime_tracking_tests.rs:644:18
|
644 | let matrix = sqlx::query!(
| __________________^
645 | | r#"
646 | | SELECT
647 | | from_regime,
... |
653 | | symbol
654 | | )
| |_____^
|
= note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info)
error: could not compile `common` (test "wave_d_regime_tracking_tests") due to 5 previous errors
warning: build failed, waiting for other jobs to finish...
warning: `common` (test "macd_tests") generated 2 warnings
warning: `trading_engine` (lib test) generated 1 warning
error: process didn't exit successfully: `/home/jgrusewski/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/bin/cargo test --tests --manifest-path /home/jgrusewski/Work/foxhunt/Cargo.toml --target-dir /home/jgrusewski/Work/foxhunt/target/llvm-cov-target --workspace` (exit status: 101)