Skip to content

Commit

Permalink
fixing memory for task test increase the UDP receive buffer size (#40)
Browse files Browse the repository at this point in the history
## Description

#39

we are getting the following error on ci tests for task -- :

```
failed to sufficiently increase receive buffer size (was: 208 kiB, wanted: 2048 kiB, got: 416 kiB). See https://github.com/lucas-clemente/quic-go/wiki/UDP-Receive-Buffer-Size for details.
```

I found a reference in `go-libp2p` that addresses this same issue and
implements the fix discussed in the `quic-go` guide

libp2p/go-libp2p#1323
  • Loading branch information
brossetti1 committed Jan 18, 2023
1 parent 48952ad commit 2c94208
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
7 changes: 7 additions & 0 deletions .github/workflows/actions/go-test-setup.yml
@@ -0,0 +1,7 @@
runs:
using: "composite"
steps:
- name: increase the UDP receive buffer size # see https://github.com/lucas-clemente/quic-go/wiki/UDP-Receive-Buffer-Size
shell: bash
run: sysctl -w net.core.rmem_max=2500000
if: ${{ matrix.os == 'ubuntu' }}
5 changes: 4 additions & 1 deletion .github/workflows/build.yml
Expand Up @@ -51,10 +51,13 @@ jobs:
postgresql db: 'postgres'
postgresql user: 'postgres'
postgresql password: 'postgres'

- name: Setup gotestsum
run: go install gotest.tools/gotestsum@latest

- name: Run repo-specific setup
uses: ./.github/actions/go-test-setup
if: hashFiles('./.github/actions/go-test-setup') != ''

- name: Test
env:
W3S_TOKEN_TEST: ${{ secrets.W3S_TOKEN_TEST }}
Expand Down

0 comments on commit 2c94208

Please sign in to comment.