File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -34,8 +34,13 @@ import (
34
34
// environment might cause environment checks to behave erratically.
35
35
var origEnv = os .Environ ()
36
36
37
- // Builder reports the name of the builder running this test
38
- // (for example, "linux-amd64" or "windows-386-gce").
37
+ // Builder reports the name of the builder running this test. For example,
38
+ // "gotip-linux-amd64_avx512-test_only" or "go1.24-windows-arm64" on LUCI,
39
+ // or "linux-amd64" on our old infrastructure. Prefer using runtime.GOOS,
40
+ // runtime.GOARCH, race.Enabled, reading the OS version, checking CPU
41
+ // feature flags with internal/cpu, etc. over parsing builder names when
42
+ // possible. When matching builder names, prefer a fuzzy match instead
43
+ // of a strict comparison.
39
44
// If the test is not running on the build infrastructure,
40
45
// Builder returns the empty string.
41
46
func Builder () string {
You can’t perform that action at this time.
0 commit comments