brainy/tests
David Snelling b989e72be4 fix(emergency): drastically lower high-volume mode activation thresholds
EMERGENCY FIX for bluesky-package socket exhaustion despite v0.54.1

🚨 CRITICAL CHANGES:
- Activation threshold: 100 → 1 pending operation (configurable)
- Add socket utilization trigger: >10% usage activates buffering
- Add environment variables:
  - BRAINY_BUFFER_THRESHOLD=1 (when to start buffering)
  - BRAINY_FORCE_BUFFERING=true (force enable)
- Add comprehensive logging with emojis for visibility:
  - '🚨 HIGH-VOLUME MODE ACTIVATED 🚨' when buffering starts
  - '🚀 BATCH FLUSH: N items → 1 bulk S3 operation' for batch writes
  - '📈 BUFFER GROWTH: N items buffered' every 100 additions

PROBLEM: v0.54.1 buffering not activating with 7,500 pending requests
SOLUTION: Activate buffering at first sign of load (1+ pending operations)

This should immediately activate buffering in bluesky-package production.
2025-08-07 09:51:22 -07:00
..
mocks feat: add automatic high-volume handling for S3 storage adapter 2025-08-07 06:11:45 -07:00
api-integration.test.ts **test(storage-adapter-coverage): improve search result validation and consistency in assertions** 2025-08-01 18:31:05 -07:00
auto-configuration.test.ts feat(pagination): implement cursor-based pagination and enhance search caching 2025-08-04 14:25:05 -07:00
base-hnsw-test.ts fix: correct typo in README major updates section 2025-08-06 12:29:32 -07:00
core.test.ts feat: migrate system metadata from 'index' to '_system' directory with backward compatibility 2025-08-06 09:45:56 -07:00
database-operations.test.ts **docs: remove outdated statistics-related documentation and add standards** 2025-07-28 16:00:05 -07:00
dimension-standardization.test.ts fix: resolve test failures and browser environment issues 2025-08-05 19:38:26 -07:00
distributed-caching.test.ts feat(pagination): implement cursor-based pagination and enhance search caching 2025-08-04 14:25:05 -07:00
distributed-config-migration.test.ts feat: migrate system metadata from 'index' to '_system' directory with backward compatibility 2025-08-06 09:45:56 -07:00
distributed.test.ts feat\!: migrate from TensorFlow.js to Transformers.js with ONNX Runtime 2025-08-05 19:29:59 -07:00
edge-cases.test.ts feat\!: migrate from TensorFlow.js to Transformers.js with ONNX Runtime 2025-08-05 19:29:59 -07:00
emergency-high-volume-test.js fix(emergency): drastically lower high-volume mode activation thresholds 2025-08-07 09:51:22 -07:00
environment.browser.test.ts fix: resolve test failures and browser environment issues 2025-08-05 19:38:26 -07:00
environment.node.test.ts feat\!: migrate from TensorFlow.js to Transformers.js with ONNX Runtime 2025-08-05 19:29:59 -07:00
error-handling.test.ts **docs: remove outdated statistics-related documentation and add standards** 2025-07-28 16:00:05 -07:00
filter-discovery.test.ts feat: v0.49 - Filter discovery API, remove deprecated methods, improve performance 2025-08-06 14:39:33 -07:00
filter-test.ts fix: correct typo in README major updates section 2025-08-06 12:29:32 -07:00
frozen-flag.test.ts feat: add frozen flag for complete immutability and simplify README examples 2025-08-06 09:52:45 -07:00
high-volume-test.ts feat: add automatic adaptive performance optimization for high-volume scenarios 2025-08-07 08:37:15 -07:00
intelligent-verb-scoring.test.ts feat: add intelligent verb scoring system for automatic relationship weighting 2025-08-06 17:47:11 -07:00
json-search-test.js **feat(search): enhance JSON document search with field-level filtering and prioritization** 2025-08-01 08:27:39 -07:00
metadata-filter-debug.test.ts fix: correct typo in README major updates section 2025-08-06 12:29:32 -07:00
metadata-filter-environments.test.ts fix: correct typo in README major updates section 2025-08-06 12:29:32 -07:00
metadata-filter.test.ts feat: v0.49 - Filter discovery API, remove deprecated methods, improve performance 2025-08-06 14:39:33 -07:00
metadata-performance.test.ts fix: correct typo in README major updates section 2025-08-06 12:29:32 -07:00
multi-environment.test.ts **feat(scripts): add automated release workflow script** 2025-07-31 13:40:28 -07:00
opfs-storage.test.ts **feat(core, storage, tests): enhance verb construction with timestamps and metadata** 2025-07-25 09:44:10 -07:00
package-install.test.ts refactor: simplify build system and improve model loading flexibility 2025-08-05 16:09:30 -07:00
package-size-breakdown.test.ts feat(tests): replace old test scripts with updated test suite for storage and reporting 2025-07-21 12:47:20 -07:00
package-size-limit.test.ts fix: include all JavaScript modules in npm package 2025-08-05 16:20:36 -07:00
pagination.test.ts feat\!: migrate from TensorFlow.js to Transformers.js with ONNX Runtime 2025-08-05 19:29:59 -07:00
performance-improvements.test.ts feat(pagination): implement cursor-based pagination and enhance search caching 2025-08-04 14:25:05 -07:00
performance.test.ts **docs: remove outdated statistics-related documentation and add standards** 2025-07-28 16:00:05 -07:00
s3-storage.test.ts **test(storage): add tests for S3 change log functionality** 2025-07-31 10:22:47 -07:00
service-statistics.test.ts feat: add comprehensive per-service statistics tracking 2025-08-06 10:17:28 -07:00
setup.ts feat\!: migrate from TensorFlow.js to Transformers.js with ONNX Runtime 2025-08-05 19:29:59 -07:00
simple-metadata-test.ts fix: correct typo in README major updates section 2025-08-06 12:29:32 -07:00
specialized-scenarios.test.ts **fix(storage): improve restoration and deletion logic in storage adapter** 2025-07-31 14:03:51 -07:00
statistics-storage.test.ts **feat(tests, docs, storage): add statistics storage tests and enhance documentation** 2025-07-24 16:24:02 -07:00
statistics.test.ts feat\!: migrate from TensorFlow.js to Transformers.js with ONNX Runtime 2025-08-05 19:29:59 -07:00
storage-adapter-coverage.test.ts **test(storage-adapter-coverage): improve search result validation and consistency in assertions** 2025-08-01 18:31:05 -07:00
storage-adapters.test.ts refactor: simplify build system and improve model loading flexibility 2025-08-05 16:09:30 -07:00
test-matrix.md **docs: remove outdated statistics-related documentation and add standards** 2025-07-28 16:00:05 -07:00
type-utils.test.ts **feat(utils): add type utility functions and examples for runtime type management** 2025-07-31 14:24:16 -07:00
vector-operations.test.ts fix: resolve test failures and browser environment issues 2025-08-05 19:38:26 -07:00
verify-custom-models.js refactor: simplify build system and improve model loading flexibility 2025-08-05 16:09:30 -07:00
verify-model-loading.js refactor: simplify build system and improve model loading flexibility 2025-08-05 16:09:30 -07:00
verify-model-priority-simple.js refactor: simplify build system and improve model loading flexibility 2025-08-05 16:09:30 -07:00
write-only-direct-reads.test.ts feat: add direct storage access in write-only mode for efficient deduplication 2025-08-07 07:57:41 -07:00