Closes #22280: Set 91% test coverage threshold and exclude non-testable paths#22450
Conversation
|
@claude /review Only report on issues of potential concern; we don't need commentary on anything that doesn't require further consideration. |
|
Claude finished @pheus's task in 1m 39s —— View job Review
1. The PR description doesn't clarify whether 91% reflects current measured coverage (i.e. this is the floor) or a target. If it's set exactly at the current level with no headroom, any new untested code could immediately break CI. It would help to know the actual current coverage percentage and whether the 91% value leaves a meaningful buffer. 2. The file still contains substantial logic (version checking via HTTP, 3. The pattern matches any directory named 4.
5. CI:
|
|
| "*/migrations/*", | ||
| "*/tests/*", | ||
| # Non-application code (no testable logic / not part of the app) | ||
| "*/scripts/*", # SCRIPTS_ROOT: user/test scripts |
There was a problem hiding this comment.
I think I agree with claudebot here. Use the anchored pattern instead:
"netbox/scripts/*", # SCRIPTS_ROOT: user/generated scriptsThis matches the one real location with no wildcards that can drift.
Worth tightening because */scripts/* is only safe today by accident: nothing under source has a scripts/ subdirectory yet. Add one later (dcim/scripts/, etc.) and it gets silently excluded from coverage, which defeats the regression-catching this PR exists to provide.
Exclude non-application code from coverage reports and set fail_under to 91%. Omits scripts, configuration files, WSGI entrypoint, secret key generator, debug utilities, and deprecated management commands that lack testable logic or are outside the application scope. Fixes #22280
67f99a6 to
bd72ed0
Compare
Closes: #22280
Exclude non-application code from coverage reports and set fail_under to 91%. Omits scripts, configuration files, WSGI entrypoint, secret key generator, debug utilities, and deprecated management commands that lack testable logic or are outside the application scope.