Allow apitool to declare exemptions and enable linter during presubmit (#1274)

Allow the `apitool validate` linter to define exemptions, then add
exemptions for current validation errors, and then enable this as part
of presubmit (GH action).
This commit is contained in:
Julian Gutierrez Oschmann
2026-08-27 12:49:24 -07:00
committed by GitHub
parent cb72d60bdf
commit f43d4096d7
16 changed files with 1351 additions and 540 deletions
+4
View File
@@ -37,6 +37,10 @@ jobs:
with:
go-version-file: 'go.mod'
- run: go test -race -v ./...
# tools/apitool has its own module so we need to run it explicitly.
- name: apitool tests
working-directory: tools/apitool
run: go test -race -v ./...
# Root-gated tests (overlay mounts, whiteout mknod, trusted.* xattrs, ...)
# skip for the unprivileged runner user above; rerun the packages that
# contain them (any test importing internal/roottest) under sudo.