Skip to content

Configure environment comparison threshold - #105

Open
Babak (babaknaderi) wants to merge 1 commit into
masterfrom
fix/environment-comparison-threshold-clean
Open

Babak (babaknaderi) wants to merge 1 commit into
masterfrom
fix/environment-comparison-threshold-clean

Conversation

@babaknaderi

Copy link
Copy Markdown
Contributor

This supersedes #90 with a clean implementation based on the current master branch.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

Static review found no blocking issues in the focused validation and propagation changes; tests were not executed.

No open issues 🎉

What changed in this PR

Makes the environment comparison pass threshold configurable, keeping HIT app screening and result analysis aligned. This replaces #90’s implementation while preserving the default threshold of 2.

Changes:

  • Validates cmp_pass_threshold as an integer from 1 through 4.
  • Propagates the threshold into shared HIT app configuration and all four analyzer templates.
  • Adds tests for defaults, invalid values, and analyzer configuration rendering.
File Description
tests/​test_master_script.py Tests threshold validation and analyzer output.
src/​master_script.py Validates and propagates the configured threshold.
src/​configurations/​master.cfg Documents the setting and its default.
src/​assets_master_script/​pp835_result_parser_template.cfg Uses the configured threshold for PP.835 analysis.
src/​assets_master_script/​p804_result_parser_template.cfg Uses the configured threshold for P.804 analysis.
src/​assets_master_script/​dcr_ccr_result_parser_template.cfg Uses the configured threshold for DCR/CCR analysis.
src/​assets_master_script/​acr_result_parser_template.cfg Uses the configured threshold for ACR analysis.
.gitattributes Disables text normalization for analyzer configuration templates.

Review effort: Balanced

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