Skip to content

Commit

Permalink
chore: disable HTTP/2 for module builds (#2749)
Browse files Browse the repository at this point in the history
Let's see if this helps with the upstream flakiness
  • Loading branch information
stuartwdouglas authored Sep 20, 2024
1 parent 31aa71d commit 13b7cd7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions go-runtime/compile/build.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 13b7cd7

Please sign in to comment.