fix: detect gpu metrics in k8 gpu delegated-executor sidecars#583
Conversation
|
Important Review skippedAuto incremental reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
WalkthroughThe PR extends the ChangesTelemetry Sidecar Environment Variables
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
|
@kaixi-wang - can you please rebase this PR on main? It will make the review of #592 much easier. |
01f128e to
ad7a364
Compare
| section + ".nvidia\\.com/gpu" | ||
| } | ||
|
|
||
| testCases := []struct { |
There was a problem hiding this comment.
Should we have a test case for when telemetry.enabled:false? Or is that covered somewhere else?
| section + ".nvidia\\.com/gpu" | ||
| } | ||
|
|
||
| testCases := []struct { |
There was a problem hiding this comment.
Should we have a test case for when telemetry.enabled:false? Or is that covered somewhere else?
| // telemetry-sidecar is given the NVIDIA_* env vars needed to read GPU metrics, | ||
| // without the sidecar requesting its own nvidia.com/gpu allocation. When no GPU | ||
| // is requested, the sidecar receives no NVIDIA_* env vars. | ||
| func (s *deploymentDelegatedOperatorInstanceTemplateTest) TestTelemetrySidecarGpuEnv() { |
There was a problem hiding this comment.
In the future, let's consider the tech debt of adding functions like this. Do we need to add tests for the test functions? Being declarative in tests is often preferred to these.
There was a problem hiding this comment.
moved to a shared file
| // telemetry native-sidecar is given the NVIDIA_* env vars needed to read GPU | ||
| // metrics, without the sidecar requesting its own nvidia.com/gpu allocation. | ||
| // When no GPU is requested, the sidecar receives no NVIDIA_* env vars. | ||
| func (s *doK8sConfigMapTemplateTest) TestTelemetrySidecarGpuEnv() { |
There was a problem hiding this comment.
If we are writing functions to be DRY, why did we duplicate the function across tests/unit/helm/delegated-operator-job-configmap_test.go and this file? The content is nearly the same, but the function names are different?
If we keep these, they should be refactored into https://github.com/voxel51/fiftyone-teams-app-deploy/blob/main/tests/unit/helm/common_test.go.
|
If the intention is for this to be released in the upcoming release, we should also update the base branch from |
Bumps [actions/setup-python](https://github.com/actions/setup-python) from 6.2.0 to 6.3.0. - [Release notes](https://github.com/actions/setup-python/releases) - [Commits](actions/setup-python@v6.2.0...v6.3.0) --- updated-dependencies: - dependency-name: actions/setup-python dependency-version: 6.3.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>
…privileged is true
43341ef to
42c44ba
Compare
Co-authored-by: Kevin DiMichel <56850465+kevin-dimichel@users.noreply.github.com> Signed-off-by: Kacey <kacey@voxel51.com>
…decar-detection' into kacey/fix-k8-gpu-sidecar-detection
|
@kaixi-wang - docker integration tests are failing. Can you please run them locally and see if they pass? |
I didn't do any docker changes, but it looks like they may be failing due to the hello response changing: TestDockerComposeUpLegacyAuth/TestDockerComposeUp/composeDedicatedPlugins 2026-06-30T22:44:36Z retry.go:103: HTTP GET to URL http://127.0.0.1:3000/api/hello returned an error: Validation failed for URL http://127.0.0.1:3000/api/hello. Response status: 200. Response body: So probably needs kacey/fix-flaky-api-log-tests ? I wonder why this is just happening now |
Rationale
Review Priority
Changes
Checklist
Testing