precheck-audits

command
v0.17.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 18, 2026 License: MIT Imports: 9 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Command precheck-audits runs, in every package `make precheck` does not already cover, the tests that audit the committed tree, so that a lane meets them in minutes rather than most of an hour into a preflight (iss-2611061656036069, iss-2610230048490215). There is no list of tests to keep: a new audit is chosen by what it does.

A test is an audit here by testreuse.Audits: it reaches the repository tree from its package directory, in its own body, in a same-package helper it names or in a package-level value, and not only through a helper that starts a process.

What it cannot see: a tree reached through a helper in another package, other than fsutil.ModuleRoot, and a climb assembled at run time. The command and site packages stay on the name pattern in the Makefile (PRECHECK_AUDIT_TESTS), where hundreds of tests reach the root and a whole selection would not be minutes.

Usage, from the repository root:

go run ./cmd/precheck-audits ./internal/already/run ./internal/also/run

Each argument is a package the recipe runs another way, left out here. It exits with go test's own failure, and 2 when it cannot read a test file, is given something that is not a package path, or finds nothing at all, which would mean the detector stopped working rather than that there are no audits.

It is developer tooling, never part of a release.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL