Commit Graph

44 Commits

Author SHA1 Message Date
Sudo-Ivan 39b8d5fef8 Cleanup
Build Test / Build and Test (push) Failing after 6m1s
CI / lint (push) Failing after 1m27s
CI / build-frontend (push) Failing after 1m30s
CI / test-backend (push) Successful in 1m17s
CI / test-lang (push) Failing after 1m15s
Build and Publish Docker Image / build (push) Failing after 4m28s
Build and Publish Docker Image / build-dev (push) Failing after 5m38s
Security Scans / scan (push) Successful in 2m12s
Tests / test (push) Failing after 1m17s
2026-02-17 17:59:46 -06:00
Sudo-Ivan d9cbc59ab3 Refactor backend tests
- Removed redundant comments from various test files to enhance readability and focus on the test logic.
- Added a few tests for prop sync and markdown security.
2026-02-14 19:18:20 -06:00
Sudo-Ivan 67fe101554 Improve messaging features and configuration options
- Add more tests
- Fix notifactions
2026-02-01 17:21:03 -06:00
Sudo-Ivan d474afbf80 Add reply functionality to messages in ReticulumMeshChat
- Implemented reply feature by adding `reply_to_hash` to messages, allowing users to reference previous messages.
- Updated message handling in `convert_lxmf_message_to_dict` to process `reply_to` fields.
- Enhanced frontend components to display reply snippets and manage reply state.
- Added localization for reply-related text in multiple languages.
- Updated database schema to include `reply_to_hash` and created necessary indices.

