From bef2f3e97d9d0b32e86f86490c86ec64c7b5e5e7 Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Tue, 10 Feb 2026 11:14:58 -0800 Subject: [PATCH] Fix RocksDB build compatibility and add manual rocksdb trigger --- .../workflows/container_release_unified.yml | 34 +++++++++++++++++-- go.mod | 2 +- go.sum | 4 +-- 3 files changed, 34 insertions(+), 6 deletions(-) diff --git a/.github/workflows/container_release_unified.yml b/.github/workflows/container_release_unified.yml index 8dedfd26f..dcf30d2f8 100644 --- a/.github/workflows/container_release_unified.yml +++ b/.github/workflows/container_release_unified.yml @@ -4,7 +4,24 @@ on: push: tags: - '*' - workflow_dispatch: {} + workflow_dispatch: + inputs: + variant: + description: 'Variant to build manually' + required: true + type: choice + default: all + options: + - all + - normal + - large_disk + - full + - large_disk_full + - rocksdb + rocksdb_version: + description: 'RocksDB git tag to use when variant=rocksdb' + required: false + default: 'v10.5.1' permissions: contents: read @@ -17,6 +34,10 @@ concurrency: jobs: build: runs-on: ubuntu-latest + if: | + github.event_name != 'workflow_dispatch' || + github.event.inputs.variant == 'all' || + github.event.inputs.variant == matrix.variant strategy: # Build sequentially to avoid rate limits max-parallel: 2 @@ -138,6 +159,7 @@ jobs: ${{ matrix.build_args }} BUILDKIT_INLINE_CACHE=1 BRANCH=${{ github.sha }} + ${{ matrix.variant == 'rocksdb' && format('ROCKSDB_VERSION={0}', github.event.inputs.rocksdb_version || 'v10.5.1') || '' }} - name: Clean up build artifacts if: always() @@ -148,7 +170,13 @@ jobs: copy-to-dockerhub: runs-on: ubuntu-latest needs: [build] - if: github.event_name != 'pull_request' + if: | + github.event_name != 'pull_request' && + ( + github.event_name != 'workflow_dispatch' || + github.event.inputs.variant == 'all' || + github.event.inputs.variant == matrix.variant + ) strategy: matrix: variant: [normal, large_disk, full, large_disk_full, rocksdb] @@ -226,6 +254,7 @@ jobs: helm-release: runs-on: ubuntu-latest needs: [copy-to-dockerhub] + if: github.event_name == 'push' permissions: contents: write pages: write @@ -242,4 +271,3 @@ jobs: - diff --git a/go.mod b/go.mod index 6c4a00cef..a6e6742fe 100644 --- a/go.mod +++ b/go.mod @@ -49,7 +49,7 @@ require ( github.com/klauspost/compress v1.18.3 github.com/klauspost/reedsolomon v1.13.0 github.com/kurin/blazer v0.5.3 - github.com/linxGnu/grocksdb v1.10.7 + github.com/linxGnu/grocksdb v1.10.6 github.com/mailru/easyjson v0.9.1 // indirect github.com/mattn/go-isatty v0.0.20 // indirect github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect diff --git a/go.sum b/go.sum index bd000168f..eaad8cd0a 100644 --- a/go.sum +++ b/go.sum @@ -1530,8 +1530,8 @@ github.com/lib/pq v1.11.1 h1:wuChtj2hfsGmmx3nf1m7xC2XpK6OtelS2shMY+bGMtI= github.com/lib/pq v1.11.1/go.mod h1:/p+8NSbOcwzAEI7wiMXFlgydTwcgTr3OSKMsD2BitpA= github.com/linkedin/goavro/v2 v2.14.1 h1:/8VjDpd38PRsy02JS0jflAu7JZPfJcGTwqWgMkFS2iI= github.com/linkedin/goavro/v2 v2.14.1/go.mod h1:KXx+erlq+RPlGSPmLF7xGo6SAbh8sCQ53x064+ioxhk= -github.com/linxGnu/grocksdb v1.10.7 h1:fCi4qvZWo04VgFwGWmO8HQJgUVounJBy+C2TMVPU/ho= -github.com/linxGnu/grocksdb v1.10.7/go.mod h1:OLQKZwiKwaJiAVCsOzWKvwiLwfZ5Vz8Md5TYR7t7pM8= +github.com/linxGnu/grocksdb v1.10.6 h1:MzwZ8HrDrXyXzMYAE6VxVl+877lv5W6Zs/bm3+M2SM8= +github.com/linxGnu/grocksdb v1.10.6/go.mod h1:OLQKZwiKwaJiAVCsOzWKvwiLwfZ5Vz8Md5TYR7t7pM8= github.com/lithammer/fuzzysearch v1.1.8 h1:/HIuJnjHuXS8bKaiTMeeDlW2/AyIWk2brx1V8LFgLN4= github.com/lithammer/fuzzysearch v1.1.8/go.mod h1:IdqeyBClc3FFqSzYq/MXESsS4S0FsZ5ajtkr5xPLts4= github.com/lithammer/shortuuid/v3 v3.0.7 h1:trX0KTHy4Pbwo/6ia8fscyHoGA+mf1jWbPJVuvyJQQ8=