Skip to content

Conversation

@LeChatP
Copy link
Owner

@LeChatP LeChatP commented May 1, 2025

This should optimize RootAsRole project

LeChatP added 30 commits April 15, 2025 15:43
This huge commit is rewriting the optimisation, securing everything and simplifying.
This should further enhance the performance.
…dule

- Refactored the serialization logic for SConfig, SRole, SSetuidSet, SSetgidSet, SCredentials, STask, and SCommands to fix inconsistencies.
- Added tests for serialization of SConfig, SRole, SSetuidSet, SSetgidSet, SCredentials, STask, and SCommands to ensure correctness.
- Enhanced handling of human-readable and binary serialization formats.
- Added conversion rules to the CLI parser in `pair.rs` to handle conversion actions.
- Introduced a new module `convert.rs` to encapsulate the conversion logic, including writing configuration files in different formats (JSON, CBOR).
- Refactored `process_input` in `process.rs` to handle conversion inputs and streamline the handling of storage configurations.
- Updated the main function in `main.rs` to work with the new settings structure and removed unnecessary storage method checks.
- Cleaned up unused error handling in `finder/mod.rs` related to unsupported storage methods.
- Updated the `SPathOptions` to `DPathOptions` in various deserializer implementations for better clarity and functionality.
- Introduced a new method `default_path` in `DPathOptions` to encapsulate default path initialization logic.
- Enhanced the `union` method in `DPathOptions` to manage path options merging more effectively.
- Simplified the `user_matches` method in `ActorsFinderDeserializer` by removing unnecessary `if let` constructs.
- Added unit tests for timezone safety checks and path handling.
@codecov
Copy link

codecov bot commented May 12, 2025

Codecov Report

Attention: Patch coverage is 68.87887% with 483 lines in your changes missing coverage. Please review.

Please upload report for BASE (dev@e7f67da). Learn more about missing BASE report.

Files with missing lines Patch % Lines
src/sr/finder/options.rs 76.48% 79 Missing ⚠️
src/sr/finder/mod.rs 53.20% 73 Missing ⚠️
rar-common/src/database/ser.rs 67.63% 67 Missing ⚠️
rar-common/src/database/de.rs 63.07% 48 Missing ⚠️
src/chsr/cli/process/convert.rs 0.00% 40 Missing ⚠️
src/sr/finder/api/ssd.rs 0.00% 38 Missing ⚠️
rar-common/src/lib.rs 42.22% 26 Missing ⚠️
src/sr/finder/api/hierarchy.rs 0.00% 25 Missing ⚠️
rar-common/src/database/actor.rs 84.05% 22 Missing ⚠️
src/sr/finder/api/hashchecker.rs 80.80% 19 Missing ⚠️
... and 8 more
Additional details and impacted files
@@          Coverage Diff           @@
##             dev      #70   +/-   ##
======================================
  Coverage       ?   74.05%           
======================================
  Files          ?       33           
  Lines          ?     4108           
  Branches       ?        0           
======================================
  Hits           ?     3042           
  Misses         ?     1066           
  Partials       ?        0           
Flag Coverage Δ
admin-unittests 73.85% <68.87%> (?)
unittests 74.02% <68.81%> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@LeChatP
Copy link
Owner Author

LeChatP commented May 17, 2025

There are many things to optimize. I think we are quite acceptable now

@LeChatP LeChatP merged commit cae0e67 into dev May 17, 2025
6 checks passed
@LeChatP LeChatP deleted the optimize branch May 17, 2025 20:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants