rootshard

command
v1.0.504 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2026 License: MIT Imports: 28 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 rootshard runs the root package's race+coverage test suite across isolated processes (CI-REDESIGN stages 5A/5B) and proves, on every run and WITHOUT an unsharded reference, that nothing was lost on the way — no test, no coverage block and no failure.

Why a tool and not a shell pipeline: every step here is a place a sharded suite can SILENTLY lose evidence (a test no regex selected, an escaping bug that selects a neighbour, an empty selection that `-test.run` reads as "run everything", a shard that crashed and wrote no profile, a profile from a different binary, a lane profile truncated to nothing). Each of those has to fail closed, and each failure path is pinned by a test in this package, which the ordinary `go test ./...` runs.

Subcommands (all JSON artifacts are deterministic):

build     compile the root race+coverage test binary ONCE, list its entries
          from the binary itself, record its empty-run block universe,
          write manifest.json
plan      partition the binary's inventory into N shards by measured duration
run-shard run one shard's chunks against the prebuilt binary
run-lane  run every OTHER package of the module as whole packages
universe  the lane's exact command with no test selected: its block universe
verdict   check every shard, the lane and both universes against the
          source/build expectations; merge all coverage profiles
compare   audit mode: compare against the unsharded reference run
timings   derive a timing file from a reference `go test -v` log
inventory list the source's runnable test entries per package

Timing data only BALANCES shards; test inclusion comes from the binary's own -test.list and the source, never from a timing file.

See roadmap/CI-REDESIGN.md §13–§14 and .github/workflows/qa-race-shards.yml.

Jump to

Keyboard shortcuts

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