perf(cache): Add a sharded map for global cache #1972
This file contains 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: ci-dgraph-oss-build | |
on: | |
pull_request: | |
paths-ignore: | |
- '.github/CODEOWNERS' | |
- '.vscode/**' | |
- 'compose/**' | |
- 'contrib/systemd/**' | |
- 'licenses/**' | |
- 'paper/**' | |
- 'present/**' | |
- 'RFC/**' | |
- 'static/**' | |
- 'wiki/**' | |
- '**/**.dockerignore' | |
- '**/**.gitignore' | |
- '**/**.md' | |
- '**/**.png' | |
- '**/**.jpg' | |
- '**/**.gif' | |
- '**/**.ini' | |
types: | |
- opened | |
- reopened | |
- synchronize | |
- ready_for_review | |
branches: | |
- main | |
- 'release/**' | |
jobs: | |
dgraph-oss-build: | |
if: github.event.pull_request.draft == false | |
runs-on: warp-ubuntu-latest-x64-4x | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Get Go Version | |
run: | | |
#!/bin/bash | |
GOVERSION=$({ [ -f .go-version ] && cat .go-version; }) | |
echo "GOVERSION=$GOVERSION" >> $GITHUB_ENV | |
- name: Set up Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: ${{ env.GOVERSION }} | |
- name: Make OSS Linux Build | |
run: make oss # verify that we can make OSS build | |
- name: Run OSS Unit Tests | |
run: | | |
#!/bin/bash | |
# go env settings | |
export GOPATH=~/go | |
# move the binary | |
cp dgraph/dgraph ~/go/bin/dgraph | |
# run OSS unit tests | |
go test -timeout=60m -failfast -tags=oss -count=1 ./... |