зеркало из https://github.com/golang/build.git
main.star: set gotestjsonbuildtext=1 GODEBUG globally at tip
Two reasons: to buy more time to work on the result_adapter/ResultDB side (beyond just the bare minimum behavior of not regressing beyond what we had before), and to test that using a GODEBUG for this works as we expect. It already uncovered the need to merge multiple GODEBUG settings that we hadn't run into earlier. For golang/go#70402. Change-Id: I9b86f6a5462637eef84f3efca9fc31d11657d756 Reviewed-on: https://go-review.googlesource.com/c/build/+/629375 Auto-Submit: Dmitri Shuralyov <dmitshur@golang.org> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Dmitri Shuralyov <dmitshur@google.com> Reviewed-by: Michael Knyszek <mknyszek@google.com>
This commit is contained in:
Родитель
85446f8ffd
Коммит
02a1869e08
Разница между файлами не показана из-за своего большого размера
Загрузить разницу
13
main.star
13
main.star
|
@ -788,7 +788,12 @@ def make_run_mod(add_props = {}, add_env = {}, enabled = None, test_timeout_scal
|
|||
props["test_timeout_scale"] *= test_timeout_scale
|
||||
|
||||
# Update any environment variables.
|
||||
props["env"].update(add_env)
|
||||
e = dict(add_env)
|
||||
if "GODEBUG" in e and "GODEBUG" in props["env"]:
|
||||
# The environment variable GODEBUG holds a comma-separated list
|
||||
# of key=value pairs. Merge them. See go.dev/doc/godebug.
|
||||
e["GODEBUG"] = props["env"]["GODEBUG"] + "," + e["GODEBUG"]
|
||||
props["env"].update(e)
|
||||
|
||||
if enabled == None:
|
||||
enabled = lambda port, project, go_branch_short: (True, True, True, [])
|
||||
|
@ -1508,6 +1513,12 @@ def define_builder(env, project, go_branch_short, builder_type):
|
|||
if d.test_deps:
|
||||
base_props["tools_extra_test"] = d.test_deps
|
||||
|
||||
# Buy more time to work on result_adapter/ResultDB support
|
||||
# for https://tip.golang.org/doc/go1.24#go-command changes.
|
||||
# TODO(go.dev/issue/70402): Remove once ready.
|
||||
if go_branch_short == "gotip":
|
||||
base_props["env"]["GODEBUG"] = "gotestjsonbuildtext=1"
|
||||
|
||||
# We run GOARCH=wasm builds on linux/amd64 with GOOS/GOARCH set,
|
||||
# and the applicable Wasm runtime provided as a CIPD dependency.
|
||||
#
|
||||
|
|
Загрузка…
Ссылка в новой задаче