VStream: Prevent buffering entire transactions (OOM risk), instead se… #51129
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: region_example | |
| on: | |
| push: | |
| branches: | |
| - "main" | |
| - "release-[0-9]+.[0-9]" | |
| tags: '**' | |
| pull_request: | |
| branches: '**' | |
| permissions: read-all | |
| jobs: | |
| build: | |
| name: Region Sharding example using ${{ matrix.topo }} on Ubuntu | |
| runs-on: oracle-vm-16cpu-64gb-x86-64 | |
| strategy: | |
| matrix: | |
| topo: [etcd] | |
| steps: | |
| - name: Skip CI | |
| run: | | |
| if [[ "${{contains( github.event.pull_request.labels.*.name, 'Skip CI')}}" == "true" ]]; then | |
| echo "skipping CI due to the 'Skip CI' label" | |
| exit 1 | |
| fi | |
| - name: Check out code | |
| uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
| with: | |
| persist-credentials: 'false' | |
| - name: Check for changes in relevant files | |
| uses: dorny/paths-filter@ebc4d7e9ebcb0b1eb21480bb8f43113e996ac77a # v3.0.1 | |
| id: changes | |
| with: | |
| token: '' | |
| filters: | | |
| examples: | |
| - 'test/config.json' | |
| - 'go/**/*.go' | |
| - 'test.go' | |
| - 'Makefile' | |
| - 'build.env' | |
| - 'go.sum' | |
| - 'go.mod' | |
| - 'proto/*.proto' | |
| - 'tools/**' | |
| - 'config/**' | |
| - 'bootstrap.sh' | |
| - 'examples/**' | |
| - '.github/workflows/region_example.yml' | |
| - name: Set up Go | |
| if: steps.changes.outputs.examples == 'true' | |
| uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0 | |
| with: | |
| go-version-file: go.mod | |
| - name: Tune the OS | |
| if: steps.changes.outputs.examples == 'true' | |
| uses: ./.github/actions/tune-os | |
| - name: Get dependencies | |
| if: steps.changes.outputs.examples == 'true' | |
| run: | | |
| go mod download | |
| - name: Run make minimaltools | |
| if: steps.changes.outputs.examples == 'true' | |
| run: | | |
| make minimaltools | |
| - name: Build | |
| if: steps.changes.outputs.examples == 'true' | |
| run: | | |
| make build | |
| - name: region_example | |
| if: steps.changes.outputs.examples == 'true' | |
| timeout-minutes: 30 | |
| run: | | |
| export TOPO=${{matrix.topo}} | |
| if [ "${{matrix.os}}" = "macos-latest" ]; then | |
| export PATH="/usr/local/opt/[email protected]/bin:$PATH" | |
| fi | |
| go run test.go -print-log -follow -retry=1 region_example |