experimentsBranchName returns the git branch name used for repo-based experiment storage. Format: "experiments/{sanitizedWorkflowID}"
(workflowID string)
| 115 | // experimentsBranchName returns the git branch name used for repo-based experiment storage. |
| 116 | // Format: "experiments/{sanitizedWorkflowID}" |
| 117 | func experimentsBranchName(workflowID string) string { |
| 118 | sanitized := SanitizeWorkflowIDForCacheKey(workflowID) |
| 119 | if sanitized == "" { |
| 120 | sanitized = "default" |
| 121 | } |
| 122 | return experimentsBranchPrefix + "/" + sanitized |
| 123 | } |
| 124 | |
| 125 | // extractOneExperimentConfig converts a single raw experiment value into an ExperimentConfig. |
| 126 | // Returns nil when the value is invalid (e.g. fewer than two variants). |