Repository navigation
fix: resolve goconst and errorlint warnings across OCI, coverage, validators - #1916
Conversation
Replaces a direct err == io.EOF comparison with stderrors.Is(err, io.EOF) so the test follows the project errorlint rules and handles wrapped EOF correctly. Signed-off-by: Andrew White <[email protected]>
Introduces emDash in model.go and replaces repeated literal em dash strings in build.go and render.go to satisfy the goconst linter. Signed-off-by: Andrew White <[email protected]>
Adds allocationModeExactCount and uses it for both v1beta1 and newer ResourceClaim request shapes, resolving a goconst warning. Signed-off-by: Andrew White <[email protected]>
Adds skipMsgNCCLFewNodes and uses it in the constraint and its tests to eliminate the goconst duplication. Signed-off-by: Andrew White <[email protected]>
|
Welcome to AICR, @andrewwhitecdw! Thanks for your first pull request. Before review, please ensure:
A maintainer will review this soon. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Enterprise Run ID: 📒 Files selected for processing (10)
📝 WalkthroughWalkthroughThe change centralizes em-dash placeholders, DRA allocation mode values, inference skip statuses, and NCCL skip messages. It adds NCCL variant display naming and contractual-prefix tests. OCI tar-reading tests now detect wrapped EOF errors using Estimated code review effort: 2 (Simple) | ~10 minutes Suggested reviewers: 🚥 Pre-merge checks | ✅ 4✅ Passed checks (4 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
mohityadav8
left a comment
There was a problem hiding this comment.
Thanks for the PR! I fetched this locally to test the changes. I ran golangci-lint against pkg/oci/, tools/coverage/, and the validator packages. I can confirm the previous goconst and errorlint warnings are completely resolved.
LGTM
njhensley
left a comment
There was a problem hiding this comment.
📋 Multi-persona review
Method: 3 independent persona passes (Go Correctness & Idiom · Observability & Contract · Consistency/Lint-Premise), with every finding re-derived from the resolved code, confirmed, refuted or re-tiered by a senior meta-reviewer. Line links pinned to head
5204c9cb.
Tier legend: 🔴 Blocker · 🟠 Major · 🟡 Minor · 🔵 Nitpick · ✅ Confirmed non-issue
Overall assessment
The code is behaviorally inert and correct. Every substitution is value-identical: the DRA ResourceClaim payload serializes byte-for-byte the same for both the v1beta1 and v1 exactly shapes, the coverage-matrix output is unchanged (no golden files to regenerate), and the CTRF skip message is unchanged. go vet, golangci-lint run -c .golangci.yaml and go test are all clean on the four changed packages. Nothing here can break CI or ship a bad artifact.
The issue is the premise rather than the code.
🟡 Minor — none of the four changes were surfaced by golangci-lint
I reproduced this in scratch modules using this repo's exact linter settings, so it's worth laying out the evidence:
| Change | Why the linter never fired |
|---|---|
"—" → emDash (tools/coverage) |
goconst's min-len defaults to 3 and counts runes, not bytes. An em dash is 1 rune (3 bytes), so it is never a goconst candidate at any occurrence count. Controls: "abc" ×6 fired; "—" ×6 did not; a 2-rune/6-byte "——" ×6 also did not — which rules out a byte-length reading. |
"ExactCount" (validators/conformance) |
2 occurrences in non-test files, below min-occurrences: 3. The 2 further occurrences are in _test.go, and ignore-tests: true removes them from the count, not just from the report (verified with a control run at ignore-tests: false, which does fire). |
| NCCL skip message (validators/performance) | Exactly 1 non-test occurrence pre-change. The second grep hit in that file was the slog line, which was a different literal ("Skipping NCCL All Reduce bandwidth validation: requires at least 2 GPU nodes for EW fabric test"). The other 3 were in _test.go. |
err == io.EOF → stderrors.Is (pkg/oci) |
go-errorlint allowlists io.EOF, since io.Reader implementations are documented to return it unwrapped. See the inline comment for the reproduction. |
So the title — "resolve goconst and errorlint warnings" — is false for both linters it names, and the body's "surfaced by golangci-lint / static analysis" framing doesn't hold. Since this repo squash-merges, that becomes a permanent entry in main's history and would mislead anyone later auditing why these constants exist.
Suggested: retitle and reword the body to describe this as voluntary readability cleanup (which is a perfectly good reason to land it) rather than a lint fix. If a real goconst sweep is wanted, run it and fix what it actually reports.
The one place the PR makes something measurably worse is the NCCL slog line — see inline.
✅ Confirmed non-issues (examined and cleared)
- Em dash substitution is exact — all five standalone
"—"literals are U+2014 and were converted; the remaining em dashes intools/coverageare inside prose sentences where substitution would be wrong. Correctly scoped. - No doc or golden regeneration owed — no testdata under
tools/coverage, and the constant equals the literal. stderrorsalias already existed inpush_test.goimports."ExactCount"literals kept insecure_access_check_test.go:788,:1712— correct; those still act as a canary against the constant drifting.- PR checklist / unsquashed branch — raised by a persona, refuted on review. The
- [x] Linter passesbox was flagged against the disclosed yamllint gap. Dismissed: this PR touches zero YAML, the gap was disclosed transparently in the body,golangci-lintwas independently re-run clean on all four packages, andorigin/mainis squash-merged so the local commit count is immaterial. - Environment caveat, not a PR issue:
TestHelmV4_2_3ExplicitVersionPullfails on my machine only because it has helm v4.2.0 against the v4.2.3 pin in.settings.yaml. Unrelated file, unrelated code path —make tools-setupresolves it.
Summary
| Tier | Count | Items |
|---|---|---|
| 🔴 Blocker | 0 | — |
| 🟠 Major | 0 | — |
| 🟡 Minor | 2 | PR title/body premise is factually wrong; NCCL slog line stutters |
| 🔵 Nitpick | 5 | Tautological test assertions · const placement ×2 · arbitrary extraction · partial errorlint sweep |
Recommendation: approve-able with comments. Two things worth doing before merge — (1) retitle/reword so the squash-merged commit isn't a false record, and (2) revert the slog line to a plain sentence. Everything else is fine to defer in writing.
| // two GPU nodes. Skip gracefully rather than fail when only one node is available. | ||
| if gpuConfig.WorkerCount < 2 { | ||
| slog.Info("Skipping NCCL All Reduce bandwidth validation: requires at least 2 GPU nodes for EW fabric test", | ||
| slog.Info("Skipping NCCL All Reduce bandwidth validation: "+skipMsgNCCLFewNodes, |
There was a problem hiding this comment.
🟡 Minor — Reusing the status constant inside the log message makes it stutter
This now emits Skipping NCCL All Reduce bandwidth validation: skipped - requires at least 2 GPU nodes for EW fabric test — the skip is stated twice, and a machine-readable status prefix ends up mid-sentence in operator prose. That skipped - prefix is load-bearing: nccl_all_reduce_bw.go:78 does strings.HasPrefix(actual, "skipped") → validators.Skip → exit code 2 → CTRF skipped status. That is exactly why the two sibling skip paths in this same function (:254, :320) keep their log text independent of the returned status value; this line is now the only one that collapses them.
Blast radius: Operator-facing validator stderr on every single-GPU-node validate run. I grepped tests/uat/lib/*.sh, the chainsaw trees, workflows and docs/ for the old log text and found no consumer, so this is cosmetic only — no functional impact.
Fix: Keep the log message as its own literal and return the constant separately:
slog.Info("Skipping NCCL All Reduce bandwidth validation: requires at least 2 GPU nodes for EW fabric test",
"nodes", gpuConfig.WorkerCount)
return skipMsgNCCLFewNodes, true, nil| t.Fatalf("unexpected error: %v", err) | ||
| } | ||
| want := "skipped - requires at least 2 GPU nodes for EW fabric test" | ||
| want := skipMsgNCCLFewNodes |
There was a problem hiding this comment.
🔵 Nitpick — Tests now assert against the constant, dropping the only guard on the load-bearing skipped prefix
Asserting want := skipMsgNCCLFewNodes is normal Go style, but it does remove the literal that incidentally pinned the skipped prefix. Worth flagging that the failure mode is worse than it first looks: if the prefix were ever dropped, strings.HasPrefix(actual, "skipped") at nccl_all_reduce_bw.go:78 falls through to if !passed — and passed is true on this path — so the check would silently report PASS, not fail. I checked and no test currently exercises that dispatch, so this is a pre-existing gap the PR merely stops accidentally masking.
Blast radius: A future edit to the constant could silently turn a skipped NCCL check into a green one in CTRF/evidence output. Latent, not live.
Fix: One cheap guard somewhere in the package tests:
if !strings.HasPrefix(skipMsgNCCLFewNodes, "skipped") {
t.Fatal("skip status prefix is contractual — nccl_all_reduce_bw.go dispatches on it")
}| // GPU at all (no ResourceClaims, no nvidia.com/gpu limits). | ||
| noAllocProbePrefix = "no-alloc-probe-" | ||
| noAllocProbePrefix = "no-alloc-probe-" | ||
| allocationModeExactCount = "ExactCount" |
There was a problem hiding this comment.
🔵 Nitpick — allocationModeExactCount is misfiled in the name-prefix group, undocumented, and only half-abstracts the DRA literals
A DRA API enum is wedged into an otherwise homogeneous group of Kubernetes object name prefixes, directly beneath noAllocProbePrefix's two-line doc comment — which now visually reads as if it documents both. Because the new name is longer, gofmt re-padded noAllocProbePrefix, so the diff touches an unrelated declaration. The abstraction is also half-applied: the sibling literals in the very same expression ("exactly", "deviceClassName", "count", and the "allocationMode" key itself) were left inline at the same 2-occurrence count.
Blast radius: Readability and diff/blame noise in one file. I verified the emitted ResourceClaim is byte-identical for both the v1beta1 and v1 exactly shapes — no wire change.
Fix: Give it its own blank-line-separated stanza with a doc comment near the other DRA declarations — e.g. // allocationModeExactCount is the Kubernetes DRA DeviceRequest allocationMode enum value; it is an upstream API constant, not an internal token. — which also removes the forced realignment of noAllocProbePrefix. Or drop the constant.
| // Must stay in sync with runtime.yaml. | ||
| ncclTrainingRuntimeName = "nccl-all-reduce-runtime" | ||
|
|
||
| skipMsgNCCLFewNodes = "skipped - requires at least 2 GPU nodes for EW fabric test" |
There was a problem hiding this comment.
🔵 Nitpick — Only one of four sibling "skipped - ..." strings was extracted, and the new const lacks a doc comment
Three structurally identical skip-result strings in the same function carry the identical load-bearing prefix and were left inline: :255 ("skipped - requires Service + Accelerator"), :326 (the fmt.Sprintf("skipped - benchmark profile %s ...")), and :329. So the file now has one skip message as a constant and three as literals, with no stated rule for which is which. The new constant is also the only member of this const block without a doc comment — maxMessageSizeTCP, ncclTrainJobName and ncclTrainingRuntimeName all have one, several with "Must stay in sync with runtime.yaml"-style rationale.
Blast radius: One file; a future reader has no principle for where the next skip message should go, so the inconsistency compounds.
Fix: Either finish the extraction (hoist all four into one documented // skipMsg* are the constraint-result strings returned when the check cannot run. stanza) or revert it. Either way add a doc comment recording that the skipped prefix is contractual — dispatched on at nccl_all_reduce_bw.go:78 — since nothing else in the codebase states that invariant.
| // present but inert pending a revive-or-retire decision (DC6, #1280). | ||
| StatusStubbed Status = "stubbed" | ||
|
|
||
| emDash = "—" |
There was a problem hiding this comment.
🔵 Nitpick — emDash is parked inside the closed Status vocabulary const block
This block is introduced by the type Status string doc comment describing "a small, closed vocabulary so the rendered table is unambiguous". emDash is a rendering placeholder and is the only member that is neither typed Status nor documented, while all three siblings are both. Neither of its call sites is in model.go — they are in build.go (:174, :180, :182) and render.go (:97, :115). Because it is an untyped string constant, var s Status = emDash compiles (I verified), letting a placeholder masquerade as a coverage verdict — theoretical, since nothing in the package does that.
Blast radius: tools/coverage only (build-time tooling). Comprehension and type cohesion, not runtime — I confirmed the rendered matrix output is byte-identical.
Fix: Move it to its own documented one-liner in render.go (the presentation layer both call sites already live in): // emDash is the placeholder rendered for an empty matrix cell.
| for { | ||
| header, err := tr.Next() | ||
| if err == io.EOF { | ||
| if stderrors.Is(err, io.EOF) { |
There was a problem hiding this comment.
🔵 Nitpick — errorlint allowlists io.EOF — this change is style alignment, and three identical sites remain
The change itself is correct and matches the CLAUDE.md rule. Flagging it only because errorlint did not require it: I reproduced in a scratch module that err == io.ErrUnexpectedEOF, err == fs.ErrNotExist and err == os.ErrClosed all fire under errorlint, while err == io.EOF on the adjacent line does not — go-errorlint special-cases io.EOF because io.Reader implementations are documented to return it unwrapped. Note errorlint is not in the _test.go exclusion list in .golangci.yaml, so it does apply to these files; it simply never fired. Three structurally identical tar-loop sites remain unconverted: pkg/oci/archive_test.go:371, pkg/oci/archive_checkpoint_c_test.go:204, pkg/evidence/attestation/oci_test.go:291 — running golangci-lint run -c .golangci.yaml ./pkg/oci/... ./pkg/evidence/attestation/... reports 0 issues with them present.
Blast radius: Test files only, no runtime behavior. The risk is a future reader assuming the rule is uniformly applied in pkg/oci when it is not.
Fix: Either convert the other three in this PR for consistency, or note in the body that the sweep is deliberately scoped to push_test.go.
…#1916) - Remove stutter in NCCL skip message by introducing ncclVariantDisplayName. - Move emDash constant out of the Status const block into render.go. - Document allocationModeExactCount and keep const block formatting clean. - Extract remaining inline inference skip strings into named constants. - Add contractual-prefix guard tests for NCCL and inference skip messages. - Apply errors.Is(err, io.EOF) consistently across OCI archive tests.
|
Addressed the review nits and repushed:
Verification:
|
Recipe evidence checkNo leaf overlays affected by this PR. This gate is warning-only and never blocks merge. |
njhensley
left a comment
There was a problem hiding this comment.
Approving - and welcome, nice first PR.
Good response round. Thanks for extending the pattern to inference_perf.go and catching that skipMsgNCCLNoProfile was printing a constraint name where a variant name belonged. Build, vet, test and lint are all clean at 2357b9e.
…alth checks Closes NVIDIA#1246. - kueue: resourceflavors/clusterqueues/localqueues.kueue.x-k8s.io (verified via in-tree manifests) - kubeflow-trainer: trainjobs.trainer.kubeflow.org (verified via tests/chainsaw/ai-conformance/kind-training-kubeflow/assert-crds.yaml) - network-operator: nicclusterpolicies.mellanox.com (verified via components/network-operator/manifests/nic-cluster-policy-aks.yaml) - k8s-nim-operator: nimservices/nimcaches/nimpipelines.apps.nvidia.com (verified via docs/conformance/cncf/v1.35/nim-eks/evidence/robust-operator.md) - gatekeeper: constrainttemplates.templates.gatekeeper.sh + configs.config.gatekeeper.sh (needs live-cluster confirmation against chart 3.22.2, flagged inline) - slinky-slurm-operator: negative finding documented - crds.enabled: false, CRDs owned entirely by sibling slinky-slurm-operator-crds chart Signed-off-by: Mohit Yadav <[email protected]> docs: restore slinky-slurm-operator health check, add comment-only negative finding Signed-off-by: Mohit Yadav <[email protected]> fix: address review comments on NVIDIA#1246 CRD backfill fix: sync kubeflow-trainer CRD docs with asserted trainingruntimes (coderabbitai) address review: soften gatekeeper verification wording, fix volatile line refs, rename CRD step for consistency chore: pausing scans chore: skills cleanup chore(deps): Update python Docker tag to v3.14 (NVIDIA#1906) Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Mark Chmarny <[email protected]> revert(validators): pin aiperf-bench base back to python:3.13-slim (NVIDIA#1909) Signed-off-by: Nathan Hensley <[email protected]> fix(rekor-monitor): correlate identity via release-workflow run history (NVIDIA#1903) Signed-off-by: Brian Lockwood <[email protected]> Co-authored-by: Mark Chmarny <[email protected]> fix(validators): multi-stage aiperf-bench build; bump aiperf to 0.11.0 (NVIDIA#1912) Signed-off-by: Nathan Hensley <[email protected]> feat(skills): download UAT debug bundles for failure triage (NVIDIA#1913) Signed-off-by: Nathan Hensley <[email protected]> chore: deps: bump renovatebot/github-action from 46.1.20 to 46.1.21 (NVIDIA#1923) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> feat(skills): add aicr-triage skill for project board triage (NVIDIA#1911) chore(deps): regenerate stale THIRD_PARTY_NOTICES.md (NVIDIA#1926) Signed-off-by: Nathan Hensley <[email protected]> feat(server): non-interactive bundle attestation for /v1/bundle (NVIDIA#1891) chore(deps): Update dependency awscli to v1.45.52 (NVIDIA#1905) Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Mark Chmarny <[email protected]> Co-authored-by: Nathan Hensley <[email protected]> ci(stale): drop phantom priority/critical exempt label (NVIDIA#1925) Signed-off-by: Yuan Chen <[email protected]> chore(deps): Update dependency sigstore/cosign to v3.1.2 (NVIDIA#1924) Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Lalit Adithya <[email protected]> Co-authored-by: Brian Lockwood <[email protected]> feat(skills): add aicr-cross-review skill for multi-agent PR review (NVIDIA#1915) Signed-off-by: Yuan Chen <[email protected]> chore: deps: bump github.com/prometheus/client_golang from 1.24.0 to 1.24.1 (NVIDIA#1922) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Lalit Adithya <[email protected]> Co-authored-by: Brian Lockwood <[email protected]> fix: resolve goconst and errorlint warnings across OCI, coverage, validators (NVIDIA#1916) Signed-off-by: Andrew White <[email protected]> chore(deps): Update testing-tools (NVIDIA#1934) Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> fix(skills): harden UAT debug-bundle triage against malformed input (NVIDIA#1914) Signed-off-by: Nathan Hensley <[email protected]> chore: deps: bump actions/stale from 10.4.0 to 11.0.0 (NVIDIA#1931) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Lalit Adithya <[email protected]> fix(ci): sync coverage docs to 80% and fail closed on bad threshold (NVIDIA#1937) docs: correct issue/PR lifecycle table, fix reminder dedupe (NVIDIA#1921) Signed-off-by: Yuan Chen <[email protected]> Co-authored-by: Nathan Hensley <[email protected]> chore: deps: bump actions/checkout from 7.0.0 to 7.0.1 (NVIDIA#1930) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Nathan Hensley <[email protected]> Co-authored-by: Brian Lockwood <[email protected]> fix(recipe,client): reject duplicate ComponentRef names, omit disable… (NVIDIA#1917) Co-authored-by: Nathan Hensley <[email protected]> fix(validators): pass aiperf model via --model flag (NVIDIA#1939) Signed-off-by: Nathan Hensley <[email protected]> fix(skills): recover cross-review lanes, harden consensus/fallback (NVIDIA#1932) Signed-off-by: Yuan Chen <[email protected]> feat(rekor-monitor): resumable identity scan to catch up large backlogs (NVIDIA#1929) Signed-off-by: Brian Lockwood <[email protected]> fix(bundler): create argocd-helm static/ only when populated (NVIDIA#1944) Signed-off-by: Yuan Chen <[email protected]> chore: deps: update hashicorp/azurerm requirement from ~> 4.0 to ~> 5.0 in /infra/uat-azure-account (NVIDIA#1945) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> fix(ci): run validators/ unit tests in make test, exclude from coverage gate (NVIDIA#1918) Signed-off-by: Mohit Yadav <[email protected]> Co-authored-by: Nathan Hensley <[email protected]> feat(corroborate): improve evidence dashboard UX (NVIDIA#1935) Signed-off-by: Nathan Hensley <[email protected]> fix(api): accept versionless legacy bundle recipes (NVIDIA#1943) Signed-off-by: Yuan Chen <[email protected]> test(bundler): cover argocd-helm OCP bundling and pin its error contract (NVIDIA#1950) Signed-off-by: Yuan Chen <[email protected]> chore: remove stray MOFED debug artifacts from repo root (NVIDIA#1955) Signed-off-by: Nathan Hensley <[email protected]> fix(deps): bump network-operator default to v26.4.1 (NVIDIA#1938) Signed-off-by: Atif Mahmood <[email protected]> Co-authored-by: Atif Mahmood <[email protected]> chore: deps: bump renovatebot/github-action from 46.1.21 to 46.2.0 (NVIDIA#1964) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> chore(deps): Update ministackorg/ministack Docker tag to v1.4.7 (NVIDIA#1965) Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Lalit Adithya <[email protected]> feat(recipe): implement the ADR-015 profile core (NVIDIA#1933) Signed-off-by: Yuan Chen <[email protected]> fix(bom): extract nested operator images (NVIDIA#1960) Signed-off-by: Yuan Chen <[email protected]> address yuanchen8911 review: bump network-operator to 26.4.1 with nicnodepolicies exclusion, close gatekeeper TODO with verification
…alth checks Closes NVIDIA#1246. - kueue: resourceflavors/clusterqueues/localqueues.kueue.x-k8s.io (verified via in-tree manifests) - kubeflow-trainer: trainjobs.trainer.kubeflow.org (verified via tests/chainsaw/ai-conformance/kind-training-kubeflow/assert-crds.yaml) - network-operator: nicclusterpolicies.mellanox.com (verified via components/network-operator/manifests/nic-cluster-policy-aks.yaml) - k8s-nim-operator: nimservices/nimcaches/nimpipelines.apps.nvidia.com (verified via docs/conformance/cncf/v1.35/nim-eks/evidence/robust-operator.md) - gatekeeper: constrainttemplates.templates.gatekeeper.sh + configs.config.gatekeeper.sh (needs live-cluster confirmation against chart 3.22.2, flagged inline) - slinky-slurm-operator: negative finding documented - crds.enabled: false, CRDs owned entirely by sibling slinky-slurm-operator-crds chart Signed-off-by: Mohit Yadav <[email protected]> docs: restore slinky-slurm-operator health check, add comment-only negative finding Signed-off-by: Mohit Yadav <[email protected]> fix: address review comments on NVIDIA#1246 CRD backfill fix: sync kubeflow-trainer CRD docs with asserted trainingruntimes (coderabbitai) address review: soften gatekeeper verification wording, fix volatile line refs, rename CRD step for consistency chore: pausing scans chore: skills cleanup chore(deps): Update python Docker tag to v3.14 (NVIDIA#1906) Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Mark Chmarny <[email protected]> revert(validators): pin aiperf-bench base back to python:3.13-slim (NVIDIA#1909) Signed-off-by: Nathan Hensley <[email protected]> fix(rekor-monitor): correlate identity via release-workflow run history (NVIDIA#1903) Signed-off-by: Brian Lockwood <[email protected]> Co-authored-by: Mark Chmarny <[email protected]> fix(validators): multi-stage aiperf-bench build; bump aiperf to 0.11.0 (NVIDIA#1912) Signed-off-by: Nathan Hensley <[email protected]> feat(skills): download UAT debug bundles for failure triage (NVIDIA#1913) Signed-off-by: Nathan Hensley <[email protected]> chore: deps: bump renovatebot/github-action from 46.1.20 to 46.1.21 (NVIDIA#1923) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> feat(skills): add aicr-triage skill for project board triage (NVIDIA#1911) chore(deps): regenerate stale THIRD_PARTY_NOTICES.md (NVIDIA#1926) Signed-off-by: Nathan Hensley <[email protected]> feat(server): non-interactive bundle attestation for /v1/bundle (NVIDIA#1891) chore(deps): Update dependency awscli to v1.45.52 (NVIDIA#1905) Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Mark Chmarny <[email protected]> Co-authored-by: Nathan Hensley <[email protected]> ci(stale): drop phantom priority/critical exempt label (NVIDIA#1925) Signed-off-by: Yuan Chen <[email protected]> chore(deps): Update dependency sigstore/cosign to v3.1.2 (NVIDIA#1924) Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Lalit Adithya <[email protected]> Co-authored-by: Brian Lockwood <[email protected]> feat(skills): add aicr-cross-review skill for multi-agent PR review (NVIDIA#1915) Signed-off-by: Yuan Chen <[email protected]> chore: deps: bump github.com/prometheus/client_golang from 1.24.0 to 1.24.1 (NVIDIA#1922) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Lalit Adithya <[email protected]> Co-authored-by: Brian Lockwood <[email protected]> fix: resolve goconst and errorlint warnings across OCI, coverage, validators (NVIDIA#1916) Signed-off-by: Andrew White <[email protected]> chore(deps): Update testing-tools (NVIDIA#1934) Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> fix(skills): harden UAT debug-bundle triage against malformed input (NVIDIA#1914) Signed-off-by: Nathan Hensley <[email protected]> chore: deps: bump actions/stale from 10.4.0 to 11.0.0 (NVIDIA#1931) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Lalit Adithya <[email protected]> fix(ci): sync coverage docs to 80% and fail closed on bad threshold (NVIDIA#1937) docs: correct issue/PR lifecycle table, fix reminder dedupe (NVIDIA#1921) Signed-off-by: Yuan Chen <[email protected]> Co-authored-by: Nathan Hensley <[email protected]> chore: deps: bump actions/checkout from 7.0.0 to 7.0.1 (NVIDIA#1930) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Nathan Hensley <[email protected]> Co-authored-by: Brian Lockwood <[email protected]> fix(recipe,client): reject duplicate ComponentRef names, omit disable… (NVIDIA#1917) Co-authored-by: Nathan Hensley <[email protected]> fix(validators): pass aiperf model via --model flag (NVIDIA#1939) Signed-off-by: Nathan Hensley <[email protected]> fix(skills): recover cross-review lanes, harden consensus/fallback (NVIDIA#1932) Signed-off-by: Yuan Chen <[email protected]> feat(rekor-monitor): resumable identity scan to catch up large backlogs (NVIDIA#1929) Signed-off-by: Brian Lockwood <[email protected]> fix(bundler): create argocd-helm static/ only when populated (NVIDIA#1944) Signed-off-by: Yuan Chen <[email protected]> chore: deps: update hashicorp/azurerm requirement from ~> 4.0 to ~> 5.0 in /infra/uat-azure-account (NVIDIA#1945) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> fix(ci): run validators/ unit tests in make test, exclude from coverage gate (NVIDIA#1918) Signed-off-by: Mohit Yadav <[email protected]> Co-authored-by: Nathan Hensley <[email protected]> feat(corroborate): improve evidence dashboard UX (NVIDIA#1935) Signed-off-by: Nathan Hensley <[email protected]> fix(api): accept versionless legacy bundle recipes (NVIDIA#1943) Signed-off-by: Yuan Chen <[email protected]> test(bundler): cover argocd-helm OCP bundling and pin its error contract (NVIDIA#1950) Signed-off-by: Yuan Chen <[email protected]> chore: remove stray MOFED debug artifacts from repo root (NVIDIA#1955) Signed-off-by: Nathan Hensley <[email protected]> fix(deps): bump network-operator default to v26.4.1 (NVIDIA#1938) Signed-off-by: Atif Mahmood <[email protected]> Co-authored-by: Atif Mahmood <[email protected]> chore: deps: bump renovatebot/github-action from 46.1.21 to 46.2.0 (NVIDIA#1964) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> chore(deps): Update ministackorg/ministack Docker tag to v1.4.7 (NVIDIA#1965) Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Lalit Adithya <[email protected]> feat(recipe): implement the ADR-015 profile core (NVIDIA#1933) Signed-off-by: Yuan Chen <[email protected]> fix(bom): extract nested operator images (NVIDIA#1960) Signed-off-by: Yuan Chen <[email protected]> address yuanchen8911 review: bump network-operator to 26.4.1 with nicnodepolicies exclusion, close gatekeeper TODO with verification
Summary
Fixes four small lint/test issues surfaced by golangci-lint and static analysis: one errorlint violation in OCI push tests and three goconst duplications in coverage tooling and validator packages.
Motivation / Context
N/A — opportunistic cleanup from a lint/test sweep.
Type of Change
Component(s) Affected
cmd/aicr,pkg/cli)cmd/aicrd,pkg/server)pkg/recipe)pkg/bundler,pkg/component/*)pkg/collector,pkg/snapshotter)pkg/validator)pkg/errors,pkg/k8s)docs/,examples/)Implementation Notes
err == io.EOFwithstderrors.Is(err, io.EOF)inpkg/oci/push_test.go.emDashintools/coverage.allocationModeExactCountinvalidators/conformance/secure_access_check.go.skipMsgNCCLFewNodesinvalidators/performance/nccl_all_reduce_bw_constraint.goand updated tests.Testing
All targeted tests pass and golangci-lint reports 0 issues. Full
make lintreached the Go lint step successfully; the overall target stopped at the YAML lint step becauseyamllintis not installed in this environment.Risk Assessment
Rollout notes: N/A
Checklist
make testwith-race)make lint)git commit -S) — GPG signing info