check-tests

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: 15 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 check-tests runs one of make preflight's test stages from the repository's fixed check directory, replaying what Go's test cache holds for unchanged inputs, rerunning what is declared or found reading past it, and reporting how many it reused (internal/testreuse, itd-2611011325421304).

Usage: check-tests [-fresh] [-cached-timeout <d>] [-budget <d>] [-lock-wait <d>] <stage> go test <flags> <packages>

The recipe's go test command is written out after the stage, whole, so the recipe still says what the stage runs. It exits with go test's result, 2 for a recipe mistake and 3 when another check held the directory past -lock-wait or it was cancelled waiting, having run nothing. A stage that waited takes its -p and -timeout again from -budget, as cmd/test-parallelism prints them, since the recipe derived them before the wait, and a race stage goes back through the race gate, holding nothing, since another may have started meanwhile. 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