You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit a2b4f83
Browse filesBrowse the repository at this point in the historyBrowse files
## Description
Use testify to shorten test assertions and make them (subjectively)
easier to read. It also updates the test names to include more intent as
per our updated test skill.
## Release intent
<!-- Keep the fences exactly as they are; CI parses between them. -->
<!-- Set each bump to none, patch, minor, or major. Leave the key names.
-->
<!-- `services` must be >= the highest component bump. -->
<!-- Set the title and body to n/a when no bump is a release. -->
<!-- The release version users see is NOT declared here: it patch-bumps
by
itself whenever any bump above is a release. -->
<!-- Keep the changelog body to prose and bullets. A line starting with
"### "
ends the section and silently truncates the rest. -->
<!-- pair-release-intent:v1 -->
### Changelog title
n/a
### Changelog body
n/a
### Bumps
- services: none
- nvpair-cluster-manager: none
- nvpair-engine-manager: none
- nvpair-errors: none
- nvpair-job-scheduler: none
- nvpair-manual-nodes: none
- nvpair-node-info: none
- nvpair-node-scanner: none
- nvpair-node-settings: none
- nvpair-proxy: none
- nvpair-tui: none
- nvpair-ui-broker: none
- nvpair-workload-manager: none
<!-- /pair-release-intent:v1 -->
## Scope
This does not affect production code at all. It adds a mature, commonly
used assertion library and renames tests.
## Validation
CI passes. Everything compiles locally and gofmt passes.
Note to reviewers: Look at SKILL.md and then spot check some files. It's
not expected to read through all changes.
## Risk
Some assertions are very slightly different in semantics:
- FileExists uses os.Lstat, whereas the old checks used os.Stat.
Directories now fail, but dangling symlinks can pass.
- Empty checks intentionally accept either nil or empty slices. However,
Equal still distinguishes them in some tests.
- NaN rejection: The scheduler’s InDelta assertions (line 73) now reject
NaN. The original tolerance predicate accidentally accepted it.
Otherwise, every attempt was made for this to be a mechanical change.
## Checklist
- [X] I have read the [Contributing
Guidelines](https://github.com/NVIDIA/Personal-AI-Router/blob/main/CONTRIBUTING.md).
- [X] Every commit is signed off (`git commit -s`), certifying the
[Developer Certificate of Origin](https://developercertificate.org/).
- [X] New or existing tests cover the change.
- [X] Relevant documentation is updated.
- [X] I checked the diff, changed filenames, and commit messages for
credentials, private data, internal URLs, internal issue identifiers,
and generated artifacts.
- [X] I recorded the validation commands and results above.
- [X] I declared version bumps in the release-intent block above.
`services/versions.json` is written by automation — do not edit it by
hand.
---------
Signed-off-by: Kaylee Lubick <klubick@nvidia.com>
Signed-off-by: Terve <ntervalon@nvidia.com>
0 commit comments