Documentation ¶
Overview ¶
Package experiments provides a global registry of enabled and disabled experiments.
It is intended for internal use by buildkite-agent only.
Index ¶
Constants ¶
View Source
const ( // Available experiments AgentAPI = "agent-api" AllowArtifactPathTraversal = "allow-artifact-path-traversal" DescendingSpawnPriority = "descending-spawn-priority" InterpolationPrefersRuntimeEnv = "interpolation-prefers-runtime-env" NormalisedUploadPaths = "normalised-upload-paths" OverrideZeroExitOnCancel = "override-zero-exit-on-cancel" PTYRaw = "pty-raw" PolyglotHooks = "polyglot-hooks" ResolveCommitAfterCheckout = "resolve-commit-after-checkout" UseZZGlob = "use-zzglob" // Promoted experiments ANSITimestamps = "ansi-timestamps" AvoidRecursiveTrap = "avoid-recursive-trap" FlockFileLocks = "flock-file-locks" GitMirrors = "git-mirrors" InbuiltStatusPage = "inbuilt-status-page" IsolatedPluginCheckout = "isolated-plugin-checkout" JobAPI = "job-api" KubernetesExec = "kubernetes-exec" )
Variables ¶
View Source
var ( Available = map[string]struct{}{ AgentAPI: {}, AllowArtifactPathTraversal: {}, DescendingSpawnPriority: {}, InterpolationPrefersRuntimeEnv: {}, NormalisedUploadPaths: {}, OverrideZeroExitOnCancel: {}, PolyglotHooks: {}, ResolveCommitAfterCheckout: {}, UseZZGlob: {}, } Promoted = map[string]string{ ANSITimestamps: standardPromotionMsg(ANSITimestamps, "v3.48.0"), AvoidRecursiveTrap: standardPromotionMsg(AvoidRecursiveTrap, "v3.66.0"), FlockFileLocks: standardPromotionMsg(FlockFileLocks, "v3.48.0"), GitMirrors: standardPromotionMsg(GitMirrors, "v3.47.0"), InbuiltStatusPage: standardPromotionMsg(InbuiltStatusPage, "v3.48.0"), IsolatedPluginCheckout: standardPromotionMsg(IsolatedPluginCheckout, "v3.67.0"), JobAPI: standardPromotionMsg(JobAPI, "v3.64.0"), KubernetesExec: "The kubernetes-exec experiment has been replaced with the --kubernetes-exec flag as of agent v3.74.0", } )
Functions ¶
func KnownAndEnabled ¶ added in v3.64.0
KnownAndEnabled returns the keys of all the known and enabled experiments.
Types ¶
Click to show internal directories.
Click to hide internal directories.