MCPcopy Create free account
hub / github.com/github/gh-aw / formatExperimentSkipMessage

Function formatExperimentSkipMessage

pkg/cli/audit_report_experiments.go:189–194  ·  view source on GitHub ↗

formatExperimentSkipMessage returns the informational message emitted when a run is skipped because its experiment data does not satisfy the active filter.

(runID int64, experimentName, variant string)

Source from the content-addressed store, hash-verified

187// formatExperimentSkipMessage returns the informational message emitted when a run
188// is skipped because its experiment data does not satisfy the active filter.
189func formatExperimentSkipMessage(runID int64, experimentName, variant string) string {
190 if variant != "" {
191 return fmt.Sprintf("Run %d skipped: experiment %q not assigned variant %q", runID, experimentName, variant)
192 }
193 return fmt.Sprintf("Run %d skipped: experiment %q not assigned (not found in run artifacts)", runID, experimentName)
194}
195
196// deriveLastSelectedVariant returns the variant selected on the last run based on the
197// highest count. Ties are broken by sorted order.

Callers 2

shouldSkipAuditRunFunction · 0.85

Calls

no outgoing calls

Tested by 1