grafana/k6 · error
invalid summary mode
Error message
invalid summary mode
What it means
Error "invalid summary mode" thrown in grafana/k6.
Source
Thrown at internal/lib/summary/summary.go:22
"errors"
"time"
"go.k6.io/k6/v2/metrics"
)
// A Mode specifies the mode of the Summary,
// which defines how the end-of-test summary will be rendered.
type Mode int
// Possible values for SummaryMode.
const (
ModeCompact = Mode(iota) // Compact mode that only displays the total results.
ModeFull // Extended mode that displays total and partial results.
ModeDisabled // Disabled. Can be used with --summary-mode=disabled.
)
// ErrInvalidSummaryMode indicates the serialized summary mode is invalid.
var ErrInvalidSummaryMode = errors.New("invalid summary mode")
const (
compactString = "compact"
fullString = "full"
disabledString = "disabled"
)
// MarshalJSON serializes a Mode as a human-readable string.
func (m Mode) MarshalJSON() ([]byte, error) {
txt, err := m.MarshalText()
if err != nil {
return nil, err
}
return []byte(`"` + string(txt) + `"`), nil
}
// MarshalText serializes a Mode as a human-readable string.
func (m Mode) MarshalText() ([]byte, error) {View on GitHub (pinned to 93accf6570)
When it happens
Trigger: Thrown at internal/lib/summary/summary.go:22 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of grafana/k6@93accf6570 (2026-08-15).
Data as JSON: /api/errors/722054d5beda7a2d.
Report an issue: GitHub.