Add new simplify command - #1661
Conversation
There was a problem hiding this comment.
Code Review
This pull request introduces a new simplify command for the Ramble framework, designed to identify and optionally remove unused variables, inputs, executables, and compilers from definition files, as well as detect broken references. The review feedback highlights several areas for improvement, including replacing broad exception handling with specific exceptions to improve debugging, optimizing the instantiation of the Keywords class to avoid redundant work, and refactoring duplicated cache-resetting logic in the test suite into a reusable helper function.
Ramble Performance Test MetricsResults produced with commit: 8d248b4
|
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #1661 +/- ##
===========================================
+ Coverage 93.94% 93.98% +0.03%
===========================================
Files 367 370 +3
Lines 36605 37925 +1320
===========================================
+ Hits 34389 35642 +1253
- Misses 2216 2283 +67 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
7d03ee3 to
86ca51f
Compare
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
…mmand - Wrap when() and default_args() yield calls in try/finally blocks to ensure contexts are cleanly popped even if directives raise exceptions. Add DirectiveMeta._reset_staging() and invoke it upon module load failures in repository.py to prevent condition leakage across object definitions. - Consolidate repetitive template extraction and reference validation across executables, variables, environment variables, inputs, figures of merit, and success criteria into iter_object_template_strings(). Unify unreferenced item counting in count_unreferenced_items() and map directives with DIRECTIVE_CATEGORIES. - Support refactoring and moving unused parent variables to inheriting subclasses.
ed9e3ad to
26caa5b
Compare
6bb6959 to
eeddb4c
Compare
No description provided.