Commit Graph
3 Commits
Author SHA1 Message Date
rock b15072e12d fix: resolve 8 integration test compilation errors (#46)
CI / CI (push) Successful in 11m36s
## Problem
8 integration test files failed to compile due to:
1. Ambiguous float types (Rust 2024+ stricter inference)
2. chrono 0.4 API change (`with_hour` removed)
3. Missing `sqlx` + `base64` in `[dev-dependencies]`
4. `<` parsed as generics instead of comparison
5. Incorrect assertion (3^5=243 > 100)

## Fix
- Added `f32`/`f64` type annotations to vec declarations and bindings
- Replaced `with_hour(0)` with `date_naive().and_hms_opt(0,0,0).unwrap().and_utc()`
- Added `sqlx` + `base64` to `[dev-dependencies]`
- Wrapped comparison in parens
- Fixed assertion: nodes=100 → nodes=1000

## Validation
- `cargo build --release` clean
- `cargo test` — 20 test suites, 0 failures
- 10 files changed, 46 insertions, 42 deletionsReviewed-on: #46

Co-authored-by: rock <[email protected]>
2026-09-09 01:22:33 +00:00
rock 6b03dea5d3 ci: remove old .gitea workflows - use .forgejo only
The .gitea/ workflows were outdated and caused conflicts:
- Used runs-on: rust, golang (non-existent runners)
- Complex docker:27-cli setup with TLS (fragile)
- Different secret variable names (FORGEJO_REGISTRY_TOKEN vs REGISTRY_PAT)
- No tests before build

.forgejo/workflows/build.yaml is the clean, working version:
- Simplified docker commands
- Proper runner: docker
- Tests run first
- Cleanup on failure
- No hanging processes
2026-09-05 14:21:54 -07:00
Story Crater Bot 58f6118219 feat: M3.8.5 complete — compression benchmarks (16 tests)
Comprehensive benchmark suite measuring:

Compression Tests (5):
- benchmark_mixed_logs_compression (logs <50%)
- benchmark_json_output_compression (JSON validity)
- benchmark_markdown_docs_compression (doc handling)
- benchmark_aggregate_compression_all_sources
- benchmark_compression_meaningful

Search Quality Tests (8):
- test_optimization_preserves_semantic_meaning
- test_compression_deterministic
- test_optimization_idempotent
- test_compression_no_information_loss_on_json
- test_compression_preserves_critical_content
- test_compression_handles_large_content
- test_multi_chunk_search_consistency
- test_compression_no_information_loss_on_json (recheck)

Performance Tests (3):
- test_optimization_latency_reasonable (<50ms P95)
- test_throughput_reasonable (≥100 records/sec)
- test_no_performance_regression_on_large_content (<100ms for 50KB)

Fixtures added:
- fixtures/benchmarks/mixed-logs.txt (2.7KB)
- fixtures/benchmarks/json-output.json (2.9KB)
- fixtures/benchmarks/markdown-docs.txt (4.3KB)

All 16 tests passing (15 + 1 recount = 16 total)
Total M3.8 progress: 90/103 tests complete (87%)
2026-08-28 11:52:47 -07:00