* docs: name the service the NVKE controller on first mention
Pages that no open pull request edits now call the service "the NVKE
controller" on first mention, following the naming rule in AGENTS.md, and no
longer call it CWE except where a sentence is about existing sites that run
cloud-workflow-engine. The site-bootstrap sequence diagram names the NVKE
controller participant. The tenant API access example defines SITE_NAME,
NVKE_CONTROLLER_URL and CLUSTER_NAME before it uses them.
Signed-off-by: Aaron Patten <apatten@nvidia.com>
* docs: quote the API access placeholders and update the OIDC design status
Signed-off-by: Aaron Patten <apatten@nvidia.com>
---------
Signed-off-by: Aaron Patten <apatten@nvidia.com>
* docs: document that preflight runs work-check, which mutates and needs network
Signed-off-by: Terry Howe <thowe@nvidia.com>
* docs: qualify work-check network requirement as cache-dependent
Signed-off-by: Terry Howe <thowe@nvidia.com>
* docs: correct the work-check comment on an untracked go.sum
Signed-off-by: Terry Howe <thowe@nvidia.com>
---------
Signed-off-by: Terry Howe <thowe@nvidia.com>
Coverage was collected in three of the eleven workspace modules and read in
none. controller/ wrote coverage.txt and said so in a comment, nico-sim and
management-engine wrote their own, and the six other modules that have tests
ran `go test` with no -coverprofile at all. No workflow read any of it, there
is no Codecov configuration, and no threshold is enforced.
The missing signal is not the percentage. It is that nothing notices when a
refactor drops a test file or a build tag stops compiling a suite: the run
still passes, nothing goes red, and the absence looks exactly like success.
Two cloudinit tests under controller/test/kubeadm pointed at a path that does
not exist and failed on every invocation while CI stayed green, because the
tag that gates them was set nowhere.
What this adds:
make/coverage.mk single owner of the profile path, directory and
-covermode, the way make/tool-versions.mk owns the
tool pins. Included by the nine collecting modules.
hack/coverage.sh the registry of which modules collect, the checks,
and the report.
coverage.yml a `policy` job in the merge gate (the registry
against the tree, about a second) and a `report` job
on main, weekly and on demand that runs the suites,
writes a per-module table to the job summary and
uploads the profiles.
docs/coverage-policy.md what the number is and is not.
Profiles move from controller/coverage.txt and management-engine/cover-*.out
to coverage/<module>.out at the root, so one directory holds all of them.
What fails: a missing, malformed or empty profile; a module that gains its
first test and does not start collecting; a test recipe that loses its
-coverprofile; a package whose tests a build tag keeps out of the build and
which is not declared as such; and a stale declaration for a package that
compiles again. A package of nothing but _test.go files is exempt from the
profile check -- it has no statements of its own to attribute.
What deliberately does not fail: a percentage. Coverage measures which lines a
test binary executed, not whether anything was asserted about them, so it is
not evidence of test adequacy and no threshold gates a merge. The policy
document says so in those words, and AGENTS.md repeats it, because a number in
a job summary invites exactly that reading.
The `report` job skips itself when the gate calls it: re-running the nine
suites the gate's own lanes have already run would roughly double its wall
clock to re-measure the same thing.
Signed-off-by: Terry Howe <thowe@nvidia.com>
- Resolve public dependencies through Go modules across builds and CI
- Remove vendor-only checks and the remote test bundle
- Refresh third-party notices and contributor documentation
Signed-off-by: Vivin Wilson <vwilson@nvidia.com>
* build: make go.work the single owner of the Go version, at 1.26.8
Three files held the number and nothing tied them. go.work said 1.26.6,
make/tool-versions.mk repeated 1.26.6, and .flox/env/manifest.toml said
1.26.5 -- a drift its own comment admitted GOTOOLCHAIN=auto was hiding.
go.work owns it now, because controller/Makefile:7 already derived
GOTOOLCHAIN from it and that is the mechanism guarding the strcase
panic. GOVULNCHECK_GO_VERSION derives from the same line rather than
repeating it. Flox cannot derive, so it stays a copy and now says so.
The root Makefile exports the same GOTOOLCHAIN pin, so the claim at
CONTRIBUTING.md:26 -- that make pins it from go.work -- becomes true for
every module reached from the root, not just controller.
Per-module go.mod floors are left alone. They range 1.26.0 to 1.26.6 and
go.work is the effective floor; raising them would change what consumers
of controller/api and agent must run, which is a separate decision.
Verified on 1.26.8: gmake build links all six binaries, and
gmake -C controller test passes, which is the module vendoring strcase.
Signed-off-by: Davanum Srinivas <dsrinivas@nvidia.com>
* build: bump the three Dockerfiles still pinned to golang:1.26.6
go.work now requires >= 1.26.8. These builder stages ran a baked-in
1.26.6 toolchain under GOTOOLCHAIN=local, so every image build failed
at `make build`/`go build`: nico-e2e, capd-e2e, nkectl bootstrap e2e,
and the Image workflow all build controller/Dockerfile and hit it.
Verified locally: builder stage of all three Dockerfiles now builds
past that step (docker build --target builder, linux/arm64).
Signed-off-by: Davanum Srinivas <dsrinivas@nvidia.com>
* docs: bring the Go version references up to 1.26.8
first-cluster.md's prerequisite table still said 1.26.6+.
development.md's govulncheck row explained a version gap between
GOVULNCHECK_GO_VERSION and go.work (1.26.6 vs 1.26.5) that no longer
exists: make/tool-versions.mk now derives GOVULNCHECK_GO_VERSION from
go.work, so the two can never differ. Removed the row rather than
re-numbering it, since re-numbering both sides to 1.26.8 would claim a
difference that can no longer occur.
Signed-off-by: Davanum Srinivas <dsrinivas@nvidia.com>
---------
Signed-off-by: Davanum Srinivas <dsrinivas@nvidia.com>
Adds a Docker-backed NICo simulator backend alongside the existing VM backend, dispatched per site with a shared instances table. Existing databases migrate automatically at startup. Unifies the nico-mock and nico-vm Tilt providers into a single nico-sim provider.
Prose restated facts the tree already owns, and then the tree moved.
docs/architecture.md said two Go modules while go.work listed nine, and it is
the document README.md and AGENTS.md both point at, so everyone read it first.
A tenth module landed while that correction was still in review.
Add hack/docs-check.sh. It reads each fact back from its source rather than from
a second copy: the module list from hack/workspace-modules.sh, the binary names
from the Makefile, the merge-gate members from merge-gate.yml, and every
relative markdown link from the filesystem. It needs only bash, git, awk and
grep, so there is no version to pin.
Markdown hard-wraps, so the check joins each block of prose before matching.
A line-at-a-time grep misses docs/architecture.md, where the number ends one
line and the noun starts the next, which is the exact drift that prompted this.
Wired as make docs-check, into the gate, and as a merge-gate member.
It found two broken links nobody had reported, both fixed here: agent/docs/
SECURITY.md pointed one level short of the repository-root SECURITY.md it names,
and build/README.md linked a node-agent/ directory that does not exist.
What it will not catch is recorded in the script header. The largest gap is that
it checks whether every file in docs/ has an index row, never whether the row
describes the file.
Signed-off-by: Davanum Srinivas <dsrinivas@nvidia.com>
The build instructions were spread across five files and had drifted apart, and
several of the commands could not run as written.
CONTRIBUTING.md contradicted itself within sixteen lines. Lines 26-28 said macOS
Make 3.81 cannot run the root Makefile and to use `gmake`; line 43 and every root
command after it wrote `make`. A reader was expected to substitute mentally,
which a reader pasting commands does not do. It now says it once, and suggests
the alias that makes the rest of the file true.
Its test block could not run at all. One fenced block did `cd controller && ...`,
then `cd agent && make test`, which fails because you are in controller/, then
`cd controller/integration-test`, which fails for the same reason. The
integration command also omitted `-tags integration_test`, so it reported "build
constraints exclude all Go files" and ran nothing. The correct entry point,
`make -C controller test-integration`, went unmentioned. Everything is now
written as `make -C <module>`, which works from anywhere and has no ordering to
get wrong.
Flox was described as a controller-only toolchain in three files. It has been
repository-wide since #292. All three now say so, and say it is optional, since
every target resolves tools from PATH.
docs/development.md is new: the local loop, the tests, what to run before opening
a pull request, and a section no sibling repository has -- what a local run
cannot tell you. That last part matters more than the rest. It names govulncheck,
which CI runs under a different Go than go.work asks for, so it reports findings
locally that CI does not; the CAPD suite, which refuses to start off Linux amd64;
and the checks that exist only on GitHub's side.
It deliberately does not list the targets. `make help` is generated and grouped,
a restated list is not, and a restated list is what has already rotted in two
sibling repositories.
CONTRIBUTING.md also gains aicr's "local development equals CI" principle, with
its caveat kept: the promise only holds while your toolchain matches the pins, so
a stale golangci-lint silently misses what CI catches.
The pull request template gains a Testing section pointing at `make preflight`,
and its note about merge methods is corrected -- the repository squash-merges, so
the PR title becomes the changelog entry.
Verified: every command quoted in CONTRIBUTING.md resolves with `make -n`, and
every internal documentation link resolves to a file that exists.
Signed-off-by: Davanum Srinivas <dsrinivas@nvidia.com>