···27}:
2829let
30- version = "1.13.0";
3132 # build stimuli file for PGO build and the script to generate it
33 # independently of the foot's build, so we can cache the result
···99 owner = "dnkl";
100 repo = pname;
101 rev = version;
102- sha256 = "0cc262jpqp8l25p04pcqh3w671gw0p1d2zrr3d34ch8k9c6s4nzq";
103 };
104105 depsBuildBuild = [
···27}:
2829let
30+ version = "1.13.1";
3132 # build stimuli file for PGO build and the script to generate it
33 # independently of the foot's build, so we can cache the result
···99 owner = "dnkl";
100 repo = pname;
101 rev = version;
102+ sha256 = "0k0zbh6adwr99y9aazlyvp6s1k8zaq2j6x8kqb8q9a5qjjg56lay";
103 };
104105 depsBuildBuild = [
···26 ./skip_test_requiring_network.patch
27 # Skip TestWorkspaceGit which requires .git and commits.
28 ./skip_test_requiring_dotgit.patch
29+ # Skips the invalid_upstream test as it is flakey. Based on upstream commit
30+ # 27930caf2eb35c2592a77f59ed5afe4d9e2fb7ea.
31+ # This patch may be removed on the next buf update.
32+ ./skip_test_invalid_upstream_flakey.patch
33 ];
3435 nativeBuildInputs = [ installShellFiles ];
···1+diff --git a/private/bufpkg/bufstudioagent/bufstudioagent_test.go b/private/bufpkg/bufstudioagent/bufstudioagent_test.go
2+index 6e010937..9cacc082 100644
3+--- a/private/bufpkg/bufstudioagent/bufstudioagent_test.go
4++++ b/private/bufpkg/bufstudioagent/bufstudioagent_test.go
5+@@ -186,6 +186,19 @@ func testPlainPostHandlerErrors(t *testing.T, upstreamServer *httptest.Server) {
6+ })
7+8+ t.Run("invalid_upstream", func(t *testing.T) {
9++ // TODO: unskip this test. This is flaky because of two reasons:
10++ //
11++ // 1. When a connection is closed, the underlying HTTP client does not
12++ // always knows it, since the http handler implementation in go has no way
13++ // of changing the connection timeout. See:
14++ // https://github.com/golang/go/issues/16100
15++ //
16++ // 2. The expected status code is `StatusBadGateway` since the issue
17++ // happened client-side (a response never came back from the server). This
18++ // is not deterministic in the business logic because we're based on the
19++ // connect error code that's returned. See
20++ // https://linear.app/bufbuild/issue/BSR-383/flaky-test-in-bufstudioagent-testgo
21++ t.SkipNow()
22+ listener, err := net.Listen("tcp", "127.0.0.1:")
23+ require.NoError(t, err)
24+ go func() {
···48 for f in "$lib/lib/"*.la "$dev/bin/"bind*-config; do
49 sed -i "$f" -e 's|-L${openssl.dev}|-L${lib.getLib openssl}|g'
50 done
00000000051 '';
5253 doCheck = false; # requires root and the net
···48 for f in "$lib/lib/"*.la "$dev/bin/"bind*-config; do
49 sed -i "$f" -e 's|-L${openssl.dev}|-L${lib.getLib openssl}|g'
50 done
51+52+ cat <<EOF >$out/etc/rndc.conf
53+ include "/etc/bind/rndc.key";
54+ options {
55+ default-key "rndc-key";
56+ default-server 127.0.0.1;
57+ default-port 953;
58+ };
59+ EOF
60 '';
6162 doCheck = false; # requires root and the net