Files
seaweedfs/seaweed-block/.github/scripts/ci-evidence.md
T

2.5 KiB

Failed-job evidence

Both test suites keep one ci-<suite>-<run>-<attempt> artifact on failure for 14 days. go-test.json contains Go's timestamped events and per-test Elapsed values; process shards also keep their original JSON, logs and exit receipts. go-test.stderr keeps build/tool errors outside Go's JSON event stream. The console still shows the original test output. Recording/rendering errors are best effort: they report the missing evidence and keep draining Go, whose own exit code alone decides the wrapper's result. Test arguments, scope, timeouts, exit-code handling and the required-tests gate are unchanged.

load.tsv begins immediately after checkout and samples once per second until the final collection step. It covers setup, builds and tests; the checkout itself and the artifact upload are outside the sampling interval. The sampler has the job's maximum lifetime if cancellation prevents its stop step. The stop receipt includes the process start time, so a recycled PID is not killed.

Columns:

  • ts_utc: UTC timestamp with milliseconds. Scheduling gaps remain visible; delayed sampling does not invent backfilled one-second rows.
  • load1: machine load average.
  • steal_pct, iowait_pct: interval percentages from /proc/stat (the first row has no baseline and is null). Guest counters are not counted twice.
  • psi_cpu, psi_io, psi_mem: JSON objects containing the kernel's some and, when available, full pressure averages and cumulative microseconds.
  • disk_await_ms: JSON map by device, calculated as the interval's read/write milliseconds divided by completed reads/writes from /proc/diskstats. Devices are kept separate, including partitions and device-mapper layers; do not sum them. No completed IO, reset counters or a new device yields null. Discard and flush-only operations are not included in this read/write mean.
  • cgroup_cpu_max: JSON map of cpu.max for the sampler's current cgroup and every visible ancestor. The sampler inherits the job's cgroup. Parent quotas matter even when the leaf says max. Cgroup v1/unavailable data is null.
  • errors: read/parse errors; missing or inaccessible counters are null, never fabricated zero load. Consult load.sampler.log for sampler errors.

No package installation, sudo, or iostat executable is required. /proc CPU/PSI/disk observations are machine-wide; these are correlation evidence, not proof that the job itself caused contention. Sampling is diagnostic and does not revoke, retry or change a test's result.