Skip to content

[pull] master from Project-HAMi:master#219

Merged
pull[bot] merged 5 commits into
herb-duan:masterfrom
Project-HAMi:master
May 26, 2026
Merged

[pull] master from Project-HAMi:master#219
pull[bot] merged 5 commits into
herb-duan:masterfrom
Project-HAMi:master

Conversation

@pull
Copy link
Copy Markdown

@pull pull Bot commented May 26, 2026

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

pmady and others added 5 commits May 26, 2026 02:04
)

* test: add unit tests for nvinternal info, mig, and watch packages

Signed-off-by: pmady <pavan4devops@gmail.com>

* test: fix copyright year to 2026 in test files

Signed-off-by: pmady <pavan4devops@gmail.com>

* test(watch): use t.TempDir() instead of hardcoded /tmp path

Signed-off-by: pmady <pavan4devops@gmail.com>

* test(mig): skip capability test when nvidia-caps exists on host

Signed-off-by: pmady <pavan4devops@gmail.com>

---------

Signed-off-by: pmady <pavan4devops@gmail.com>
Bumps [docker/login-action](https://github.com/docker/login-action) from 4.1.0 to 4.2.0.
- [Release notes](https://github.com/docker/login-action/releases)
- [Commits](docker/login-action@v4.1.0...v4.2.0)

---
updated-dependencies:
- dependency-name: docker/login-action
  dependency-version: 4.2.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.54.0 to 0.55.0.
- [Commits](golang/net@v0.54.0...v0.55.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-version: 0.55.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [github.com/NVIDIA/nvidia-container-toolkit](https://github.com/NVIDIA/nvidia-container-toolkit) from 1.19.1-0.20260410190841-2c0c91d0ebaa to 1.19.1.
- [Release notes](https://github.com/NVIDIA/nvidia-container-toolkit/releases)
- [Changelog](https://github.com/NVIDIA/nvidia-container-toolkit/blob/v1.19.1/CHANGELOG.md)
- [Commits](https://github.com/NVIDIA/nvidia-container-toolkit/commits/v1.19.1)

---
updated-dependencies:
- dependency-name: github.com/NVIDIA/nvidia-container-toolkit
  dependency-version: 1.19.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…e 1 (#1881)

* fix(vGPUmonitor): prevent index out of bounds panic for priority above 1

utSwitchOn[uuid] was always initialized as a fixed two-element slice.
A container with CUDA_TASK_PRIORITY set to 2 or higher caused a panic
in three places.

Observe() wrote utSwitchOn[uuid][priority] without growing the slice.
CheckBlocking() and CheckPriority() accessed utSwitchOn[uuid][i] and
utSwitchOn[uuid][p] without checking the slice length.

The bug was introduced in commit 54dc0de which changed explicit for
loops to range-over-int but kept the fixed two-element initialization.

Fix grows the slice in Observe() to fit any priority value and adds
length guards in CheckBlocking() and CheckPriority().

Signed-off-by: mesutoezdil <mesudozdil@gmail.com>

* fix(vGPUmonitor): guard against negative priority values

A negative CUDA_TASK_PRIORITY value skips the growth loop in
Observe() and causes a panic on the slice write. CheckPriority()
also lacked a non-negative check before the index access.

Skip negative priority in Observe() and add p >= 0 guard in
CheckPriority().

Signed-off-by: mesutoezdil <mesudozdil@gmail.com>

---------

Signed-off-by: mesutoezdil <mesudozdil@gmail.com>
@pull pull Bot locked and limited conversation to collaborators May 26, 2026
@pull pull Bot added the ⤵️ pull label May 26, 2026
@pull pull Bot merged commit 16354f8 into herb-duan:master May 26, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants