Skip to content

Add numeric attribute types to the Pyval generator for on-demand rule tracing - #3200

Merged
paul0403 merged 1 commit into
mainfrom
add-missing-attribute-types-odg
Sep 14, 2026
Merged

Add numeric attribute types to the Pyval generator for on-demand rule tracing#3200
paul0403 merged 1 commit into
mainfrom
add-missing-attribute-types-odg

Conversation

@dime10

@dime10 dime10 commented Sep 9, 2026

Copy link
Copy Markdown
Contributor

Mostly standalone PR to fix the "placeholder" string being generated for unknown attribute types. The known attributes are extended to include bools, ints, and floats, and an error is now raised instead of the bogus value.

@dime10
dime10 requested review from kipawaa and paul0403 September 9, 2026 04:46
@codecov

codecov Bot commented Sep 9, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 95.32%. Comparing base (f3c06e2) to head (ac35c6e).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3200      +/-   ##
==========================================
- Coverage   97.23%   95.32%   -1.92%     
==========================================
  Files          40      177     +137     
  Lines        4522    20877   +16355     
  Branches        0     2102    +2102     
==========================================
+ Hits         4397    19900   +15503     
- Misses        125      771     +646     
- Partials        0      206     +206     

☔ View full report in Codecov by Harness.
📢 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.

@dime10
dime10 added this pull request to stack #3207 September 9, 2026 21:31
@dime10
dime10 force-pushed the add-missing-attribute-types-odg branch from 93e8e9c to 904e120 Compare September 9, 2026 21:37
@dime10
dime10 force-pushed the add-missing-attribute-types-odg branch from 904e120 to 9a9cbc5 Compare September 11, 2026 15:14
@dime10
dime10 force-pushed the add-missing-attribute-types-odg branch from 9a9cbc5 to 287f2f3 Compare September 11, 2026 15:39
Base automatically changed from type-printing-is-ssot to main September 14, 2026 16:24
+ raise on unknown type rather than emitting a placeholder string, which
is confusing to debug.
@paul0403
paul0403 force-pushed the add-missing-attribute-types-odg branch from 287f2f3 to ac35c6e Compare September 14, 2026 16:24
@paul0403
paul0403 merged commit e0bf6d6 into main Sep 14, 2026
38 checks passed
@paul0403
paul0403 deleted the add-missing-attribute-types-odg branch September 14, 2026 18:07
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.

3 participants