shrinkonly

package
v1.6.29 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2026 License: MIT Imports: 3 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

Index

Constants

View Source
const DeadCode = "internal/ci/testdata/dead_code_allowlist.txt"

DeadCode is the dead code shrink-only allowlist (docs/SPEC-CI.md), the one counted ledger in internal/ci today.

Variables

View Source
var ShrinkOnlyOutsideTestdata = []string{
	"internal/ci/sleeps-skips_allowlist.txt",
	"internal/ci/slow-tests_allowlist.txt",
}

ShrinkOnlyOutsideTestdata are the shrink-only ledgers that live outside diffcheck.LedgerDir: the unit tier's two debt lists, which make test hands nova-ci slowtests (internal/ci/unit_tier_class_test.go). Each only loses rows.

Functions

func ShrinkOnly

func ShrinkOnly(p string) bool

ShrinkOnly says p (a path from the repository root, slash-separated) is a shrink-only ledger: one whose class test says it only shrinks, so a change to it is a removal of rows (and, on a list with a `# ceiling: N` line, a lowering of N), never an addition. These are every top-level list file under diffcheck.LedgerDir (the lists internal/ci loads with Options.Ceiling: allowlist_update_test.go, shrinkOnly, and the class tests' own ceiling options) except the lists that grow (growingLists), and ShrinkOnlyOutsideTestdata. The counted-ledger shards below LedgerDir's directories are not: their rows carry counts that are lowered in place. The lander resolves a merge conflict in a shrink-only ledger as the union of both sides' removals (docs/SPEC-SPRINT.md section 7; the lander is nova-sprint's, in its own repository); this is the one place that says which ledgers those are.

Types

This section is empty.

Jump to

Keyboard shortcuts

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