This update improves user interaction by enabling message threading and enhances the overall messaging experience.
2026-02-01 15:13:00 -06:00
Sudo-Ivan 2b854f7c5c Code Cleanup 2026-01-16 09:34:18 -06:00
Sudo-Ivan f94fe0ec08 Improve integrity management with advanced checks and metadata support
- Introduced entropy calculations to detect content type shifts in files.
- Added SQLite integrity checks to verify database structure and prevent tampering.
- Updated the manifest saving process to include metadata for files, such as entropy and size.
- Expanded ignored file patterns for volatile LXMF components.
- Implemented extensive unit tests to validate new features and ensure robustness.
2026-01-16 09:33:19 -06:00
Sudo-Ivan 64e4fceb2d Refactor identity manager metadata loading and improve legacy migrator column handling
- Simplified metadata loading in IdentityManager by combining context managers.
- Updated LegacyMigrator to exclude 'id' from common columns during migration to prevent collisions.
- Increased SQLite connection timeout in DatabaseProvider for improved reliability.
- Removed unnecessary thread patching in test configuration.
- Added concurrency stress tests for database operations and identity management.
- Introduced database migration tests to validate legacy data handling and migration success.
2026-01-16 09:21:30 -06:00
Sudo-Ivan ee9ed05338 Add property-based tests for display name parsing and fuzzing
- Introduced new test suite for `parse_lxmf_display_name`, `parse_nomadnetwork_node_display_name`, and related functions using Hypothesis for property-based testing.
- Added various strategies to generate diverse input data, including edge cases for invalid and long names.
- Implemented tests to ensure robustness against invalid base64 inputs and to verify expected behavior with valid and corrupted data.
- Created smoke tests for frontend components including BotsPage, ForwarderPage, and others to ensure proper rendering and functionality.
2026-01-16 08:51:48 -06:00
Sudo-Ivan ee5a71361a 4.1.0 2026-01-14 19:03:00 -06:00
Sudo-Ivan 1eeeb1cb4e Improve crash recovery diagnostics and analysis
- Expanded the crash recovery module to include advanced diagnostic metrics such as system entropy, KL-Divergence, and manifold curvature.
- Improved root cause analysis by implementing a probabilistic approach with detailed suggestions for various failure scenarios.
- Added comprehensive tests to validate heuristic analysis, entropy calculations, and the robustness of the crash recovery logic.
- Updated existing tests to ensure accurate diagnosis and reporting of system states during exceptions.
2026-01-14 18:32:58 -06:00
Sudo-Ivan 16d5f2d497 Refactor MarkdownRenderer regex patterns for improved matching
- Updated regex patterns in the MarkdownRenderer to use non-greedy matching for better accuracy in text rendering.
- Enhanced the test for header rendering to ensure correct HTML structure and added assertions for escaping content without markdown special characters.
2026-01-14 18:16:41 -06:00
Sudo-Ivan c08cdb65b6 Add Hypothesis settings to lifecycle tests for improved fuzzing
- Introduced settings to disable deadlines in the test_identity_context_repeated_lifecycle function.
- Combined import statements for Hypothesis to streamline the code.
2026-01-14 18:03:15 -06:00
Sudo-Ivan 1788aea0c2 Add tests for crash recovery, emergency mode, and lifecycle management
- Introduced new tests for heuristic analysis in crash recovery to validate error diagnosis.
- Added tests for emergency mode to ensure memory concurrency handling with the in-memory database.
- Created a comprehensive suite for lifecycle management, including database provider disposal and identity context teardown to prevent memory leaks.
- Improved existing tests for WebAudioBridge to verify proper event loop handling and resource cleanup.
2026-01-14 17:59:22 -06:00
Sudo-Ivan ca36d082fd Update Markdown rendering and add robust identity restoration tests
- Updated the MarkdownRenderer to prevent rendering issues with single asterisks and underscores by ensuring they are not surrounded by whitespace.
- Introduced new property-based tests for IdentityManager to validate robustness against various input scenarios.
- Added tests for Markdown list and link rendering to ensure correct HTML output from Markdown input.
2026-01-14 13:08:26 -06:00
Sudo-Ivan 2ce29a6488 ruff format and fixes 2026-01-14 13:02:33 -06:00
Sudo-Ivan 0ae45b45c0 Add temporary log directory setup for tests and improve input validation in fuzz tests
- Configured a temporary directory for log files in tests to prevent permission issues in restricted environments.
- Improved input validation in fuzz tests for `root_folder_name` and `docs_file` to exclude null characters, enhancing robustness.
- Introduced a new test suite for property-based testing of telemetry and utility functions, ensuring stability and correctness across various scenarios.
2026-01-14 12:40:28 -06:00
Sudo-Ivan e7e16707a0 Update health check test 2026-01-14 07:57:28 -06:00
Sudo-Ivan 7a419f96ee feat(tests): add unit tests for auto propagation API and logic 2026-01-08 19:29:30 -06:00
Sudo-Ivan 1e5564cfa3 refactor(tests): formatting 2026-01-07 19:51:48 -06:00
Sudo-Ivan 8bc7e39aee refactor(tests): clean up telemetry integration test by removing unused imports 2026-01-07 19:30:06 -06:00
Sudo-Ivan e2586e9052 feat(tests): add comprehensive telemetry and interface tests
- Introduced new test files for telemetry functionality, including integration, fuzzing, and extended tests to ensure robustness and performance.
- Added tests for parsing LXMF display names and telemetry data, addressing potential bugs and ensuring correct handling of various input formats.
- Implemented performance tests for the InterfacesPage component, validating rendering efficiency with a large number of discovered interfaces.
- Enhanced existing tests for markdown rendering and link utilities to cover additional edge cases and improve stability.
2026-01-07 19:22:00 -06:00
Sudo-Ivan 44608ffb36 feat(maintenance): add test for deleting all user icons in maintenance module 2026-01-07 19:21:57 -06:00
Sudo-Ivan 666c90875a interface discovery, folders for messages, map nodes from discovery, maintenance tools. 2026-01-05 17:38:52 -06:00
Sudo-Ivan fda9187e95 numerous improvements 2026-01-05 11:47:35 -06:00
Sudo-Ivan 5f2aca4390 feat(tests): add unit tests for WebAudioSource and WebAudioSink functionality 2026-01-04 23:19:44 -06:00
Sudo-Ivan db89e2c86e fix(tests): fix test 2026-01-04 19:14:53 -06:00
Sudo-Ivan 2f65bde2d3 feat(call): update tone generator functionality with volume control and enable/disable settings; update frontend components to reflect new configurations 2026-01-04 17:48:07 -06:00
Sudo-Ivan d836e7a2e8 feat(call): improve call handling by adding remote destination hash tracking, improving initiation status checks, and refining ringtone management in the frontend 2026-01-04 17:16:23 -06:00
Sudo-Ivan c4674992e0 lots of fixes, changes, styling, fixing outbound calls, rnode-flasher. 2026-01-04 15:57:49 -06:00
Sudo-Ivan bc40dcff4e feat(tests): add comprehensive tests for blackhole integration, RNPath management, and RNStatus handling 2026-01-04 12:41:55 -06:00
Sudo-Ivan a67e7da8af test(fuzzing): add extensive fuzzing tests for WebSocket API, LXMF message handling, and telemetry functions 2026-01-03 23:15:48 -06:00
Sudo-Ivan 86bbbb8003 test(app_shutdown): update shutdown endpoint test by mocking exit_app and improving sleep handling 2026-01-03 22:14:13 -06:00
Sudo-Ivan 4e308e427a test(tests): add global mocks and cleanup fixtures for improved test isolation and resource management 2026-01-03 22:10:19 -06:00
Sudo-Ivan 8c5a68a01f refactor(tests): replace db.close() with db.close_all() in multiple test files and ensure proper teardown of ReticulumMeshChat instances 2026-01-03 21:36:42 -06:00
Sudo-Ivan 6d975a12c4 feat(tests): add comprehensive LXMF propagation and sync tests 2026-01-03 21:18:14 -06:00
Sudo-Ivan ccec0afa22 refactor(tests): remove unused asyncio import from test_propagation_nodes_robustness.py 2026-01-03 20:53:47 -06:00
Sudo-Ivan d209c0c9ab feat(tests): add comprehensive tests for AnnounceDAO filtering functionality and enhance robustness checks for propagation nodes endpoint 2026-01-03 19:26:35 -06:00
Sudo-Ivan fd41a62bc1 refactor(tests): streamline test code by removing unused imports and optimizing function calls for performance benchmarks 2026-01-03 18:43:13 -06:00
Sudo-Ivan 9ecdd157f3 refactor(tests): update backend integrity tests to include metadata in manifest and add new debug log tests for persistent logging functionality 2026-01-03 18:30:40 -06:00
Sudo-Ivan 950abef79c feat(tests): add comprehensive benchmarks for database performance, memory usage, and application stability, including new test files for various frontend and backend functionalities 2026-01-03 16:08:07 -06:00
Sudo-Ivan beb86880e0 refactor(tests): format 2026-01-02 20:53:21 -06:00
Sudo-Ivan adbf0a9ce9 chore(tests): clean up test files by adding missing newlines and reordering imports for consistency 2026-01-02 20:36:42 -06:00
Sudo-Ivan 51d705ffa4 feat(tests): add fuzzing tests for telemetry unpacking, interface configuration parsing, and LXMF message handling 2026-01-02 20:06:18 -06:00
Sudo-Ivan 00b4290735 feat(tests): add comprehensive test suite for backend functionality, including database, configuration, and telemetry utilities 2026-01-02 19:41:05 -06:00