mirror of
https://github.com/dsx-ai-factory/nvke.git
synced 2026-12-07 04:35:58 +08:00
* docs: add NVIDIA copyright to LICENSE and require DCO sign-off Address OSRB items 1, 2 and 6 (NVBug 6399952). - LICENSE: add the NVIDIA copyright line; sync the shipped copies - CONTRIBUTING.md, dco.yml: include the full DCO text and require sign-off from all contributors, org members included - Remove the unmaintained nktp chart LICENSE copy - README: list the two LICENSE copies kept for image and chart packaging Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Signed-off-by: Byron McAdams <bmcadams@nvidia.com> * docs: add SPDX headers to 21 files flagged by OSRB Address OSRB item 3 (NVBug 6399952). - Add the NVIDIA Apache-2.0 SPDX header to the 21 listed files, using each file's comment syntax; Helm templates use a Go-template comment - osprofiles-to-crs: ignore a leading SPDX header in ipxeScript and userData.tmpl, so the fixture releases are unchanged Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Signed-off-by: Byron McAdams <bmcadams@nvidia.com> * docs: restore upstream Kubernetes attribution on five copied files Address OSRB item 4 (NVBug 6399952). - Restore the Kubernetes Apache-2.0 and copyright block on the five thirdparty/*/types.go files, with the NVIDIA header below it - Pin each Source: to Kubernetes v1.35.0 (was master) and list local changes - Add a "Copied source files" section to THIRD_PARTY_NOTICES.md Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Signed-off-by: Byron McAdams <bmcadams@nvidia.com> * docs: shorten comments added for OSRB items 3 and 4 Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Signed-off-by: Byron McAdams <bmcadams@nvidia.com> * docs: add notices for the vendored xterm and highlight.js assets Address OSRB item 5 (NVBug 6399952). - Add controller/nico-sim/ui/vendor/THIRD_PARTY_NOTICES.md with name, version, origin, copyright and full license text for xterm.js (and its fit and search addons), highlight.js and the Nord theme - Link it from the root THIRD_PARTY_NOTICES.md Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Signed-off-by: Byron McAdams <bmcadams@nvidia.com> * docs: use the OSRB template wording for the DCO sign-off section Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Signed-off-by: Byron McAdams <bmcadams@nvidia.com> * docs: restore the nktp chart LICENSE The nktp chart is published to GHCR with `helm package`, and its NOTICE refers to the LICENSE beside it, so removing the file left the published chart without one. - Restore nktp/deploy/charts/nktp/LICENSE - Add LICENSE_ONLY_DESTS so `make licenses` keeps it current and `licenses-check` guards it, without overwriting the chart's own NOTICE - List the nktp chart in the README licensing table Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Signed-off-by: Byron McAdams <bmcadams@nvidia.com> * docs: pin the copied Kubernetes files to v1.34.0 v1.35.0 added ExternalEtcd.HTTPEndpoints, which the v1beta4 copy lacks. v1.34.0 is the highest release matching all five files. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Signed-off-by: Byron McAdams <bmcadams@nvidia.com> * docs: put the SPDX header first on the copied Kubernetes files The controller goheader lint requires the NVIDIA SPDX header at the top of each file. Keep the upstream Kubernetes block intact directly below it. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Signed-off-by: Byron McAdams <bmcadams@nvidia.com> * docs: address review nits on notices, tests and source comments - Nord notice: say the theme has no banner and cite its CDN and upstream source - osprofiles-to-crs: test a headed userData.tmpl through the full converter - copied Kubernetes files: mark the revision as inferred in each Source line - osprofiles-to-crs README: keep the SPDX note out of the manifest list Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Signed-off-by: Byron McAdams <bmcadams@nvidia.com> * docs: say the copied Kubernetes revision is inferred Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Signed-off-by: Byron McAdams <bmcadams@nvidia.com> --------- Signed-off-by: Byron McAdams <bmcadams@nvidia.com> Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
42 lines
1.2 KiB
Bash
Executable File
42 lines
1.2 KiB
Bash
Executable File
#!/usr/bin/env bash
|
||
# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
|
||
# SPDX-License-Identifier: Apache-2.0
|
||
|
||
# Pre-commit hook for agent (monorepo-aware).
|
||
# Install via: (cd agent && make setup-hooks)
|
||
set -euo pipefail
|
||
|
||
ROOT="$(git rev-parse --show-toplevel)"
|
||
AGENT_DIR="${ROOT}/agent"
|
||
|
||
# When developing against a standalone checkout, fall back to repo root.
|
||
if [[ ! -d "${AGENT_DIR}/pkg/agent/proto" ]]; then
|
||
AGENT_DIR="${ROOT}"
|
||
fi
|
||
|
||
if [[ ! -d "${AGENT_DIR}/pkg/agent/proto" ]]; then
|
||
echo "No agent proto tree found; skipping proto checks."
|
||
exit 0
|
||
fi
|
||
|
||
echo "🔍 Running pre-commit proto verification in ${AGENT_DIR}..."
|
||
|
||
cd "${AGENT_DIR}"
|
||
|
||
if ! find pkg -type f -name '*.proto' | grep -q .; then
|
||
echo "No .proto files found, skipping verification."
|
||
exit 0
|
||
fi
|
||
|
||
if ! make -s check-protos; then
|
||
echo "⚙️ Protos need formatting or regeneration — running make protos..."
|
||
make -s protos
|
||
echo "➕ Staging updated proto files..."
|
||
git add $(find pkg -type f -name '*.pb.go' -o -name '*.proto')
|
||
echo "✅ Proto files regenerated and staged."
|
||
else
|
||
echo "✅ Proto verification passed."
|
||
fi
|
||
|
||
echo "✅ Pre-commit checks passed."
|