···2727}:
28282929let
3030- version = "1.13.0";
3030+ version = "1.13.1";
31313232 # build stimuli file for PGO build and the script to generate it
3333 # independently of the foot's build, so we can cache the result
···9999 owner = "dnkl";
100100 repo = pname;
101101 rev = version;
102102- sha256 = "0cc262jpqp8l25p04pcqh3w671gw0p1d2zrr3d34ch8k9c6s4nzq";
102102+ sha256 = "0k0zbh6adwr99y9aazlyvp6s1k8zaq2j6x8kqb8q9a5qjjg56lay";
103103 };
104104105105 depsBuildBuild = [
···2626 ./skip_test_requiring_network.patch
2727 # Skip TestWorkspaceGit which requires .git and commits.
2828 ./skip_test_requiring_dotgit.patch
2929+ # Skips the invalid_upstream test as it is flakey. Based on upstream commit
3030+ # 27930caf2eb35c2592a77f59ed5afe4d9e2fb7ea.
3131+ # This patch may be removed on the next buf update.
3232+ ./skip_test_invalid_upstream_flakey.patch
2933 ];
30343135 nativeBuildInputs = [ installShellFiles ];
···11+diff --git a/private/bufpkg/bufstudioagent/bufstudioagent_test.go b/private/bufpkg/bufstudioagent/bufstudioagent_test.go
22+index 6e010937..9cacc082 100644
33+--- a/private/bufpkg/bufstudioagent/bufstudioagent_test.go
44++++ b/private/bufpkg/bufstudioagent/bufstudioagent_test.go
55+@@ -186,6 +186,19 @@ func testPlainPostHandlerErrors(t *testing.T, upstreamServer *httptest.Server) {
66+ })
77+88+ t.Run("invalid_upstream", func(t *testing.T) {
99++ // TODO: unskip this test. This is flaky because of two reasons:
1010++ //
1111++ // 1. When a connection is closed, the underlying HTTP client does not
1212++ // always knows it, since the http handler implementation in go has no way
1313++ // of changing the connection timeout. See:
1414++ // https://github.com/golang/go/issues/16100
1515++ //
1616++ // 2. The expected status code is `StatusBadGateway` since the issue
1717++ // happened client-side (a response never came back from the server). This
1818++ // is not deterministic in the business logic because we're based on the
1919++ // connect error code that's returned. See
2020++ // https://linear.app/bufbuild/issue/BSR-383/flaky-test-in-bufstudioagent-testgo
2121++ t.SkipNow()
2222+ listener, err := net.Listen("tcp", "127.0.0.1:")
2323+ require.NoError(t, err)
2424+ go func() {