From 13b7cd7044745c08ec4efa63b2df767a5428f60e Mon Sep 17 00:00:00 2001 From: Stuart Douglas Date: Fri, 20 Sep 2024 13:34:15 +1000 Subject: [PATCH] chore: disable HTTP/2 for module builds (#2749) Let's see if this helps with the upstream flakiness --- go-runtime/compile/build.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/go-runtime/compile/build.go b/go-runtime/compile/build.go index 9e121f6888..9c6ec833fb 100644 --- a/go-runtime/compile/build.go +++ b/go-runtime/compile/build.go @@ -250,6 +250,9 @@ func Build(ctx context.Context, projectRootDir, moduleDir string, sch *schema.Sc if devMode { args = []string{"build", "-gcflags=all=-N -l", "-o", "../../main", "."} } + // We have seen lots of upstream HTTP/2 failures that make CI unstable. + // Disable HTTP/2 for now during the build. This can probably be removed later + buildEnv = append(buildEnv, "GODEBUG=http2client=0") err = exec.CommandWithEnv(ctx, log.Debug, mainDir, buildEnv, "go", args...).RunBuffered(ctx) if err != nil { return fmt.Errorf("failed to compile: %w", err)