diff --git a/.config/typos.toml b/.config/typos.toml index 19725ffc382..90205d459a0 100644 --- a/.config/typos.toml +++ b/.config/typos.toml @@ -31,6 +31,8 @@ Hashi = "Hashi" # HashiCorp, which the checker splits before Corp dbe = "dbe" cmo = "cmo" CMO = "CMO" +Pn = "Pn" +pn = "pn" [default] extend-ignore-re = [ diff --git a/.github/workflows/auto-author-assign.yml b/.github/workflows/auto-author-assign.yml index 21f40cb23dd..f79820c9bba 100644 --- a/.github/workflows/auto-author-assign.yml +++ b/.github/workflows/auto-author-assign.yml @@ -13,6 +13,6 @@ concurrency: jobs: assign-author: - runs-on: ubuntu-latest + runs-on: [self-hosted, godesk] steps: - uses: toshimaru/auto-author-assign@4d585cc37690897bd9015942ed6e766aa7cdb97f # v3.0.1 diff --git a/.github/workflows/benchmark-on-demand.yml b/.github/workflows/benchmark-on-demand.yml index 2be4bb80b14..9a5f959b214 100644 --- a/.github/workflows/benchmark-on-demand.yml +++ b/.github/workflows/benchmark-on-demand.yml @@ -49,7 +49,7 @@ concurrency: jobs: resolve-pr: if: github.repository == 'valkey-io/valkey' - runs-on: ubuntu-latest + runs-on: [self-hosted, godesk] # Read-only access to the PR is enough to call pulls.get. permissions: contents: read diff --git a/.github/workflows/benchmark-release.yml b/.github/workflows/benchmark-release.yml index c939345309c..8c9bbc716b7 100644 --- a/.github/workflows/benchmark-release.yml +++ b/.github/workflows/benchmark-release.yml @@ -32,8 +32,7 @@ permissions: concurrency: group: benchmark-release-${{ inputs.version1 }}-${{ inputs.version2 }} - cancel-in-progress: true - + cancel-in-progress: ${{ !startsWith(github.ref, 'refs/tags/') }} jobs: benchmark: if: github.repository == 'valkey-io/valkey' @@ -238,7 +237,7 @@ jobs: combine-results: needs: benchmark - runs-on: ubuntu-latest + runs-on: [self-hosted, godesk] steps: - name: Download all artifacts uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7.0.0 diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4c7d588ba79..8d003b72631 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -21,7 +21,7 @@ permissions: jobs: validate-commands-def: - runs-on: ubuntu-latest + runs-on: [self-hosted, godesk] steps: - name: Checkout Valkey uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -32,7 +32,7 @@ jobs: git ls-files --error-unmatch src/commands.def > /dev/null test-ubuntu-latest: - runs-on: ubuntu-latest + runs-on: [self-hosted, godesk] steps: - name: Install libbacktrace uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -60,7 +60,7 @@ jobs: make test-unit test-ubuntu-latest-compatibility: - runs-on: ubuntu-latest + runs-on: [self-hosted, godesk] strategy: fail-fast: false matrix: @@ -105,7 +105,7 @@ jobs: --other-server-path tests/tmp/valkey-${{ matrix.server.version }}-noble-x86_64/bin/valkey-server test-ubuntu-latest-cmake-tls: - runs-on: ubuntu-latest + runs-on: [self-hosted, godesk] steps: - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - name: cmake and make @@ -124,7 +124,7 @@ jobs: run: make -C build-release test-unit test-sanitizer-address: - runs-on: ubuntu-latest + runs-on: [self-hosted, godesk] steps: - name: Install libbacktrace uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -151,7 +151,7 @@ jobs: make test-unit test-rdma: - runs-on: ubuntu-latest + runs-on: [self-hosted, godesk] steps: - name: Install libbacktrace uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -185,7 +185,7 @@ jobs: run: sudo dmesg -c test-tls-only: - runs-on: ubuntu-latest + runs-on: [self-hosted, godesk] steps: - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - name: generate-test-certificates @@ -204,7 +204,7 @@ jobs: run: ./runtest --verbose --single unit/tls --dump-logs --tls build-debian-old: - runs-on: ubuntu-latest + runs-on: [self-hosted, godesk] container: debian:bookworm steps: - name: Install libbacktrace @@ -254,7 +254,7 @@ jobs: make test-unit build-32bit: - runs-on: ubuntu-latest + runs-on: [self-hosted, godesk] steps: - name: Install libbacktrace uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -306,7 +306,7 @@ jobs: GTEST_LIBS="/usr/lib32/libgtest.a /usr/lib32/libgmock.a" build-libc-malloc: - runs-on: ubuntu-latest + runs-on: [self-hosted, godesk] steps: - name: Install libbacktrace uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -321,7 +321,7 @@ jobs: run: make -j4 SERVER_CFLAGS='-Werror' MALLOC=libc USE_LIBBACKTRACE=yes build-almalinux8-jemalloc: - runs-on: ubuntu-latest + runs-on: [self-hosted, godesk] container: almalinux:8 steps: - name: Install libbacktrace @@ -340,7 +340,7 @@ jobs: run: make -j4 SERVER_CFLAGS='-Werror' USE_LIBBACKTRACE=yes format-yaml: - runs-on: ubuntu-latest + runs-on: [self-hosted, godesk] steps: - name: Checkout code uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 diff --git a/.github/workflows/clang-format.yml b/.github/workflows/clang-format.yml index 3a186418043..04c52c9bb1a 100644 --- a/.github/workflows/clang-format.yml +++ b/.github/workflows/clang-format.yml @@ -21,20 +21,27 @@ concurrency: jobs: clang-format-check: - runs-on: ubuntu-latest - + runs-on: [self-hosted, godesk] steps: - name: Checkout code uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - name: Set up Clang run: | + set -euo pipefail sudo apt-get update -y - sudo apt-get install software-properties-common -y - wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | gpg --dearmor | sudo tee /usr/share/keyrings/llvm-toolchain.gpg > /dev/null - echo "deb [signed-by=/usr/share/keyrings/llvm-toolchain.gpg] http://apt.llvm.org/$(lsb_release -cs)/ llvm-toolchain-$(lsb_release -cs)-18 main" | sudo tee /etc/apt/sources.list.d/llvm.list - sudo apt-get update -y - sudo apt-get install clang-format-18 -y + # Debian 13 has no software-properties-common. Prefer the distro + # clang-format; fall back to apt.llvm.org for clang-format-18. + if apt-cache show clang-format-18 >/dev/null 2>&1; then + sudo apt-get install -y clang-format-18 + else + sudo apt-get install -y wget gnupg lsb-release + wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | gpg --dearmor | sudo tee /usr/share/keyrings/llvm-toolchain.gpg > /dev/null + echo "deb [signed-by=/usr/share/keyrings/llvm-toolchain.gpg] http://apt.llvm.org/$(lsb_release -cs)/ llvm-toolchain-$(lsb_release -cs)-18 main" | sudo tee /etc/apt/sources.list.d/llvm.list + sudo apt-get update -y + sudo apt-get install -y clang-format-18 + fi + clang-format-18 --version - name: Run clang-format id: clang-format run: | diff --git a/.github/workflows/cmo-ci.yml b/.github/workflows/cmo-ci.yml index d7de7888333..51ad1d7ea10 100644 --- a/.github/workflows/cmo-ci.yml +++ b/.github/workflows/cmo-ci.yml @@ -14,12 +14,16 @@ permissions: jobs: server: name: Build and test subset - runs-on: ubuntu-latest + runs-on: [self-hosted, godesk] timeout-minutes: 40 steps: - name: Checkout uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 + - uses: actions/setup-go@v5 + with: + go-version: "1.25.x" + - name: Install build and test packages run: | sudo apt-get update @@ -50,7 +54,7 @@ jobs: image: name: Docker image and smoke - runs-on: ubuntu-latest + runs-on: [self-hosted, godesk] timeout-minutes: 45 steps: - name: Checkout @@ -165,7 +169,7 @@ jobs: autocrlf: name: Image build with autocrlf - runs-on: ubuntu-latest + runs-on: [self-hosted, godesk] timeout-minutes: 30 steps: - name: Checkout @@ -207,7 +211,7 @@ jobs: package: name: Debian package smoke - runs-on: ubuntu-latest + runs-on: [self-hosted, godesk] timeout-minutes: 40 steps: - name: Checkout @@ -244,7 +248,7 @@ jobs: k8s: name: Helm lint and kind smoke - runs-on: ubuntu-latest + runs-on: [self-hosted, godesk] timeout-minutes: 40 steps: - name: Checkout @@ -363,12 +367,43 @@ jobs: site: name: Site, integration, and browser - runs-on: ubuntu-latest + runs-on: [self-hosted, godesk] timeout-minutes: 20 steps: - name: Checkout uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 + - name: Set up Python 3.12 + env: + PYTHON_VERSION: "3.12" + run: | + set -euo pipefail + export PATH="/usr/local/bin:$HOME/.local/bin:$PATH" + echo "/usr/local/bin" >> "$GITHUB_PATH" + echo "$HOME/.local/bin" >> "$GITHUB_PATH" + if ! command -v uv >/dev/null 2>&1; then + curl -LsSf https://astral.sh/uv/install.sh | sh + export PATH="$HOME/.local/bin:$PATH" + fi + PY="" + if [ -x "/usr/local/bin/python${PYTHON_VERSION}" ]; then + PY="/usr/local/bin/python${PYTHON_VERSION}" + elif command -v "python${PYTHON_VERSION}" >/dev/null 2>&1; then + PY="$(command -v "python${PYTHON_VERSION}")" + else + uv python install "$PYTHON_VERSION" + PY="$(uv python find "$PYTHON_VERSION")" + fi + VENV="$RUNNER_TEMP/python" + uv venv --seed --python "$PY" "$VENV" + echo "$VENV/bin" >> "$GITHUB_PATH" + "$VENV/bin/python" --version + "$VENV/bin/python" -m pip install --upgrade pip + + - uses: actions/setup-node@v4 + with: + node-version: "22" + - name: Unit tests for the site and the management API run: | python3 tools/mgmt/test_cmo_mgmt.py @@ -381,7 +416,7 @@ jobs: working-directory: site/e2e run: | npm ci - npx playwright install --with-deps chromium + npx playwright install chromium - name: Browser tests working-directory: site/e2e diff --git a/.github/workflows/codecov.yml b/.github/workflows/codecov.yml index 34e48612e82..db85a696565 100644 --- a/.github/workflows/codecov.yml +++ b/.github/workflows/codecov.yml @@ -23,8 +23,7 @@ concurrency: jobs: code-coverage: - runs-on: ubuntu-22.04 - + runs-on: [self-hosted, godesk] steps: - name: Install libbacktrace uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 93237d491ed..4151255b5f1 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -25,6 +25,8 @@ permissions: jobs: analyze: name: Analyze + # cpp autobuild OOMed the 8 GiB runner once and then failed cmake + # autobuild under the 5G heavy slice. Keep this job on GitHub-hosted. runs-on: ubuntu-latest if: github.event_name != 'schedule' || github.repository == 'valkey-io/valkey' permissions: @@ -44,8 +46,11 @@ jobs: with: languages: ${{ matrix.language }} - - name: Autobuild - uses: github/codeql-action/autobuild@c793b717bc78562f491db7b0e93a3a178b099162 # v4.32.5 + # cmake autobuild fails with "server.h: No such file or directory" + # (src/tier/tier.h) on both the self-hosted runner and ubuntu-latest, + # and is already red on unstable. The project is built with make. + - name: Build + run: make -j"$(nproc)" - name: Perform CodeQL Analysis uses: github/codeql-action/analyze@c793b717bc78562f491db7b0e93a3a178b099162 # v4.32.5 diff --git a/.github/workflows/coverity.yml b/.github/workflows/coverity.yml index 83352a740a1..4c7bbd9ee9f 100644 --- a/.github/workflows/coverity.yml +++ b/.github/workflows/coverity.yml @@ -17,7 +17,7 @@ permissions: jobs: coverity: if: github.repository == 'valkey-io/valkey' - runs-on: ubuntu-latest + runs-on: [self-hosted, godesk] steps: - name: Install libbacktrace uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 diff --git a/.github/workflows/daily.yml b/.github/workflows/daily.yml index f9f9598e82d..721420a8a68 100644 --- a/.github/workflows/daily.yml +++ b/.github/workflows/daily.yml @@ -80,7 +80,7 @@ permissions: pull-requests: read jobs: test-ubuntu-jemalloc: - runs-on: ubuntu-latest + runs-on: [self-hosted, godesk] # pull_request gate breakdown: # 1) (base != unstable) OR PR currently has run-extra-tests. # 2) Exclude all labeled events, except unstable + newly added run-extra-tests. @@ -235,7 +235,7 @@ jobs: with: job-name: ${{ github.job }} test-s390x: - runs-on: ubuntu-latest + runs-on: [self-hosted, godesk] if: | (github.event_name == 'workflow_call' || github.event_name == 'workflow_dispatch' || (github.event_name == 'schedule' && github.repository == 'valkey-io/valkey') || @@ -276,7 +276,7 @@ jobs: exit 1 fi test-ubuntu-jemalloc-fortify: - runs-on: ubuntu-latest + runs-on: [self-hosted, godesk] if: | (github.event_name == 'workflow_call' || github.event_name == 'workflow_dispatch' || (github.event_name == 'schedule' && github.repository == 'valkey-io/valkey') || @@ -343,7 +343,7 @@ jobs: with: job-name: ${{ github.job }} test-ubuntu-libc-malloc: - runs-on: ubuntu-latest + runs-on: [self-hosted, godesk] if: | (github.event_name == 'workflow_call' || github.event_name == 'workflow_dispatch' || (github.event_name == 'schedule' && github.repository == 'valkey-io/valkey') || @@ -395,7 +395,7 @@ jobs: with: job-name: ${{ github.job }} test-ubuntu-no-malloc-usable-size: - runs-on: ubuntu-latest + runs-on: [self-hosted, godesk] if: | (github.event_name == 'workflow_call' || github.event_name == 'workflow_dispatch' || (github.event_name == 'schedule' && github.repository == 'valkey-io/valkey') || @@ -447,7 +447,7 @@ jobs: with: job-name: ${{ github.job }} test-ubuntu-32bit: - runs-on: ubuntu-latest + runs-on: [self-hosted, godesk] if: | (github.event_name == 'workflow_call' || github.event_name == 'workflow_dispatch' || (github.event_name == 'schedule' && github.repository == 'valkey-io/valkey') || @@ -532,7 +532,7 @@ jobs: with: job-name: ${{ github.job }} test-ubuntu-tls: - runs-on: ubuntu-latest + runs-on: [self-hosted, godesk] if: | (github.event_name == 'workflow_call' || github.event_name == 'workflow_dispatch' || (github.event_name == 'schedule' && github.repository == 'valkey-io/valkey') || @@ -591,7 +591,7 @@ jobs: with: job-name: ${{ github.job }} test-ubuntu-tls-no-tls: - runs-on: ubuntu-latest + runs-on: [self-hosted, godesk] if: | (github.event_name == 'workflow_call' || github.event_name == 'workflow_dispatch' || (github.event_name == 'schedule' && github.repository == 'valkey-io/valkey') || @@ -648,7 +648,7 @@ jobs: with: job-name: ${{ github.job }} test-ubuntu-io-threads: - runs-on: ubuntu-latest + runs-on: [self-hosted, godesk] if: | (github.event_name == 'workflow_call' || github.event_name == 'workflow_dispatch' || (github.event_name == 'schedule' && github.repository == 'valkey-io/valkey') || @@ -694,7 +694,7 @@ jobs: with: job-name: ${{ github.job }} test-ubuntu-tls-io-threads: - runs-on: ubuntu-latest + runs-on: [self-hosted, godesk] if: | (github.event_name == 'workflow_call' || github.event_name == 'workflow_dispatch' || (github.event_name == 'schedule' && github.repository == 'valkey-io/valkey') || @@ -745,7 +745,7 @@ jobs: with: job-name: ${{ github.job }} test-ubuntu-reclaim-cache: - runs-on: ubuntu-latest + runs-on: [self-hosted, godesk] if: | (github.event_name == 'workflow_call' || github.event_name == 'workflow_dispatch' || (github.event_name == 'schedule' && github.repository == 'valkey-io/valkey') || @@ -835,7 +835,7 @@ jobs: if [ "$(( $CACHE-$CACHE0 ))" -gt "8000000" ]; then exit 1; fi test-valgrind-test: name: test-valgrind-test (${{ matrix.shard }}) - runs-on: ubuntu-latest + runs-on: [self-hosted, godesk] if: | (github.event_name == 'workflow_call' || github.event_name == 'workflow_dispatch' || (github.event_name == 'schedule' && github.repository == 'valkey-io/valkey') || @@ -894,7 +894,7 @@ jobs: with: job-name: ${{ github.job }}-${{ matrix.shard }} test-valgrind-misc: - runs-on: ubuntu-latest + runs-on: [self-hosted, godesk] if: | (github.event_name == 'workflow_call' || github.event_name == 'workflow_dispatch' || (github.event_name == 'schedule' && github.repository == 'valkey-io/valkey') || @@ -950,7 +950,7 @@ jobs: job-name: ${{ github.job }} test-valgrind-no-malloc-usable-size-test: name: test-valgrind-no-malloc-usable-size-test (${{ matrix.shard }}) - runs-on: ubuntu-latest + runs-on: [self-hosted, godesk] if: | (github.event_name == 'workflow_call' || github.event_name == 'workflow_dispatch' || (github.event_name == 'schedule' && github.repository == 'valkey-io/valkey') || @@ -1007,7 +1007,7 @@ jobs: with: job-name: ${{ github.job }}-${{ matrix.shard }} test-valgrind-no-malloc-usable-size-misc: - runs-on: ubuntu-latest + runs-on: [self-hosted, godesk] if: | (github.event_name == 'workflow_call' || github.event_name == 'workflow_dispatch' || (github.event_name == 'schedule' && github.repository == 'valkey-io/valkey') || @@ -1062,7 +1062,7 @@ jobs: with: job-name: ${{ github.job }} test-sanitizer-address: - runs-on: ubuntu-latest + runs-on: [self-hosted, godesk] if: | (github.event_name == 'workflow_call' || github.event_name == 'workflow_dispatch' || (github.event_name == 'schedule' && github.repository == 'valkey-io/valkey') || @@ -1135,7 +1135,7 @@ jobs: # GitHub-hosted runners for public repos provide 16GB (ubuntu-latest). # These tests are borderline - monitoring memory usage to determine if they can run reliably. test-sanitizer-address-large-memory: - runs-on: ubuntu-latest + runs-on: [self-hosted, godesk] if: | (github.event_name == 'workflow_call' || github.event_name == 'workflow_dispatch' || (github.event_name == 'schedule' && github.repository == 'valkey-io/valkey') || @@ -1217,7 +1217,7 @@ jobs: with: job-name: ${{ github.job }}-${{ matrix.compiler }} test-sanitizer-undefined: - runs-on: ubuntu-latest + runs-on: [self-hosted, godesk] if: | (github.event_name == 'workflow_call' || github.event_name == 'workflow_dispatch' || (github.event_name == 'schedule' && github.repository == 'valkey-io/valkey') || @@ -1290,7 +1290,7 @@ jobs: # GitHub-hosted runners for public repos provide 16GB (ubuntu-latest). # These tests are borderline - monitoring memory usage to determine if they can run reliably. test-sanitizer-undefined-large-memory: - runs-on: ubuntu-latest + runs-on: [self-hosted, godesk] if: | (github.event_name == 'workflow_call' || github.event_name == 'workflow_dispatch' || (github.event_name == 'schedule' && github.repository == 'valkey-io/valkey') || @@ -1372,7 +1372,7 @@ jobs: with: job-name: ${{ github.job }}-${{ matrix.compiler }} test-sanitizer-force-defrag: - runs-on: ubuntu-latest + runs-on: [self-hosted, godesk] if: | (github.event_name == 'workflow_call' || github.event_name == 'workflow_dispatch' || (github.event_name == 'schedule' && github.repository == 'valkey-io/valkey') || @@ -1438,7 +1438,7 @@ jobs: with: job-name: ${{ github.job }} test-ubuntu-lttng: - runs-on: ubuntu-latest + runs-on: [self-hosted, godesk] if: | (github.event_name == 'workflow_call' || github.event_name == 'workflow_dispatch' || (github.event_name == 'schedule' && github.repository == 'valkey-io/valkey') || @@ -1521,7 +1521,7 @@ jobs: - name: test-fedorarawhide-jemalloc container: fedora:rawhide name: ${{ matrix.name }} - runs-on: ubuntu-latest + runs-on: [self-hosted, godesk] container: ${{ matrix.container }} timeout-minutes: 1440 steps: @@ -1598,7 +1598,7 @@ jobs: - name: test-fedorarawhide-tls-module container: fedora:rawhide name: ${{ matrix.name }} - runs-on: ubuntu-latest + runs-on: [self-hosted, godesk] container: ${{ matrix.container }} timeout-minutes: 1440 steps: @@ -1675,7 +1675,7 @@ jobs: - name: test-fedorarawhide-tls-module-no-tls container: fedora:rawhide name: ${{ matrix.name }} - runs-on: ubuntu-latest + runs-on: [self-hosted, godesk] container: ${{ matrix.container }} timeout-minutes: 1440 steps: @@ -1899,7 +1899,7 @@ jobs: - name: make run: make SERVER_CFLAGS='-Werror' USE_LIBBACKTRACE=yes test-freebsd: - runs-on: ubuntu-latest + runs-on: [self-hosted, godesk] if: | (github.event_name == 'workflow_call' || github.event_name == 'workflow_dispatch' || (github.event_name == 'schedule' && github.repository == 'valkey-io/valkey') || @@ -1938,7 +1938,7 @@ jobs: with: job-name: ${{ github.job }} test-alpine-jemalloc: - runs-on: ubuntu-latest + runs-on: [self-hosted, godesk] if: | (github.event_name == 'workflow_call' || github.event_name == 'workflow_dispatch' || (github.event_name == 'schedule' && github.repository == 'valkey-io/valkey') || @@ -1993,7 +1993,7 @@ jobs: with: job-name: ${{ github.job }} test-alpine-libc-malloc: - runs-on: ubuntu-latest + runs-on: [self-hosted, godesk] if: | (github.event_name == 'workflow_call' || github.event_name == 'workflow_dispatch' || (github.event_name == 'schedule' && github.repository == 'valkey-io/valkey') || @@ -2048,7 +2048,7 @@ jobs: with: job-name: ${{ github.job }} test-alpine-32bit: - runs-on: ubuntu-latest + runs-on: [self-hosted, godesk] if: | (github.event_name == 'workflow_call' || github.event_name == 'workflow_dispatch' || (github.event_name == 'schedule' && github.repository == 'valkey-io/valkey') || @@ -2129,7 +2129,7 @@ jobs: job-name: ${{ github.job }} reply-schemas-validator: - runs-on: ubuntu-latest + runs-on: [self-hosted, godesk] timeout-minutes: 1440 if: | (github.event_name == 'workflow_call' || github.event_name == 'workflow_dispatch' || @@ -2187,7 +2187,7 @@ jobs: with: job-name: ${{ github.job }} consolidate-test-failures: - runs-on: ubuntu-latest + runs-on: [self-hosted, godesk] if: | always() && (github.event_name == 'workflow_dispatch' || @@ -2375,7 +2375,7 @@ jobs: exit 1 fi notify-about-job-results: - runs-on: ubuntu-latest + runs-on: [self-hosted, godesk] if: always() && github.event_name == 'schedule' && github.repository == 'valkey-io/valkey' needs: - test-ubuntu-jemalloc diff --git a/.github/workflows/external.yml b/.github/workflows/external.yml index 0c67b75715e..4d331580999 100644 --- a/.github/workflows/external.yml +++ b/.github/workflows/external.yml @@ -23,7 +23,7 @@ permissions: jobs: test-external-standalone: - runs-on: ubuntu-latest + runs-on: [self-hosted, godesk] if: github.event_name != 'schedule' || github.repository == 'valkey-io/valkey' timeout-minutes: 1440 steps: @@ -56,7 +56,7 @@ jobs: path: external-server.log test-external-cluster: - runs-on: ubuntu-latest + runs-on: [self-hosted, godesk] if: github.event_name != 'schedule' || github.repository == 'valkey-io/valkey' timeout-minutes: 1440 steps: @@ -100,7 +100,7 @@ jobs: path: external-server.log test-external-nodebug: - runs-on: ubuntu-latest + runs-on: [self-hosted, godesk] if: github.event_name != 'schedule' || github.repository == 'valkey-io/valkey' timeout-minutes: 1440 steps: diff --git a/.github/workflows/major-decision-auto-approve.yml b/.github/workflows/major-decision-auto-approve.yml index 7802ebf938b..f3bba829cdf 100644 --- a/.github/workflows/major-decision-auto-approve.yml +++ b/.github/workflows/major-decision-auto-approve.yml @@ -16,7 +16,7 @@ concurrency: jobs: approve: if: github.repository == 'valkey-io/valkey' - runs-on: ubuntu-latest + runs-on: [self-hosted, godesk] timeout-minutes: 10 steps: - name: Approve major decisions pending for two weeks diff --git a/.github/workflows/provenance-check.yml b/.github/workflows/provenance-check.yml index 6139fe33a34..4b907644f36 100644 --- a/.github/workflows/provenance-check.yml +++ b/.github/workflows/provenance-check.yml @@ -16,7 +16,7 @@ concurrency: jobs: check: if: github.event.pull_request.base.repo.full_name == 'valkey-io/valkey' - runs-on: ubuntu-latest + runs-on: [self-hosted, godesk] steps: - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 with: diff --git a/.github/workflows/provenance-refresh.yml b/.github/workflows/provenance-refresh.yml index fa1c3ac5d28..f4517d55c62 100644 --- a/.github/workflows/provenance-refresh.yml +++ b/.github/workflows/provenance-refresh.yml @@ -15,7 +15,7 @@ concurrency: jobs: refresh: if: github.repository == 'valkey-io/valkey' - runs-on: ubuntu-latest + runs-on: [self-hosted, godesk] steps: - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 with: diff --git a/.github/workflows/reply-schemas-linter.yml b/.github/workflows/reply-schemas-linter.yml index 654d42b6f0f..819dfb93911 100644 --- a/.github/workflows/reply-schemas-linter.yml +++ b/.github/workflows/reply-schemas-linter.yml @@ -17,7 +17,7 @@ permissions: jobs: reply-schemas-linter: - runs-on: ubuntu-latest + runs-on: [self-hosted, godesk] steps: - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - name: Setup nodejs diff --git a/.github/workflows/reuse.yml b/.github/workflows/reuse.yml index ae4d11a92bc..1bac89d274a 100644 --- a/.github/workflows/reuse.yml +++ b/.github/workflows/reuse.yml @@ -19,7 +19,7 @@ concurrency: jobs: reuse: - runs-on: ubuntu-latest + runs-on: [self-hosted, godesk] steps: - name: Checkout code uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 diff --git a/.github/workflows/scorecard.yml b/.github/workflows/scorecard.yml index 33e9d831dbf..d15a7ea8262 100644 --- a/.github/workflows/scorecard.yml +++ b/.github/workflows/scorecard.yml @@ -14,7 +14,7 @@ concurrency: jobs: analysis: name: Scorecard analysis - runs-on: ubuntu-latest + runs-on: [self-hosted, godesk] permissions: security-events: write id-token: write diff --git a/.github/workflows/spell-check.yml b/.github/workflows/spell-check.yml index 89fb496cc4c..1ac253bf8c0 100644 --- a/.github/workflows/spell-check.yml +++ b/.github/workflows/spell-check.yml @@ -19,8 +19,7 @@ permissions: jobs: build: name: Spellcheck - runs-on: ubuntu-latest - + runs-on: [self-hosted, godesk] steps: - name: Checkout repository uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 diff --git a/.github/workflows/trigger-build-release.yml b/.github/workflows/trigger-build-release.yml index 69bac67b1e4..9b49629713a 100644 --- a/.github/workflows/trigger-build-release.yml +++ b/.github/workflows/trigger-build-release.yml @@ -23,11 +23,10 @@ on: concurrency: group: release-${{ github.event.release.tag_name || inputs.version || github.ref_name }} - cancel-in-progress: true - + cancel-in-progress: ${{ !startsWith(github.ref, 'refs/tags/') }} jobs: trigger: - runs-on: ubuntu-latest + runs-on: [self-hosted, godesk] steps: - name: Determine version and environment id: determine-vars diff --git a/.github/workflows/upstream-sync.yml b/.github/workflows/upstream-sync.yml index 3a2cc8921d5..5250bc5b0c4 100644 --- a/.github/workflows/upstream-sync.yml +++ b/.github/workflows/upstream-sync.yml @@ -17,7 +17,7 @@ permissions: jobs: sync: name: Open upstream sync pull request - runs-on: ubuntu-latest + runs-on: [self-hosted, godesk] timeout-minutes: 20 steps: - name: Checkout diff --git a/.github/workflows/weekly.yml b/.github/workflows/weekly.yml index 77b35212cfe..bbbdc05c9e3 100644 --- a/.github/workflows/weekly.yml +++ b/.github/workflows/weekly.yml @@ -13,7 +13,7 @@ concurrency: jobs: determine-release-branches: if: github.repository == 'valkey-io/valkey' - runs-on: ubuntu-latest + runs-on: [self-hosted, godesk] outputs: branches: ${{ steps.release-branches.outputs.branches }} has-branches: ${{ steps.release-branches.outputs.has-branches }}