test

package
v1.232.0 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2026 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Test

type Test mg.Namespace

Test groups targets that run this repository's own test suite, as opposed to Acceptance, which drives the CLI acceptance suite as a subprocess.

func (Test) Race

func (Test) Race() error

Race runs the full test suite (excluding ./tests/..., the CLI acceptance suite) with the race detector and shuffled test order. This is the Go implementation backing the `atmos test race` custom command (.atmos.d/test.yaml) and the `[race] non-acceptance test suite` CI job (.github/workflows/test.yml). The CI job now shards this suite across several parallel jobs by pre-splitting the package list upstream (see Test.RaceMatrix in race_matrix.go) and passing each shard's slice through the TEST override below -- Race itself has no shard-awareness of its own.

func (Test) RaceMatrix

func (Test) RaceMatrix() error

RaceMatrix emits a GitHub Actions matrix -- the same --format=matrix convention `atmos describe affected`/`atmos list instances` use (see pkg/matrix) -- partitioning the race package list across RACE_SHARD_COUNT shards, shuffled first (raceShardSeedEnv) so package order doesn't pin the same slow cluster to the same shard every run. This backs the `[race] plan shards` CI job (test.yml), whose output feeds the `race` job's `strategy.matrix`.

Jump to

Keyboard shortcuts

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