expruntime-ratchet

command
v0.35.0 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2026 License: MPL-2.0 Imports: 14 Imported by: ? 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 expruntime-ratchet is the experimental-runtime lane's ratchet (#2256 U3, #2338). It reads the `go test -json` output of a run with TOFU_X_EXPERIMENTAL_RUNTIME=1 and CHOUDOUFU_NEW_RUNTIME_STRICT=1 (#2397: refuse, not fall back to the default runtime) and checks it against the checked-in expected-failures list, live/experimental-runtime/expected-failures.json:

  • a listed test that passes fails the job until it is taken off the list;
  • an unlisted test that fails fails the job (a regression, or something upstream broke);
  • a SkipExperimental call in a fork-owned test fails the job unless the list's "skips" names that test with a reason. Without this a skip would take a test off the list without it ever passing. A call is upstream-owned, and left alone, when the same test function in the same directory calls SkipExperimental in the raw upstream graft.

Every list entry needs a reason. Skips are counted and printed.

Usage:

TOFU_X_EXPERIMENTAL_RUNTIME=1 CHOUDOUFU_NEW_RUNTIME_STRICT=1 go test -json ./internal/tofu ... > results.json
go run ./tools/expruntime-ratchet -results results.json

The last line is the verdict, "RATCHET: PASS ..." or "RATCHET: FAIL ...". Read that line, not the exit code alone.

Jump to

Keyboard shortcuts

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