Skip to content

fix: standardize machine validation test naming to lowercase#525

Open
chet wants to merge 1 commit intoNVIDIA:mainfrom
chet:fix_issue_456
Open

fix: standardize machine validation test naming to lowercase#525
chet wants to merge 1 commit intoNVIDIA:mainfrom
chet:fix_issue_456

Conversation

@chet
Copy link
Contributor

@chet chet commented Mar 11, 2026

Description

This starts to take care of what @sunilkumar-nvidia was looking for in #456. Seemed good to make some progress.

I wasn't sure if the idea was to standardize/sanitize on inputs, OR within existing values, so it actually seemed to make sense to have it on both, so we didn't have to do any sort of cleanup.

First, this will sanitize inputs at input boundaries, where:

  • allowed_tests is lowercased in the admin CLI and API.
  • generate_test_id now lowercases the name so we have consistent IDs.

And then, we'll convert values on-demand for a bit of backwards-compatibility + defense-in-depth, where:

  • SQL queries have been updated to use LOWER() for string comparisons.
  • Test filtering (in allowed_tests) now uses case-insensitive matching.

Tests added as well to check for the new behaviors, including the SQL query changes.

Signed-off-by: Chet Nichols III chetn@nvidia.com

Type of Change

  • Add - New feature or capability
  • Change - Changes in existing functionality
  • Fix - Bug fixes
  • Remove - Removed features or deprecated functionality
  • Internal - Internal changes (refactoring, tests, docs, etc.)

Related Issues (Optional)

Breaking Changes

  • This PR contains breaking changes

Testing

  • Unit tests added/updated
  • Integration tests added/updated
  • Manual testing performed
  • No testing required (docs, internal refactor, etc.)

Additional Notes

This *should* of what @sunilkumar-nvidia was looking for in NVIDIA#456.

I wasn't sure if the idea was to standardize/sanitize on inputs, OR within existing values, so it actually seemed to make sense to have it on both, so we didn't have to do any sort of cleanup.

First, this will sanitize inputs at input boundaries, where:
- `allowed_tests` is lowercased in the admin CLI and API.
- `generate_test_id` now lowercases the name so we have consistent IDs.

And then, we'll convert values on-demand for a bit of backwards-compatibility + defense-in-depth, where:
- SQL queries have been updated to use `LOWER()` for string comparisons.
- Test filtering (in `allowed_tests`) now uses case-insensitive matching.

Tests added as well to check for the new behaviors, including the SQL query changes.

Signed-off-by: Chet Nichols III <chetn@nvidia.com>
@chet chet requested a review from a team as a code owner March 11, 2026 19:47
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