diff --git a/.github/workflows/cd-dgraph.yml b/.github/workflows/cd-dgraph.yml index 4e539b6933f..b9b0fb98d8a 100644 --- a/.github/workflows/cd-dgraph.yml +++ b/.github/workflows/cd-dgraph.yml @@ -12,9 +12,9 @@ on: type: string jobs: dgraph-build-amd64: - runs-on: ubuntu-20.04 + runs-on: warp-ubuntu-latest-x64-16x steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: ref: '${{ github.event.inputs.releasetag }}' - name: Get Go Version @@ -23,7 +23,7 @@ jobs: GOVERSION=$({ [ -f .go-version ] && cat .go-version; }) echo "GOVERSION=$GOVERSION" >> $GITHUB_ENV - name: Set up Go - uses: actions/setup-go@v3 + uses: actions/setup-go@v5 with: go-version: ${{ env.GOVERSION }} - name: Install protobuf-compiler @@ -100,9 +100,9 @@ jobs: docker push dgraph/dgraph:${{ env.DGRAPH_RELEASE_VERSION }}-amd64 dgraph-build-arm64: - runs-on: [self-hosted, arm64] + runs-on: warp-ubuntu-latest-arm64-16x steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: ref: '${{ github.event.inputs.releasetag }}' - name: Get Go Version @@ -111,7 +111,7 @@ jobs: GOVERSION=$({ [ -f .go-version ] && cat .go-version; }) echo "GOVERSION=$GOVERSION" >> $GITHUB_ENV - name: Set up Go - uses: actions/setup-go@v3 + uses: actions/setup-go@v5 with: go-version: ${{ env.GOVERSION }} - name: Install protobuf-compiler @@ -189,9 +189,9 @@ jobs: dgraph-docker-manifest: needs: [dgraph-build-amd64, dgraph-build-arm64] - runs-on: ubuntu-20.04 + runs-on: warp-ubuntu-latest-x64-16x steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: ref: '${{ github.event.inputs.releasetag }}' - name: Set Dgraph Release Version diff --git a/.github/workflows/ci-aqua-security-trivy-tests.yml b/.github/workflows/ci-aqua-security-trivy-tests.yml index c12d26705bc..1716de13aa2 100644 --- a/.github/workflows/ci-aqua-security-trivy-tests.yml +++ b/.github/workflows/ci-aqua-security-trivy-tests.yml @@ -1,6 +1,6 @@ name: ci-aqua-security-trivy-tests on: - push: + pull_request: paths-ignore: - '.github/CODEOWNERS' - '.vscode/**' @@ -19,10 +19,6 @@ on: - '**/**.jpg' - '**/**.gif' - '**/**.ini' - branches: - - main - - 'release/**' - pull_request: types: - opened - reopened @@ -37,17 +33,17 @@ jobs: build: name: trivy-tests if: github.event.pull_request.draft == false - runs-on: ubuntu-20.04 + runs-on: warp-ubuntu-latest-x64-4x steps: - name: Checkout code - uses: actions/checkout@v3 + 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@v3 + uses: actions/setup-go@v5 with: go-version: ${{ env.GOVERSION }} - name: Build Docker image @@ -60,6 +56,6 @@ jobs: format: 'sarif' output: 'trivy-results.sarif' - name: Upload Trivy scan results to GitHub Security tab - uses: github/codeql-action/upload-sarif@v2 + uses: github/codeql-action/upload-sarif@v3 with: sarif_file: 'trivy-results.sarif' diff --git a/.github/workflows/ci-dgraph-code-coverage.yml b/.github/workflows/ci-dgraph-code-coverage.yml index 1ad293ec79a..951b16a02b0 100644 --- a/.github/workflows/ci-dgraph-code-coverage.yml +++ b/.github/workflows/ci-dgraph-code-coverage.yml @@ -24,17 +24,16 @@ on: - 'release/**' jobs: dgraph-code-coverage: - runs-on: [self-hosted, x64] - # runs-on: ubuntu-20.04 + runs-on: warp-ubuntu-latest-x64-16x steps: - - uses: actions/checkout@v3 # defaults to SHA of event that triggered workflow + - uses: actions/checkout@v4 # defaults to SHA of event that triggered workflow - 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@v3 + uses: actions/setup-go@v5 with: go-version: ${{ env.GOVERSION }} - name: Set up Node diff --git a/.github/workflows/ci-dgraph-fuzz.yml b/.github/workflows/ci-dgraph-fuzz.yml index 782d34a100f..1106f3e4fda 100644 --- a/.github/workflows/ci-dgraph-fuzz.yml +++ b/.github/workflows/ci-dgraph-fuzz.yml @@ -1,9 +1,5 @@ name: ci-dgraph-fuzz on: - push: - branches: - - main - - 'release/**' pull_request: types: - opened @@ -17,16 +13,16 @@ on: - cron: "1 */8 * * *" # every 8hrs jobs: fuzz-test: - runs-on: ubuntu-20.04 + runs-on: warp-ubuntu-latest-x64-4x steps: - - uses: actions/checkout@v3 + - 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@v3 + uses: actions/setup-go@v5 with: go-version: ${{ env.GOVERSION }} - name: Run fuzz tests diff --git a/.github/workflows/ci-dgraph-integration2-tests.yml b/.github/workflows/ci-dgraph-integration2-tests.yml index 532226c1abf..9042b889b05 100644 --- a/.github/workflows/ci-dgraph-integration2-tests.yml +++ b/.github/workflows/ci-dgraph-integration2-tests.yml @@ -1,9 +1,5 @@ name: ci-dgraph-integration2-tests on: - push: - branches: - - main - - 'release/**' pull_request: types: - opened @@ -18,9 +14,9 @@ on: jobs: dgraph-integration2-tests: if: github.event.pull_request.draft == false - runs-on: ubuntu-20.04 + runs-on: warp-ubuntu-latest-x64-4x steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: fetch-depth: 0 - name: Get Go Version @@ -29,7 +25,7 @@ jobs: GOVERSION=$({ [ -f .go-version ] && cat .go-version; }) echo "GOVERSION=$GOVERSION" >> $GITHUB_ENV - name: Set up Go - uses: actions/setup-go@v3 + uses: actions/setup-go@v5 with: go-version: ${{ env.GOVERSION }} - name: Make Linux Build and Docker Image diff --git a/.github/workflows/ci-dgraph-ldbc-tests.yml b/.github/workflows/ci-dgraph-ldbc-tests.yml index 272abf72e73..67bcbebb417 100644 --- a/.github/workflows/ci-dgraph-ldbc-tests.yml +++ b/.github/workflows/ci-dgraph-ldbc-tests.yml @@ -1,6 +1,6 @@ name: ci-dgraph-ldbc-tests on: - push: + pull_request: paths-ignore: - '.github/CODEOWNERS' - '.vscode/**' @@ -19,10 +19,6 @@ on: - '**/**.jpg' - '**/**.gif' - '**/**.ini' - branches: - - main - - 'release/**' - pull_request: types: - opened - reopened @@ -36,21 +32,21 @@ on: jobs: dgraph-ldbc-tests: if: github.event.pull_request.draft == false - runs-on: ubuntu-20.04 + runs-on: warp-ubuntu-latest-x64-4x steps: - name: Checkout Dgraph - uses: actions/checkout@v3 + 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@v3 + uses: actions/setup-go@v5 with: go-version: ${{ env.GOVERSION }} - name: Set up Node - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version: 16 - name: Install protobuf-compiler diff --git a/.github/workflows/ci-dgraph-load-tests.yml b/.github/workflows/ci-dgraph-load-tests.yml index ac3d7e0e25c..f12e5d243c1 100644 --- a/.github/workflows/ci-dgraph-load-tests.yml +++ b/.github/workflows/ci-dgraph-load-tests.yml @@ -36,20 +36,20 @@ on: jobs: dgraph-load-tests: if: github.event.pull_request.draft == false - runs-on: [self-hosted, x64] + runs-on: warp-ubuntu-latest-x64-16x steps: - - uses: actions/checkout@v3 + - 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@v3 + uses: actions/setup-go@v5 with: go-version: ${{ env.GOVERSION }} - name: Set up Node - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version: 16 - name: Install protobuf-compiler diff --git a/.github/workflows/ci-dgraph-oss-build.yml b/.github/workflows/ci-dgraph-oss-build.yml index e6f0d512553..f6deb2a37b3 100644 --- a/.github/workflows/ci-dgraph-oss-build.yml +++ b/.github/workflows/ci-dgraph-oss-build.yml @@ -1,6 +1,6 @@ name: ci-dgraph-oss-build on: - push: + pull_request: paths-ignore: - '.github/CODEOWNERS' - '.vscode/**' @@ -19,10 +19,6 @@ on: - '**/**.jpg' - '**/**.gif' - '**/**.ini' - branches: - - main - - 'release/**' - pull_request: types: - opened - reopened @@ -36,16 +32,16 @@ on: jobs: dgraph-oss-build: if: github.event.pull_request.draft == false - runs-on: ubuntu-20.04 + runs-on: warp-ubuntu-latest-x64-4x steps: - - uses: actions/checkout@v3 + - 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@v3 + uses: actions/setup-go@v5 with: go-version: ${{ env.GOVERSION }} - name: Make OSS Linux Build diff --git a/.github/workflows/ci-dgraph-tests-arm64.yml b/.github/workflows/ci-dgraph-tests-arm64.yml index 7dc0ae2dd0e..8d96b388b84 100644 --- a/.github/workflows/ci-dgraph-tests-arm64.yml +++ b/.github/workflows/ci-dgraph-tests-arm64.yml @@ -1,24 +1,29 @@ name: ci-dgraph-tests-arm64 on: - push: + pull_request: paths-ignore: - - '.github/CODEOWNERS' - - '.vscode/**' - - 'compose/**' - - 'contrib/systemd/**' - - 'licenses/**' - - 'paper/**' - - 'present/**' - - 'RFC/**' - - 'static/**' - - 'wiki/**' - - '**/**.dockerignore' - - '**/**.gitignore' - - '**/**.md' - - '**/**.png' - - '**/**.jpg' - - '**/**.gif' - - '**/**.ini' + - '.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/**' @@ -33,23 +38,25 @@ on: - 'release/**' schedule: - cron: "1 0,6,12,18 * * *" + - main + - 'release/**' jobs: dgraph-tests: if: github.event.pull_request.draft == false - runs-on: [self-hosted, ARM64] + runs-on: warp-ubuntu-latest-arm64-16x steps: - - uses: actions/checkout@v3 + - 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@v3 + uses: actions/setup-go@v5 with: go-version: ${{ env.GOVERSION }} - name: Set up Node - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version: 16 - name: Install protobuf-compiler diff --git a/.github/workflows/ci-dgraph-tests.yml b/.github/workflows/ci-dgraph-tests.yml index d4b455b56ae..dd51651a16c 100644 --- a/.github/workflows/ci-dgraph-tests.yml +++ b/.github/workflows/ci-dgraph-tests.yml @@ -32,24 +32,24 @@ on: - main - 'release/**' schedule: - - cron: "1 0,6,12,18 * * *" + - cron: "0 0 * * *" # 1 run per day jobs: dgraph-tests: if: github.event.pull_request.draft == false - runs-on: [self-hosted, x64] + runs-on: warp-ubuntu-latest-x64-16x steps: - - uses: actions/checkout@v3 + - 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@v3 + uses: actions/setup-go@v5 with: go-version: ${{ env.GOVERSION }} - name: Set up Node - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version: 16 - name: Install protobuf-compiler diff --git a/.github/workflows/ci-dgraph-upgrade-fixed-versions-tests.yml b/.github/workflows/ci-dgraph-upgrade-fixed-versions-tests.yml index fe4b30d1cd2..5e05c4bf14a 100644 --- a/.github/workflows/ci-dgraph-upgrade-fixed-versions-tests.yml +++ b/.github/workflows/ci-dgraph-upgrade-fixed-versions-tests.yml @@ -4,10 +4,10 @@ on: - cron: "1 */12 * * *" # every 12hrs jobs: dgraph-upgrade-fixed-versions-tests: - runs-on: [self-hosted, x64] + runs-on: warp-ubuntu-latest-x64-16x timeout-minutes: 720 steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: fetch-depth: 0 - name: Get Go Version @@ -16,7 +16,7 @@ jobs: GOVERSION=$({ [ -f .go-version ] && cat .go-version; }) echo "GOVERSION=$GOVERSION" >> $GITHUB_ENV - name: Set up Go - uses: actions/setup-go@v3 + uses: actions/setup-go@v5 with: go-version: ${{ env.GOVERSION }} - name: Make Linux Build and Docker Image diff --git a/.github/workflows/ci-dgraph-upgrade-tests.yml b/.github/workflows/ci-dgraph-upgrade-tests.yml index 7975814c8d1..6666c640274 100644 --- a/.github/workflows/ci-dgraph-upgrade-tests.yml +++ b/.github/workflows/ci-dgraph-upgrade-tests.yml @@ -1,9 +1,5 @@ name: ci-dgraph-upgrade-tests on: - push: - branches: - - main - - 'release/**' pull_request: types: - opened @@ -18,9 +14,9 @@ on: jobs: dgraph-upgrade-tests: if: github.event.pull_request.draft == false - runs-on: [self-hosted, x64] + runs-on: warp-ubuntu-latest-x64-16x steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: fetch-depth: 0 - name: Get Go Version @@ -29,7 +25,7 @@ jobs: GOVERSION=$({ [ -f .go-version ] && cat .go-version; }) echo "GOVERSION=$GOVERSION" >> $GITHUB_ENV - name: Set up Go - uses: actions/setup-go@v3 + uses: actions/setup-go@v5 with: go-version: ${{ env.GOVERSION }} - name: Make Linux Build and Docker Image diff --git a/.github/workflows/ci-golang-lint.yml b/.github/workflows/ci-golang-lint.yml index 4f30b8abacb..c5bdf0009ed 100644 --- a/.github/workflows/ci-golang-lint.yml +++ b/.github/workflows/ci-golang-lint.yml @@ -37,25 +37,24 @@ jobs: golang-lint: if: github.event.pull_request.draft == false name: lint - runs-on: ubuntu-20.04 + runs-on: warp-ubuntu-latest-x64-4x steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Get Go Version run: | #!/bin/bash GOVERSION=$({ [ -f .go-version ] && cat .go-version; }) echo "GOVERSION=$GOVERSION" >> $GITHUB_ENV - name: Setup Go - uses: actions/setup-go@v3 + uses: actions/setup-go@v5 with: go-version: ${{ env.GOVERSION }} - name: golang-lint - env: - # prevent OOM - GOGC: 10 - uses: golangci/golangci-lint-action@v3 + uses: golangci/golangci-lint-action@v4 with: # Required: the version of golangci-lint is required and must be specified without patch version: we always use the latest patch version. version: latest only-new-issues: true args: --timeout=10m + skip-pkg-cache: true + skip-build-cache: true diff --git a/contrib/Dockerfile b/contrib/Dockerfile index 9a43d60cc06..08dd77f9f17 100644 --- a/contrib/Dockerfile +++ b/contrib/Dockerfile @@ -4,7 +4,7 @@ # This gets built as part of release.sh. Must be run from /tmp/build, with the linux binaries # already built and placed there. -FROM ubuntu:20.04 +FROM ubuntu:22.04 LABEL maintainer="Dgraph Labs " # need to remove the cache of sources lists