Compare commits

..
Author SHA1 Message Date
Devin 9d84ecca2f upload -dir: finish every file before reporting a failed upload
A failed batch stopped all remaining batches, and the file-list path
returned before printing results, hiding ids of files that did upload.
Now every file is still attempted, results print for each batch, and
the command fails at the end if any upload failed.
2026-10-21 15:20:40 -07:00
Devin a1d2ebbb9b operation: warm lazy log fds in the file-part leak test 2026-10-21 15:15:01 -07:00
Devin 371d320854 operation: close open file parts when a batch fails to build
Batched -dir uploads now open up to 32 files at once; a mid-batch error
left every earlier handle open until process exit. Close the parts
already built, and close the handle when Stat fails after Open.
2026-10-21 15:14:12 -07:00
Chris LuandDevin 84cc179b80 upload -dir: fetch file ids in batches instead of per file
Directory upload submitted every file through its own SubmitFiles
call, so each file paid a separate serial assign RPC. Files are now
collected during the walk and submitted in batches, sharing one batch
assign and the parallel uploads.

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
2026-10-21 15:10:30 -07:00
Chris LuandDevin c8002d63bb upload: submit batched files concurrently
SubmitFiles fetched all file ids in one assign RPC but then uploaded
the files one after another, so a multi-file upload spent its time in
serial per-file round trips. Uploads now run through a small worker
pool while results keep their input order.

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
2026-10-21 15:10:30 -07:00
1087 changed files with 10496 additions and 99579 deletions

No files matched your search

+1 -2
View File
@@ -20,5 +20,4 @@ ignore-regex = \b[a-z]+[A-Z]\w*\b|\b[A-Z][a-z]+[A-Z]\w*\b
# unknwon: GitHub username / Go module path (`github.com/unknwon/goconfig`) # unknwon: GitHub username / Go module path (`github.com/unknwon/goconfig`)
# atleast: CLI mode literal string in test/benchmark/fuse_db/bin/sqlite_verify.py # atleast: CLI mode literal string in test/benchmark/fuse_db/bin/sqlite_verify.py
# sme: local variable for a *streamMutateError in mount tests # sme: local variable for a *streamMutateError in mount tests
# nin: AWS S3 Vectors "$nin" filter operator literal (API-defined, cannot rename) ignore-words-list = visibles,fo,te,ser,bject,unparseable,keep-alives,tread,anc,ue,auther,thirdparty,unknwon,atleast,sme
ignore-words-list = visibles,fo,te,ser,bject,unparseable,keep-alives,tread,anc,ue,auther,thirdparty,unknwon,atleast,sme,nin
@@ -1,11 +0,0 @@
name: Clean up stale SeaweedFS test mounts
description: Detach disconnected FUSE test mounts left by earlier jobs on a shared runner.
runs:
using: composite
steps:
- name: Unmount disconnected SeaweedFS test mounts
if: runner.os == 'Linux' && runner.environment == 'self-hosted'
shell: bash
env:
CLEANUP_SCRIPT: ${{ github.action_path }}/cleanup.py
run: python3 "$CLEANUP_SCRIPT"
@@ -1,89 +0,0 @@
#!/usr/bin/env python3
"""Detach disconnected SeaweedFS integration-test mounts without touching live ones."""
import errno
import os
from pathlib import Path
import re
import shutil
import subprocess
import sys
import tempfile
def test_mounts(mountinfo):
"""Read the kernel table directly: traversing a stale mount may block."""
roots = {tempfile.gettempdir(), "/tmp", "/var/tmp"}
for line in mountinfo.splitlines():
fields, filesystem = line.split(" - ", 1)
if filesystem.split()[0].split(".")[0] != "fuse":
continue
fields = fields.split()
# mountinfo escapes whitespace and backslashes with octal sequences.
target = re.sub(r"\\([0-7]{3})", lambda m: chr(int(m[1], 8)), fields[4])
path = Path(target)
# Test mounts are a mount* leaf under a seaweedfs_fuse_* scratch dir
# (seaweedfs_fuse_test_*/mount, seaweedfs_fuse_failover_*/mount0, ...)
# or the posix-compliance workflow's fixed /tmp/seaweedfs/mount.
if (not path.name.startswith("mount")
or str(path.parent.parent) not in roots
or not (path.parent.name.startswith("seaweedfs_fuse")
or path.parent.name == "seaweedfs")):
continue
yield fields[0], target
def mounted(mount_id, target):
return (mount_id, target) in test_mounts(Path("/proc/self/mountinfo").read_text())
def cleanup():
failed = False
for mount_id, target in test_mounts(Path("/proc/self/mountinfo").read_text()):
try:
# A separate, bounded probe prevents a wedged FUSE daemon from
# hanging cleanup. Only ENOTCONN proves the daemon disconnected;
# a timeout or another error is not enough to detach a live mount.
probe = subprocess.run(
[sys.executable, __file__, "--probe", target], timeout=5,
capture_output=True, check=False,
)
except subprocess.TimeoutExpired:
print(f"::warning::FUSE probe timed out; leaving {target} mounted")
continue
if probe.returncode != errno.ENOTCONN or not mounted(mount_id, target):
continue
print(f"Unmounting disconnected FUSE test mount: {target}", flush=True)
# Lazy unmount detaches a dead mount even when an old process still
# holds it open. Prefer the unprivileged FUSE helper; sudo is fallback.
for command in (
["fusermount3", "-uz", "--", target],
["fusermount", "-uz", "--", target],
["sudo", "-n", "umount", "-l", "--", target],
):
try:
subprocess.run(command, timeout=10, check=False)
except (OSError, subprocess.TimeoutExpired) as error:
print(f"{command[0]}: {error}", file=sys.stderr)
if not mounted(mount_id, target):
break
else:
print(f"::error::Could not unmount disconnected FUSE test mount: {target}")
failed = True
continue
# The detached mount's parent still holds the crashed run's data and
# logs; test_mounts only yields targets under a SeaweedFS test dir in
# a temp root, so the parent is safe to reclaim here.
shutil.rmtree(Path(target).parent, ignore_errors=True)
return int(failed)
if __name__ == "__main__":
if len(sys.argv) == 3 and sys.argv[1] == "--probe":
try:
os.stat(sys.argv[2])
except OSError as error:
sys.exit(error.errno)
sys.exit(0)
sys.exit(cleanup())
@@ -1,137 +0,0 @@
import errno
import importlib.util
from pathlib import Path
import subprocess
import unittest
from unittest.mock import patch
spec = importlib.util.spec_from_file_location("cleanup", Path(__file__).with_name("cleanup.py"))
cleanup = importlib.util.module_from_spec(spec)
spec.loader.exec_module(cleanup)
TARGET = "/tmp/seaweedfs_fuse_test_123/mount"
MOUNTINFO = f"42 1 0:9 / {TARGET} rw - fuse.seaweedfs seaweedfs rw\n"
class CleanupTests(unittest.TestCase):
def run_cleanup(self, results, mounted=True):
with patch.object(cleanup.Path, "read_text", return_value=MOUNTINFO), \
patch.object(cleanup, "mounted", side_effect=mounted if isinstance(mounted, list) else None,
return_value=mounted) as check, \
patch.object(cleanup.shutil, "rmtree") as rmtree, \
patch.object(cleanup.subprocess, "run", side_effect=results) as run:
status = cleanup.cleanup()
return status, run, check, rmtree
def result(self, status):
return subprocess.CompletedProcess([], status)
def test_only_fuse_integration_test_mounts_are_candidates(self):
rows = MOUNTINFO
rows += MOUNTINFO.replace("fuse.seaweedfs", "ext4")
rows += MOUNTINFO.replace(TARGET, "/mnt/production")
rows += MOUNTINFO.replace(TARGET, "/tmp/seaweedfs_fuse_test_123/data")
rows += MOUNTINFO.replace(TARGET, "/home/user/seaweedfs_fuse_test_123/mount")
rows += MOUNTINFO.replace(TARGET, "/tmp/seaweedfs/data")
self.assertEqual(list(cleanup.test_mounts(rows)), [("42", TARGET)])
def test_all_test_mount_layouts_are_candidates(self):
targets = (
"/tmp/seaweedfs_fuse_test_123/mount",
"/tmp/seaweedfs_fuse_failover_456/mount0",
"/tmp/seaweedfs_fuse_failover_456/mount1",
"/var/tmp/seaweedfs_fuse_p2p_test_789/mount2",
"/tmp/seaweedfs/mount",
)
rows = "".join(
MOUNTINFO.replace("42", str(40 + i)).replace(TARGET, target)
for i, target in enumerate(targets)
)
self.assertEqual(
list(cleanup.test_mounts(rows)),
[(str(40 + i), target) for i, target in enumerate(targets)],
)
def test_mountinfo_paths_are_unescaped_once(self):
target = "/tmp/seaweedfs_fuse_test_space and\\slash/mount"
encoded = target.replace("\\", r"\134").replace(" ", r"\040")
rows = MOUNTINFO.replace(TARGET, encoded)
self.assertEqual(list(cleanup.test_mounts(rows)), [("42", target)])
def test_no_mounts_is_a_noop(self):
with patch.object(cleanup.Path, "read_text", return_value=""), \
patch.object(cleanup.subprocess, "run") as run:
self.assertEqual(cleanup.cleanup(), 0)
run.assert_not_called()
def test_healthy_mount_is_untouched(self):
status, run, _, _ = self.run_cleanup([self.result(0)])
self.assertEqual(status, 0)
self.assertEqual(run.call_count, 1)
def test_other_probe_errors_are_untouched(self):
for error in (errno.EACCES, errno.ENOENT, errno.EIO):
with self.subTest(error=error):
status, run, _, _ = self.run_cleanup([self.result(error)])
self.assertEqual(status, 0)
self.assertEqual(run.call_count, 1)
def test_probe_timeout_does_not_detach_a_possibly_live_mount(self):
status, run, _, _ = self.run_cleanup([subprocess.TimeoutExpired("probe", 5)])
self.assertEqual(status, 0)
self.assertEqual(run.call_count, 1)
def test_disconnected_mount_is_lazily_unmounted(self):
status, run, _, _ = self.run_cleanup([self.result(errno.ENOTCONN), self.result(0)], [True, False])
self.assertEqual(status, 0)
self.assertEqual(run.call_args_list[1].args[0], ["fusermount3", "-uz", "--", TARGET])
self.assertEqual(run.call_args_list[0].kwargs["timeout"], 5)
self.assertEqual(run.call_args_list[1].kwargs["timeout"], 10)
def test_replaced_or_removed_mount_is_untouched(self):
status, run, _, _ = self.run_cleanup([self.result(errno.ENOTCONN)], False)
self.assertEqual(status, 0)
self.assertEqual(run.call_count, 1)
def test_mount_identity_is_checked_without_stat(self):
with patch.object(cleanup.Path, "read_text", return_value=MOUNTINFO):
self.assertTrue(cleanup.mounted("42", TARGET))
self.assertFalse(cleanup.mounted("43", TARGET))
def test_missing_or_timed_out_helper_uses_fallback(self):
for error in (FileNotFoundError(), subprocess.TimeoutExpired("fusermount3", 10)):
with self.subTest(error=error):
status, run, _, _ = self.run_cleanup(
[self.result(errno.ENOTCONN), error, self.result(0)], [True, True, False])
self.assertEqual(status, 0)
self.assertEqual(run.call_args.args[0], ["fusermount", "-uz", "--", TARGET])
def test_failed_helpers_fall_back_to_sudo(self):
status, run, _, _ = self.run_cleanup(
[self.result(errno.ENOTCONN), self.result(1), self.result(1), self.result(0)],
[True, True, True, False])
self.assertEqual(status, 0)
self.assertEqual(run.call_args.args[0], ["sudo", "-n", "umount", "-l", "--", TARGET])
def test_cleanup_fails_when_stale_mount_remains(self):
status, run, _, rmtree = self.run_cleanup(
[self.result(errno.ENOTCONN), self.result(1), self.result(1), self.result(1)])
self.assertEqual(status, 1)
self.assertEqual(run.call_count, 4)
rmtree.assert_not_called()
def test_unmounted_test_dir_is_reclaimed(self):
status, _, _, rmtree = self.run_cleanup(
[self.result(errno.ENOTCONN), self.result(0)], [True, False])
self.assertEqual(status, 0)
rmtree.assert_called_once_with(Path(TARGET).parent, ignore_errors=True)
def test_probe_process_reports_errno(self):
for target, expected in ((str(Path(__file__)), 0), (str(Path(__file__) / "absent"), errno.ENOTDIR)):
with self.subTest(target=target):
result = subprocess.run([cleanup.sys.executable, cleanup.__file__, "--probe", target], check=False)
self.assertEqual(result.returncode, expected)
if __name__ == "__main__":
unittest.main()
@@ -23,14 +23,8 @@ runs:
bin=$(command -v fusermount3 || true) bin=$(command -v fusermount3 || true)
if [ -z "$bin" ]; then if [ -z "$bin" ]; then
# Self-hosted runners are not guaranteed to carry fuse3. echo "no fusermount3 in PATH" >&2
sudo apt-get update exit 1
sudo apt-get install -y fuse3
bin=$(command -v fusermount3 || true)
if [ -z "$bin" ]; then
echo "no fusermount3 in PATH after installing fuse3" >&2
exit 1
fi
fi fi
if can_mount "$bin"; then if can_mount "$bin"; then
ls -l "$bin" ls -l "$bin"
@@ -1,57 +0,0 @@
name: Set up a musl Rust target
description: Install the stable toolchain for a static Linux musl target, with the C toolchain and the link shims aws-lc-sys needs.
inputs:
target:
description: x86_64-unknown-linux-musl or aarch64-unknown-linux-musl
required: true
runs:
using: composite
steps:
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
with:
targets: ${{ inputs.target }}
- name: Install musl tools (amd64)
if: inputs.target == 'x86_64-unknown-linux-musl'
shell: bash
run: |
sudo apt-get install -y musl-tools
# C deps (aws-lc-sys) must compile against musl headers, not the host
# gcc's glibc headers — glibc's C23 redirects (__isoc23_sscanf,
# __isoc23_strtol) don't exist in musl and fail the link.
echo "CC_x86_64_unknown_linux_musl=musl-gcc" >> "$GITHUB_ENV"
- name: Install cross-compilation tools (arm64)
if: inputs.target == 'aarch64-unknown-linux-musl'
shell: bash
run: |
sudo apt-get install -y gcc-aarch64-linux-gnu
echo "CARGO_TARGET_AARCH64_UNKNOWN_LINUX_MUSL_LINKER=aarch64-linux-gnu-gcc" >> "$GITHUB_ENV"
# Disable glibc fortify source — its __memcpy_chk etc. symbols don't exist in musl
echo "CFLAGS_aarch64_unknown_linux_musl=-U_FORTIFY_SOURCE" >> "$GITHUB_ENV"
# aws-lc-sys compiles against glibc headers, which redirect
# sscanf/strtol to C23 __isoc23_* symbols musl does not provide.
# Link a tiny forwarding shim so those references resolve to the
# musl implementations. Prototypes are declared manually: including
# glibc headers here would re-redirect the calls back to __isoc23_*.
cat > /tmp/isoc23-shim.c <<'SHIM'
#include <stdarg.h>
extern int vsscanf(const char *s, const char *fmt, va_list ap);
extern long strtol(const char *nptr, char **endptr, int base);
int __isoc23_sscanf(const char *s, const char *fmt, ...) {
va_list ap;
va_start(ap, fmt);
int r = vsscanf(s, fmt, ap);
va_end(ap);
return r;
}
long __isoc23_strtol(const char *nptr, char **endptr, int base) {
return strtol(nptr, endptr, base);
}
SHIM
aarch64-linux-gnu-gcc -O2 -c /tmp/isoc23-shim.c -o /tmp/isoc23-shim.o
# link-args land after libc on the link line; rescan musl libc so
# the shim's own vsscanf/strtol references resolve, and libgcc for
# the fp128 builtins musl's vfscanf/floatscan pull in on aarch64.
echo "CARGO_TARGET_AARCH64_UNKNOWN_LINUX_MUSL_RUSTFLAGS=-Clink-arg=/tmp/isoc23-shim.o -Clink-arg=-lc -Clink-arg=-lgcc" >> "$GITHUB_ENV"
-30
View File
@@ -1,30 +0,0 @@
name: "actions: unit tests"
on:
push:
branches: [ master ]
paths:
- '.github/actions/**'
- '.github/workflows/action-tests.yml'
pull_request:
branches: [ master ]
paths:
- '.github/actions/**'
- '.github/workflows/action-tests.yml'
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || (github.event_name == 'push' && github.ref) || github.run_id }}
cancel-in-progress: ${{ github.event_name == 'pull_request' || (github.event_name == 'push' && !startsWith(github.ref, 'refs/tags/')) }}
permissions:
contents: read
jobs:
cleanup-stale-fuse-mounts:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v7
- name: Run cleanup action unit tests
run: python3 .github/actions/cleanup-stale-fuse-mounts/test_cleanup.py
@@ -1,37 +0,0 @@
name: "Cancel runs of closed PRs"
# Merging or closing a PR leaves its pull_request runs going: concurrency
# groups cancel a run only when a newer push arrives. pull_request_target gives
# this job a token that can cancel runs, fork PRs included. It checks out and
# runs no PR code.
on:
pull_request_target:
types: [closed]
permissions:
actions: write
pull-requests: read
jobs:
cancel:
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: Cancel the PR's queued and running pull_request runs
env:
GH_TOKEN: ${{ github.token }}
GH_REPO: ${{ github.repository }}
PR: ${{ github.event.pull_request.number }}
HEAD_REF: ${{ github.event.pull_request.head.ref }}
run: |
set -euo pipefail
# Match the PR's own commits: forks reuse branch names such as master.
shas=$(gh api --paginate "repos/$GH_REPO/pulls/$PR/commits" --jq '.[].sha')
for status in queued in_progress waiting pending requested; do
gh run list --branch "$HEAD_REF" --event pull_request --status "$status" \
--limit 200 --json databaseId,headSha --jq '.[] | "\(.databaseId) \(.headSha)"'
done | while read -r id sha; do
grep -qx "$sha" <<<"$shas" || continue
echo "cancel run $id at $sha"
gh run cancel "$id" || true
done
+5 -11
View File
@@ -9,8 +9,8 @@ on:
- '.github/workflows/codeql.yml' - '.github/workflows/codeql.yml'
concurrency: concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || (github.event_name == 'push' && github.ref) || github.run_id }} group: ${{ github.head_ref }}/codeql
cancel-in-progress: ${{ github.event_name == 'pull_request' || (github.event_name == 'push' && !startsWith(github.ref, 'refs/tags/')) }} cancel-in-progress: true
jobs: jobs:
CodeQL-Build: CodeQL-Build:
@@ -25,15 +25,9 @@ jobs:
- name: Checkout repository - name: Checkout repository
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1
- name: Set up Go
uses: actions/setup-go@v7
with:
go-version-file: 'go.mod'
cache: ${{ runner.environment == 'github-hosted' }}
# Initializes the CodeQL tools for scanning. # Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL - name: Initialize CodeQL
uses: github/codeql-action/init@v4.39.1 uses: github/codeql-action/init@v4.39.0
# Override language selection by uncommenting this and choosing your languages # Override language selection by uncommenting this and choosing your languages
with: with:
languages: go languages: go
@@ -41,7 +35,7 @@ jobs:
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java). # Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below). # If this step fails, then you should remove it and run the build manually (see below).
- name: Autobuild - name: Autobuild
uses: github/codeql-action/autobuild@v4.39.1 uses: github/codeql-action/autobuild@v4.39.0
# ℹ️ Command-line programs to run using the OS shell. # ℹ️ Command-line programs to run using the OS shell.
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun # 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
@@ -55,4 +49,4 @@ jobs:
# make release # make release
- name: Perform CodeQL Analysis - name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v4.39.1 uses: github/codeql-action/analyze@v4.39.0
-4
View File
@@ -8,10 +8,6 @@ on:
pull_request: pull_request:
branches: [master] branches: [master]
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || (github.event_name == 'push' && github.ref) || github.run_id }}
cancel-in-progress: ${{ github.event_name == 'pull_request' || (github.event_name == 'push' && !startsWith(github.ref, 'refs/tags/')) }}
permissions: permissions:
contents: read contents: read
+20 -36
View File
@@ -8,16 +8,11 @@ on:
- 'seaweed-volume/**' - 'seaweed-volume/**'
- 'seaweed-common/**' - 'seaweed-common/**'
- 'seaweed-worker/**' - 'seaweed-worker/**'
- 'seaweed-vector/**'
- 'docker/**' - 'docker/**'
- 'go.mod' - 'go.mod'
- 'go.sum' - 'go.sum'
- '.github/workflows/container_dev.yml' - '.github/workflows/container_dev.yml'
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || (github.event_name == 'push' && github.ref) || github.run_id }}
cancel-in-progress: ${{ github.event_name == 'pull_request' || (github.event_name == 'push' && !startsWith(github.ref, 'refs/tags/')) }}
permissions: permissions:
contents: read contents: read
@@ -25,7 +20,7 @@ jobs:
# ── Pre-build the Rust binaries natively ──────────────────────────── # ── Pre-build the Rust binaries natively ────────────────────────────
build-rust-binaries: build-rust-binaries:
runs-on: ubuntu-24.04 runs-on: ubuntu-22.04
strategy: strategy:
matrix: matrix:
include: include:
@@ -33,17 +28,29 @@ jobs:
arch: amd64 arch: amd64
- target: aarch64-unknown-linux-musl - target: aarch64-unknown-linux-musl
arch: arm64 arch: arm64
cross: true
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v7 uses: actions/checkout@v7
- name: Set up the musl target - name: Install Rust toolchain
uses: ./.github/actions/rust-musl-target uses: dtolnay/rust-toolchain@stable
with: with:
target: ${{ matrix.target }} targets: ${{ matrix.target }}
- name: Install musl tools (amd64)
if: ${{ !matrix.cross }}
run: sudo apt-get install -y musl-tools
- name: Install cross-compilation tools (arm64)
if: matrix.cross
run: |
sudo apt-get install -y gcc-aarch64-linux-gnu
echo "CARGO_TARGET_AARCH64_UNKNOWN_LINUX_MUSL_LINKER=aarch64-linux-gnu-gcc" >> "$GITHUB_ENV"
# Disable glibc fortify source — its __memcpy_chk etc. symbols don't exist in musl
echo "CFLAGS_aarch64_unknown_linux_musl=-U_FORTIFY_SOURCE" >> "$GITHUB_ENV"
- name: Cache cargo registry and target - name: Cache cargo registry and target
if: runner.environment == 'github-hosted'
uses: actions/cache@v6 uses: actions/cache@v6
with: with:
path: | path: |
@@ -51,8 +58,7 @@ jobs:
~/.cargo/git ~/.cargo/git
seaweed-volume/target seaweed-volume/target
seaweed-worker/target/${{ matrix.target }}/release seaweed-worker/target/${{ matrix.target }}/release
seaweed-vector/target/${{ matrix.target }}/release key: rust-docker-dev-${{ matrix.target }}-${{ hashFiles('seaweed-volume/Cargo.lock', 'seaweed-worker/Cargo.lock') }}
key: rust-docker-dev-${{ matrix.target }}-${{ hashFiles('seaweed-volume/Cargo.lock', 'seaweed-worker/Cargo.lock', 'seaweed-vector/Cargo.lock') }}
restore-keys: | restore-keys: |
rust-docker-dev-${{ matrix.target }}- rust-docker-dev-${{ matrix.target }}-
@@ -85,12 +91,6 @@ jobs:
cargo build --release -p weed-lance-worker --target ${{ matrix.target }} cargo build --release -p weed-lance-worker --target ${{ matrix.target }}
cp target/${{ matrix.target }}/release/weed-worker ../weed-worker-${{ matrix.arch }} cp target/${{ matrix.target }}/release/weed-worker ../weed-worker-${{ matrix.arch }}
- name: Build the vector engine
run: |
cd seaweed-vector
cargo build --release -p weed-vector-server --target ${{ matrix.target }}
cp target/${{ matrix.target }}/release/weed-vector ../weed-vector-${{ matrix.arch }}
- name: Upload artifacts - name: Upload artifacts
uses: actions/upload-artifact@v7 uses: actions/upload-artifact@v7
with: with:
@@ -98,7 +98,6 @@ jobs:
path: | path: |
weed-volume-normal-${{ matrix.arch }} weed-volume-normal-${{ matrix.arch }}
weed-worker-${{ matrix.arch }} weed-worker-${{ matrix.arch }}
weed-vector-${{ matrix.arch }}
build-dev-containers: build-dev-containers:
needs: [build-rust-binaries] needs: [build-rust-binaries]
@@ -136,17 +135,8 @@ jobs:
echo "Placed pre-built Rust worker for ${arch}" echo "Placed pre-built Rust worker for ${arch}"
fi fi
done done
mkdir -p docker/weed-vector-prebuilt
for arch in amd64 arm64; do
src="./rust-bins/weed-vector-${arch}"
if [ -f "$src" ]; then
cp "$src" "docker/weed-vector-prebuilt/weed-vector-${arch}"
echo "Placed pre-built vector engine for ${arch}"
fi
done
ls -la docker/weed-volume-prebuilt/ ls -la docker/weed-volume-prebuilt/
ls -la docker/weed-worker-prebuilt/ ls -la docker/weed-worker-prebuilt/
ls -la docker/weed-vector-prebuilt/
- name: Docker meta - name: Docker meta
id: docker_meta id: docker_meta
@@ -180,14 +170,14 @@ jobs:
- name: Login to Docker Hub - name: Login to Docker Hub
if: github.event_name != 'pull_request' if: github.event_name != 'pull_request'
uses: docker/login-action@v4.7.0 uses: docker/login-action@v4.6.0
with: with:
username: ${{ secrets.DOCKER_USERNAME }} username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }} password: ${{ secrets.DOCKER_PASSWORD }}
- name: Login to GHCR - name: Login to GHCR
if: github.event_name != 'pull_request' if: github.event_name != 'pull_request'
uses: docker/login-action@v4.7.0 uses: docker/login-action@v4.6.0
with: with:
registry: ghcr.io registry: ghcr.io
username: ${{ secrets.GHCR_USERNAME }} username: ${{ secrets.GHCR_USERNAME }}
@@ -203,12 +193,6 @@ jobs:
platforms: linux/amd64, linux/arm64 platforms: linux/amd64, linux/arm64
tags: ${{ steps.docker_meta.outputs.tags }} tags: ${{ steps.docker_meta.outputs.tags }}
labels: ${{ steps.docker_meta.outputs.labels }} labels: ${{ steps.docker_meta.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max
# Key the checkout layer on the pushed sha so cached layers can't
# serve stale code; the Dockerfile fetch fallback picks it up.
build-args: |
BRANCH=${{ github.sha }}
- name: Sign - name: Sign
if: github.event_name != 'pull_request' if: github.event_name != 'pull_request'
@@ -24,10 +24,6 @@ on:
required: false required: false
default: '' default: ''
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || (github.event_name == 'push' && github.ref) || github.event.inputs.image_tag || format('foundationdb_{0}_seaweedfs_{1}', github.event.inputs.fdb_version || '7.4.5', github.event.inputs.seaweedfs_ref || github.ref_name) }}
cancel-in-progress: ${{ github.event_name == 'pull_request' || (github.event_name == 'push' && !startsWith(github.ref, 'refs/tags/')) }}
permissions: permissions:
contents: read contents: read
@@ -68,7 +64,6 @@ jobs:
uses: actions/setup-go@v7 uses: actions/setup-go@v7
with: with:
go-version-file: go.mod go-version-file: go.mod
cache: ${{ runner.environment == 'github-hosted' }}
- name: Run FoundationDB tagged tests - name: Run FoundationDB tagged tests
env: env:
@@ -141,7 +136,7 @@ jobs:
- name: Login to Docker Hub - name: Login to Docker Hub
if: github.event_name != 'pull_request' if: github.event_name != 'pull_request'
uses: docker/login-action@v4.7.0 uses: docker/login-action@v4.6.0
with: with:
username: ${{ secrets.DOCKER_USERNAME }} username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }} password: ${{ secrets.DOCKER_PASSWORD }}
+26 -55
View File
@@ -30,11 +30,6 @@ on:
type: boolean type: boolean
default: false default: false
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || (github.event_name == 'push' && github.ref) || github.event.inputs.image_tag || github.run_id }}
cancel-in-progress: false
queue: max
permissions: permissions:
contents: read contents: read
security-events: write security-events: write
@@ -66,7 +61,7 @@ jobs:
# ── Pre-build the Rust binaries natively ──────────────────────────── # ── Pre-build the Rust binaries natively ────────────────────────────
build-rust-binaries: build-rust-binaries:
runs-on: ubuntu-24.04 runs-on: ubuntu-22.04
strategy: strategy:
matrix: matrix:
include: include:
@@ -74,21 +69,31 @@ jobs:
arch: amd64 arch: amd64
- target: aarch64-unknown-linux-musl - target: aarch64-unknown-linux-musl
arch: arm64 arch: arm64
cross: true
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v7 uses: actions/checkout@v7
with: with:
ref: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.source_ref || github.ref }} ref: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.source_ref || github.ref }}
# The checkout above is the source ref, which may predate these - name: Install Rust toolchain
# actions; take them from master, the ref this fallback runs from. uses: dtolnay/rust-toolchain@stable
- name: Set up the musl target
uses: seaweedfs/seaweedfs/.github/actions/rust-musl-target@master
with: with:
target: ${{ matrix.target }} targets: ${{ matrix.target }}
- name: Install musl tools (amd64)
if: ${{ !matrix.cross }}
run: sudo apt-get install -y musl-tools
- name: Install cross-compilation tools (arm64)
if: matrix.cross
run: |
sudo apt-get install -y gcc-aarch64-linux-gnu
echo "CARGO_TARGET_AARCH64_UNKNOWN_LINUX_MUSL_LINKER=aarch64-linux-gnu-gcc" >> "$GITHUB_ENV"
# Disable glibc fortify source — its __memcpy_chk etc. symbols don't exist in musl
echo "CFLAGS_aarch64_unknown_linux_musl=-U_FORTIFY_SOURCE" >> "$GITHUB_ENV"
- name: Cache cargo registry and target - name: Cache cargo registry and target
if: runner.environment == 'github-hosted'
uses: actions/cache@v6 uses: actions/cache@v6
with: with:
path: | path: |
@@ -96,8 +101,7 @@ jobs:
~/.cargo/git ~/.cargo/git
seaweed-volume/target seaweed-volume/target
seaweed-worker/target/${{ matrix.target }}/release seaweed-worker/target/${{ matrix.target }}/release
seaweed-vector/target/${{ matrix.target }}/release key: rust-docker-${{ matrix.target }}-${{ hashFiles('seaweed-volume/Cargo.lock', 'seaweed-worker/Cargo.lock') }}
key: rust-docker-${{ matrix.target }}-${{ hashFiles('seaweed-volume/Cargo.lock', 'seaweed-worker/Cargo.lock', 'seaweed-vector/Cargo.lock') }}
restore-keys: | restore-keys: |
rust-docker-${{ matrix.target }}- rust-docker-${{ matrix.target }}-
@@ -138,17 +142,6 @@ jobs:
cargo build --release -p weed-lance-worker --target ${{ matrix.target }} cargo build --release -p weed-lance-worker --target ${{ matrix.target }}
cp target/${{ matrix.target }}/release/weed-worker ../weed-worker-${{ matrix.arch }} cp target/${{ matrix.target }}/release/weed-worker ../weed-worker-${{ matrix.arch }}
- name: Build the vector engine
run: |
# An older source_ref predates the engine; its image goes without one.
if [ ! -f seaweed-vector/crates/server/Cargo.toml ]; then
echo "No vector engine in this source ref"
exit 0
fi
cd seaweed-vector
cargo build --release -p weed-vector-server --target ${{ matrix.target }}
cp target/${{ matrix.target }}/release/weed-vector ../weed-vector-${{ matrix.arch }}
- name: Upload artifacts - name: Upload artifacts
uses: actions/upload-artifact@v7 uses: actions/upload-artifact@v7
with: with:
@@ -157,7 +150,6 @@ jobs:
weed-volume-large-disk-${{ matrix.arch }} weed-volume-large-disk-${{ matrix.arch }}
weed-volume-normal-${{ matrix.arch }} weed-volume-normal-${{ matrix.arch }}
weed-worker-${{ matrix.arch }} weed-worker-${{ matrix.arch }}
weed-vector-${{ matrix.arch }}
build: build:
needs: [setup, build-rust-binaries] needs: [setup, build-rust-binaries]
@@ -172,13 +164,10 @@ jobs:
uses: actions/checkout@v7 uses: actions/checkout@v7
with: with:
ref: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.source_ref || github.ref }} ref: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.source_ref || github.ref }}
- name: Clean up stale FUSE mounts
uses: seaweedfs/seaweedfs/.github/actions/cleanup-stale-fuse-mounts@master
- name: Free Disk Space - name: Free Disk Space
run: | run: |
echo "Available disk space before cleanup:" echo "Available disk space before cleanup:"
timeout 15 df -h || true df -h
# Remove pre-installed tools # Remove pre-installed tools
sudo rm -rf /usr/share/dotnet /usr/local/lib/android /opt/ghc /opt/hostedtoolcache/CodeQL sudo rm -rf /usr/share/dotnet /usr/local/lib/android /opt/ghc /opt/hostedtoolcache/CodeQL
# Clean package managers # Clean package managers
@@ -190,7 +179,7 @@ jobs:
[ -d ~/.cache/go-build ] && rm -rf ~/.cache/go-build || true [ -d ~/.cache/go-build ] && rm -rf ~/.cache/go-build || true
[ -d /go/pkg ] && rm -rf /go/pkg || true [ -d /go/pkg ] && rm -rf /go/pkg || true
echo "Available disk space after cleanup:" echo "Available disk space after cleanup:"
timeout 15 df -h || true df -h
- name: Configure variant - name: Configure variant
id: config id: config
@@ -230,17 +219,8 @@ jobs:
echo "Placed pre-built Rust worker for ${arch}" echo "Placed pre-built Rust worker for ${arch}"
fi fi
done done
mkdir -p docker/weed-vector-prebuilt
for arch in amd64 arm64; do
src="./rust-bins/weed-vector-${arch}"
if [ -f "$src" ]; then
cp "$src" "docker/weed-vector-prebuilt/weed-vector-${arch}"
echo "Placed pre-built vector engine for ${arch}"
fi
done
ls -la docker/weed-volume-prebuilt/ ls -la docker/weed-volume-prebuilt/
ls -la docker/weed-worker-prebuilt/ ls -la docker/weed-worker-prebuilt/
ls -la docker/weed-vector-prebuilt/
- name: Docker meta - name: Docker meta
id: docker_meta id: docker_meta
@@ -270,13 +250,13 @@ jobs:
buildkitd-config: /tmp/buildkitd.toml buildkitd-config: /tmp/buildkitd.toml
- name: Login to Docker Hub - name: Login to Docker Hub
if: needs.setup.outputs.publish == 'true' if: needs.setup.outputs.publish == 'true'
uses: docker/login-action@v4.7.0 uses: docker/login-action@v4.6.0
with: with:
username: ${{ secrets.DOCKER_USERNAME }} username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }} password: ${{ secrets.DOCKER_PASSWORD }}
- name: Login to GHCR - name: Login to GHCR
if: needs.setup.outputs.publish == 'true' if: needs.setup.outputs.publish == 'true'
uses: docker/login-action@v4.7.0 uses: docker/login-action@v4.6.0
with: with:
registry: ghcr.io registry: ghcr.io
username: ${{ secrets.GHCR_USERNAME }} username: ${{ secrets.GHCR_USERNAME }}
@@ -324,7 +304,7 @@ jobs:
fi fi
- name: Login to GHCR - name: Login to GHCR
if: needs.setup.outputs.publish == 'true' if: needs.setup.outputs.publish == 'true'
uses: docker/login-action@v4.7.0 uses: docker/login-action@v4.6.0
with: with:
registry: ghcr.io registry: ghcr.io
username: ${{ secrets.GHCR_USERNAME }} username: ${{ secrets.GHCR_USERNAME }}
@@ -364,17 +344,8 @@ jobs:
echo "Placed pre-built Rust worker for ${arch}" echo "Placed pre-built Rust worker for ${arch}"
fi fi
done done
mkdir -p docker/weed-vector-prebuilt
for arch in amd64 arm64; do
src="./rust-bins/weed-vector-${arch}"
if [ -f "$src" ]; then
cp "$src" "docker/weed-vector-prebuilt/weed-vector-${arch}"
echo "Placed pre-built vector engine for ${arch}"
fi
done
ls -la docker/weed-volume-prebuilt/ ls -la docker/weed-volume-prebuilt/
ls -la docker/weed-worker-prebuilt/ ls -la docker/weed-worker-prebuilt/
ls -la docker/weed-vector-prebuilt/
- name: Create BuildKit config for local scan build - name: Create BuildKit config for local scan build
if: needs.setup.outputs.publish != 'true' if: needs.setup.outputs.publish != 'true'
run: | run: |
@@ -434,7 +405,7 @@ jobs:
output: trivy-results.sarif output: trivy-results.sarif
exit-code: '0' exit-code: '0'
- name: Upload Trivy scan results to GitHub Security - name: Upload Trivy scan results to GitHub Security
uses: github/codeql-action/upload-sarif@v4.39.1 uses: github/codeql-action/upload-sarif@v4.39.0
if: always() if: always()
with: with:
sarif_file: trivy-results.sarif sarif_file: trivy-results.sarif
@@ -501,12 +472,12 @@ jobs:
ghcr.io/chrislusf/seaweedfs ghcr.io/chrislusf/seaweedfs
tags: type=raw,value=${{ github.event_name == 'workflow_dispatch' && github.event.inputs.image_tag || 'latest' }},suffix=${{ steps.config.outputs.tag_suffix }} tags: type=raw,value=${{ github.event_name == 'workflow_dispatch' && github.event.inputs.image_tag || 'latest' }},suffix=${{ steps.config.outputs.tag_suffix }}
- name: Login to Docker Hub - name: Login to Docker Hub
uses: docker/login-action@v4.7.0 uses: docker/login-action@v4.6.0
with: with:
username: ${{ secrets.DOCKER_USERNAME }} username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }} password: ${{ secrets.DOCKER_PASSWORD }}
- name: Login to GHCR - name: Login to GHCR
uses: docker/login-action@v4.7.0 uses: docker/login-action@v4.6.0
with: with:
registry: ghcr.io registry: ghcr.io
username: ${{ secrets.GHCR_USERNAME }} username: ${{ secrets.GHCR_USERNAME }}
@@ -11,11 +11,6 @@ on:
required: true required: true
default: '' default: ''
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || (github.event_name == 'push' && github.ref) || format('refs/tags/{0}', github.event.inputs.release_tag) || github.run_id }}
cancel-in-progress: false
queue: max
permissions: permissions:
contents: read contents: read
@@ -58,7 +53,7 @@ jobs:
- -
name: Login to Docker Hub name: Login to Docker Hub
if: github.event_name != 'pull_request' if: github.event_name != 'pull_request'
uses: docker/login-action@v4.7.0 uses: docker/login-action@v4.6.0
with: with:
username: ${{ secrets.DOCKER_USERNAME }} username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }} password: ${{ secrets.DOCKER_PASSWORD }}
+34 -89
View File
@@ -25,7 +25,7 @@ on:
rocksdb_version: rocksdb_version:
description: 'RocksDB git tag to use when variant=rocksdb' description: 'RocksDB git tag to use when variant=rocksdb'
required: false required: false
default: 'v11.1.2' default: 'v10.10.1'
permissions: permissions:
contents: read contents: read
@@ -43,11 +43,11 @@ concurrency:
jobs: jobs:
# ── Pre-build the Rust binaries natively ──────────────────────────── # ── Pre-build the Rust binaries natively ────────────────────────────
# The volume server, the Rust maintenance worker and the vector engine, # The volume server and the Rust maintenance worker, cross-compiled for
# cross-compiled for amd64 and arm64 without QEMU, turning a 5-hour emulated # amd64 and arm64 without QEMU, turning a 5-hour emulated cargo build into
# cargo build into ~15 minutes of native compilation. # ~15 minutes of native compilation.
build-rust-binaries: build-rust-binaries:
runs-on: ubuntu-24.04 runs-on: ubuntu-22.04
strategy: strategy:
matrix: matrix:
include: include:
@@ -55,17 +55,29 @@ jobs:
arch: amd64 arch: amd64
- target: aarch64-unknown-linux-musl - target: aarch64-unknown-linux-musl
arch: arm64 arch: arm64
cross: true
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v7 uses: actions/checkout@v7
- name: Set up the musl target - name: Install Rust toolchain
uses: ./.github/actions/rust-musl-target uses: dtolnay/rust-toolchain@stable
with: with:
target: ${{ matrix.target }} targets: ${{ matrix.target }}
- name: Install musl tools (amd64)
if: ${{ !matrix.cross }}
run: sudo apt-get install -y musl-tools
- name: Install cross-compilation tools (arm64)
if: matrix.cross
run: |
sudo apt-get install -y gcc-aarch64-linux-gnu
echo "CARGO_TARGET_AARCH64_UNKNOWN_LINUX_MUSL_LINKER=aarch64-linux-gnu-gcc" >> "$GITHUB_ENV"
# Disable glibc fortify source — its __memcpy_chk etc. symbols don't exist in musl
echo "CFLAGS_aarch64_unknown_linux_musl=-U_FORTIFY_SOURCE" >> "$GITHUB_ENV"
- name: Cache cargo registry and target - name: Cache cargo registry and target
if: runner.environment == 'github-hosted'
uses: actions/cache@v6 uses: actions/cache@v6
with: with:
path: | path: |
@@ -73,8 +85,7 @@ jobs:
~/.cargo/git ~/.cargo/git
seaweed-volume/target seaweed-volume/target
seaweed-worker/target/${{ matrix.target }}/release seaweed-worker/target/${{ matrix.target }}/release
seaweed-vector/target/${{ matrix.target }}/release key: rust-docker-${{ matrix.target }}-${{ hashFiles('seaweed-volume/Cargo.lock', 'seaweed-worker/Cargo.lock') }}
key: rust-docker-${{ matrix.target }}-${{ hashFiles('seaweed-volume/Cargo.lock', 'seaweed-worker/Cargo.lock', 'seaweed-vector/Cargo.lock') }}
restore-keys: | restore-keys: |
rust-docker-${{ matrix.target }}- rust-docker-${{ matrix.target }}-
@@ -115,12 +126,6 @@ jobs:
cargo build --release -p weed-lance-worker --target ${{ matrix.target }} cargo build --release -p weed-lance-worker --target ${{ matrix.target }}
cp target/${{ matrix.target }}/release/weed-worker ../weed-worker-${{ matrix.arch }} cp target/${{ matrix.target }}/release/weed-worker ../weed-worker-${{ matrix.arch }}
- name: Build the vector engine
run: |
cd seaweed-vector
cargo build --release -p weed-vector-server --target ${{ matrix.target }}
cp target/${{ matrix.target }}/release/weed-vector ../weed-vector-${{ matrix.arch }}
- name: Upload artifacts - name: Upload artifacts
uses: actions/upload-artifact@v7 uses: actions/upload-artifact@v7
with: with:
@@ -129,7 +134,6 @@ jobs:
weed-volume-large-disk-${{ matrix.arch }} weed-volume-large-disk-${{ matrix.arch }}
weed-volume-normal-${{ matrix.arch }} weed-volume-normal-${{ matrix.arch }}
weed-worker-${{ matrix.arch }} weed-worker-${{ matrix.arch }}
weed-vector-${{ matrix.arch }}
# One job per (variant, platform) on a native runner, pushed by digest; # One job per (variant, platform) on a native runner, pushed by digest;
# the merge job stitches the digests into one multi-arch tag. # the merge job stitches the digests into one multi-arch tag.
@@ -175,10 +179,6 @@ jobs:
if: github.event_name != 'workflow_dispatch' || github.event.inputs.variant == 'all' || github.event.inputs.variant == matrix.variant if: github.event_name != 'workflow_dispatch' || github.event.inputs.variant == 'all' || github.event.inputs.variant == matrix.variant
uses: actions/checkout@v7 uses: actions/checkout@v7
- name: Clean up stale FUSE mounts
if: github.event_name != 'workflow_dispatch' || github.event.inputs.variant == 'all' || github.event.inputs.variant == matrix.variant
uses: ./.github/actions/cleanup-stale-fuse-mounts
- name: Download pre-built Rust binaries - name: Download pre-built Rust binaries
if: github.event_name != 'workflow_dispatch' || github.event.inputs.variant == 'all' || github.event.inputs.variant == matrix.variant if: github.event_name != 'workflow_dispatch' || github.event.inputs.variant == 'all' || github.event.inputs.variant == matrix.variant
uses: actions/download-artifact@v8 uses: actions/download-artifact@v8
@@ -206,17 +206,8 @@ jobs:
echo "Placed pre-built Rust worker for ${arch}" echo "Placed pre-built Rust worker for ${arch}"
fi fi
done done
mkdir -p docker/weed-vector-prebuilt
for arch in amd64 arm64; do
src="./rust-bins/weed-vector-${arch}"
if [ -f "$src" ]; then
cp "$src" "docker/weed-vector-prebuilt/weed-vector-${arch}"
echo "Placed pre-built vector engine for ${arch}"
fi
done
ls -la docker/weed-volume-prebuilt/ ls -la docker/weed-volume-prebuilt/
ls -la docker/weed-worker-prebuilt/ ls -la docker/weed-worker-prebuilt/
ls -la docker/weed-vector-prebuilt/
- name: Free Disk Space - name: Free Disk Space
if: github.event_name != 'workflow_dispatch' || github.event.inputs.variant == 'all' || github.event.inputs.variant == matrix.variant if: github.event_name != 'workflow_dispatch' || github.event.inputs.variant == 'all' || github.event.inputs.variant == matrix.variant
@@ -227,7 +218,7 @@ jobs:
sudo docker system prune -af --volumes sudo docker system prune -af --volumes
[ -d ~/.cache/go-build ] && rm -rf ~/.cache/go-build || true [ -d ~/.cache/go-build ] && rm -rf ~/.cache/go-build || true
[ -d /go/pkg ] && rm -rf /go/pkg || true [ -d /go/pkg ] && rm -rf /go/pkg || true
timeout 15 df -h || true df -h
- name: Docker meta - name: Docker meta
if: github.event_name != 'workflow_dispatch' || github.event.inputs.variant == 'all' || github.event.inputs.variant == matrix.variant if: github.event_name != 'workflow_dispatch' || github.event.inputs.variant == 'all' || github.event.inputs.variant == matrix.variant
@@ -262,7 +253,7 @@ jobs:
- name: Login to GHCR - name: Login to GHCR
if: github.event_name != 'workflow_dispatch' || github.event.inputs.variant == 'all' || github.event.inputs.variant == matrix.variant if: github.event_name != 'workflow_dispatch' || github.event.inputs.variant == 'all' || github.event.inputs.variant == matrix.variant
uses: docker/login-action@v4.7.0 uses: docker/login-action@v4.6.0
with: with:
registry: ghcr.io registry: ghcr.io
username: ${{ secrets.GHCR_USERNAME }} username: ${{ secrets.GHCR_USERNAME }}
@@ -279,11 +270,8 @@ jobs:
file: ${{ matrix.dockerfile }} file: ${{ matrix.dockerfile }}
platforms: ${{ matrix.platform }} platforms: ${{ matrix.platform }}
labels: ${{ steps.docker_meta.outputs.labels }} labels: ${{ steps.docker_meta.outputs.labels }}
# mode=max keeps resolvedDependencies complete and records the # Flat single-platform manifest so imagetools create assembles cleanly.
# builder identity; attestations ride inside each pushed index and provenance: false
# survive the imagetools merge into the multi-arch manifest.
provenance: mode=max
sbom: true
outputs: type=image,name=${{ env.IMAGE }},push-by-digest=true,name-canonical=true,push=true outputs: type=image,name=${{ env.IMAGE }},push-by-digest=true,name-canonical=true,push=true
cache-from: type=gha,scope=${{ matrix.variant }}-${{ matrix.arch }} cache-from: type=gha,scope=${{ matrix.variant }}-${{ matrix.arch }}
# max only for rocksdb: its RocksDB compile is sha-independent and worth # max only for rocksdb: its RocksDB compile is sha-independent and worth
@@ -293,7 +281,7 @@ jobs:
${{ matrix.build_args }} ${{ matrix.build_args }}
BUILDKIT_INLINE_CACHE=1 BUILDKIT_INLINE_CACHE=1
BRANCH=${{ github.sha }} BRANCH=${{ github.sha }}
${{ matrix.variant == 'rocksdb' && format('ROCKSDB_VERSION={0}', github.event.inputs.rocksdb_version || 'v11.1.2') || '' }} ${{ matrix.variant == 'rocksdb' && format('ROCKSDB_VERSION={0}', github.event.inputs.rocksdb_version || 'v10.10.1') || '' }}
- name: Export digest - name: Export digest
if: github.event_name != 'workflow_dispatch' || github.event.inputs.variant == 'all' || github.event.inputs.variant == matrix.variant if: github.event_name != 'workflow_dispatch' || github.event.inputs.variant == 'all' || github.event.inputs.variant == matrix.variant
@@ -319,8 +307,6 @@ jobs:
permissions: permissions:
contents: read contents: read
id-token: write id-token: write
attestations: write
packages: write
strategy: strategy:
fail-fast: false fail-fast: false
matrix: matrix:
@@ -352,7 +338,7 @@ jobs:
- name: Login to GHCR - name: Login to GHCR
if: github.event_name != 'workflow_dispatch' || github.event.inputs.variant == 'all' || github.event.inputs.variant == matrix.variant if: github.event_name != 'workflow_dispatch' || github.event.inputs.variant == 'all' || github.event.inputs.variant == matrix.variant
uses: docker/login-action@v4.7.0 uses: docker/login-action@v4.6.0
with: with:
registry: ghcr.io registry: ghcr.io
username: ${{ secrets.GHCR_USERNAME }} username: ${{ secrets.GHCR_USERNAME }}
@@ -374,7 +360,7 @@ jobs:
- name: Login to Docker Hub - name: Login to Docker Hub
if: github.event_name != 'workflow_dispatch' || github.event.inputs.variant == 'all' || github.event.inputs.variant == matrix.variant if: github.event_name != 'workflow_dispatch' || github.event.inputs.variant == 'all' || github.event.inputs.variant == matrix.variant
uses: docker/login-action@v4.7.0 uses: docker/login-action@v4.6.0
with: with:
username: ${{ secrets.DOCKER_USERNAME }} username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }} password: ${{ secrets.DOCKER_PASSWORD }}
@@ -428,45 +414,6 @@ jobs:
${{ env.IMAGE }}@${{ steps.manifest.outputs.digest }} ${{ env.IMAGE }}@${{ steps.manifest.outputs.digest }}
chrislusf/seaweedfs@${{ steps.manifest.outputs.digest }} chrislusf/seaweedfs@${{ steps.manifest.outputs.digest }}
# Attest the merged multi-arch digest itself, so digest-pinning consumers
# can verify provenance against the exact index they pull. Both steps
# reuse the GHCR login above and push as OCI referrers.
- name: Attest build provenance for ${{ matrix.variant }}
if: github.event_name != 'workflow_dispatch' || github.event.inputs.variant == 'all' || github.event.inputs.variant == matrix.variant
uses: actions/attest-build-provenance@v4
with:
subject-name: ${{ env.IMAGE }}
subject-digest: ${{ steps.manifest.outputs.digest }}
push-to-registry: true
# SBOMs are generated and attested per platform manifest: an index-wide
# scan only describes syft's default platform, while the manifests it
# merges differ (some ship the real binary, others placeholders), so the
# SBOM has to be bound to the platform digest a consumer actually pulls.
- name: Install syft
if: github.event_name != 'workflow_dispatch' || github.event.inputs.variant == 'all' || github.event.inputs.variant == matrix.variant
uses: anchore/sbom-action/download-syft@v0
- name: Attest per-platform SBOMs for ${{ matrix.variant }}
if: github.event_name != 'workflow_dispatch' || github.event.inputs.variant == 'all' || github.event.inputs.variant == matrix.variant
working-directory: /tmp/digests
run: |
set -euo pipefail
for f in *; do
# Each saved digest is an OCI index (image + attestation manifests);
# scan and attest the image manifest a same-platform pull resolves.
ref="${{ env.IMAGE }}@sha256:${f}"
image=$(crane manifest "$ref" | jq -r '
[.manifests[]? | select((.annotations["vnd.docker.reference.type"] // "") != "attestation-manifest"
and (.platform.os // "unknown") != "unknown") | .digest][0] // empty')
ref="${{ env.IMAGE }}@${image:-sha256:${f}}"
syft "registry:${ref}" -o "spdx-json=/tmp/sbom-${f}.spdx.json"
cosign attest --yes \
--predicate "/tmp/sbom-${f}.spdx.json" \
--type spdxjson \
"$ref"
done
# Report-only trivy scan: uploads fixable HIGH/CRITICAL findings to GitHub # Report-only trivy scan: uploads fixable HIGH/CRITICAL findings to GitHub
# Security for visibility, but never blocks the release. Releases (including # Security for visibility, but never blocks the release. Releases (including
# `latest`) ship regardless — vulnerabilities are tracked, not gated, since # `latest`) ship regardless — vulnerabilities are tracked, not gated, since
@@ -487,7 +434,7 @@ jobs:
variant: large_disk variant: large_disk
steps: steps:
- name: Login to GHCR - name: Login to GHCR
uses: docker/login-action@v4.7.0 uses: docker/login-action@v4.6.0
with: with:
registry: ghcr.io registry: ghcr.io
username: ${{ secrets.GHCR_USERNAME }} username: ${{ secrets.GHCR_USERNAME }}
@@ -505,9 +452,7 @@ jobs:
scanners: vuln scanners: vuln
vuln-type: os,library vuln-type: os,library
severity: HIGH,CRITICAL severity: HIGH,CRITICAL
# Keep unfixed findings in the report so digest-pinning consumers see ignore-unfixed: true
# the complete picture, not just what a patch could resolve.
ignore-unfixed: false
limit-severities-for-sarif: true limit-severities-for-sarif: true
format: sarif format: sarif
output: trivy-results.sarif output: trivy-results.sarif
@@ -515,7 +460,7 @@ jobs:
- name: Upload Trivy scan results to GitHub Security - name: Upload Trivy scan results to GitHub Security
if: always() if: always()
uses: github/codeql-action/upload-sarif@v4.39.1 uses: github/codeql-action/upload-sarif@v4.39.0
with: with:
sarif_file: trivy-results.sarif sarif_file: trivy-results.sarif
category: trivy-${{ matrix.variant }} category: trivy-${{ matrix.variant }}
@@ -539,13 +484,13 @@ jobs:
latest_tag: latest_large_disk latest_tag: latest_large_disk
steps: steps:
- name: Login to Docker Hub - name: Login to Docker Hub
uses: docker/login-action@v4.7.0 uses: docker/login-action@v4.6.0
with: with:
username: ${{ secrets.DOCKER_USERNAME }} username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }} password: ${{ secrets.DOCKER_PASSWORD }}
- name: Login to GHCR - name: Login to GHCR
uses: docker/login-action@v4.7.0 uses: docker/login-action@v4.6.0
with: with:
registry: ghcr.io registry: ghcr.io
username: ${{ secrets.GHCR_USERNAME }} username: ${{ secrets.GHCR_USERNAME }}
@@ -4,9 +4,9 @@ on:
workflow_dispatch: workflow_dispatch:
inputs: inputs:
rocksdb_version: rocksdb_version:
description: 'RocksDB git tag or branch to build (e.g. v11.1.2)' description: 'RocksDB git tag or branch to build (e.g. v10.10.1)'
required: true required: true
default: 'v11.1.2' default: 'v10.10.1'
seaweedfs_ref: seaweedfs_ref:
description: 'SeaweedFS git tag, branch, or commit to build' description: 'SeaweedFS git tag, branch, or commit to build'
required: true required: true
@@ -16,11 +16,6 @@ on:
required: false required: false
default: '' default: ''
concurrency:
group: ${{ github.workflow }}-${{ github.event.inputs.image_tag || format('rocksdb_{0}_seaweedfs_{1}', github.event.inputs.rocksdb_version, github.event.inputs.seaweedfs_ref) }}
cancel-in-progress: false
queue: max
permissions: permissions:
contents: read contents: read
@@ -90,13 +85,13 @@ jobs:
echo "seaweedfs_ref=$seaweed" >> "$GITHUB_OUTPUT" echo "seaweedfs_ref=$seaweed" >> "$GITHUB_OUTPUT"
- name: Set up QEMU - name: Set up QEMU
uses: docker/setup-qemu-action@99012661954931238ded8c8b007157a8430204e1 # v4.4.0 uses: docker/setup-qemu-action@99012661954931238ded8c8b007157a8430204e1 # v1
- name: Set up Docker Buildx - name: Set up Docker Buildx
uses: docker/setup-buildx-action@4d04d5d9486b7bd6fa91e7baf45bbb4f8b9deedd # v4.0.0 uses: docker/setup-buildx-action@4d04d5d9486b7bd6fa91e7baf45bbb4f8b9deedd # v1
- name: Login to Docker Hub - name: Login to Docker Hub
uses: docker/login-action@81c6f93d4bc991e510b342a00b419b3bb4efc5c6 # v4.7.0 uses: docker/login-action@dbcb813823bdd20940b903addbd779551569679f # v1
with: with:
username: ${{ secrets.DOCKER_USERNAME }} username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }} password: ${{ secrets.DOCKER_PASSWORD }}
-1
View File
@@ -27,7 +27,6 @@ jobs:
uses: actions/setup-go@v7 uses: actions/setup-go@v7
with: with:
go-version-file: 'telemetry/server/go.mod' go-version-file: 'telemetry/server/go.mod'
cache: ${{ runner.environment == 'github-hosted' }}
- name: Build Telemetry Server - name: Build Telemetry Server
if: github.event_name == 'workflow_dispatch' && inputs.deploy if: github.event_name == 'workflow_dispatch' && inputs.deploy
-4
View File
@@ -1,10 +1,6 @@
name: 'Dependency Review' name: 'Dependency Review'
on: [pull_request] on: [pull_request]
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || (github.event_name == 'push' && github.ref) || github.run_id }}
cancel-in-progress: ${{ github.event_name == 'pull_request' || (github.event_name == 'push' && !startsWith(github.ref, 'refs/tags/')) }}
permissions: permissions:
contents: read contents: read
+3 -5
View File
@@ -19,8 +19,8 @@ on:
- '.github/workflows/e2e.yml' - '.github/workflows/e2e.yml'
concurrency: concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || (github.event_name == 'push' && github.ref) || github.run_id }} group: ${{ github.head_ref }}/e2e
cancel-in-progress: ${{ github.event_name == 'pull_request' || (github.event_name == 'push' && !startsWith(github.ref, 'refs/tags/')) }} cancel-in-progress: true
permissions: permissions:
contents: read contents: read
@@ -32,7 +32,7 @@ defaults:
jobs: jobs:
e2e: e2e:
name: FUSE Mount name: FUSE Mount
runs-on: ubuntu-24.04 runs-on: ubuntu-22.04
timeout-minutes: 30 timeout-minutes: 30
steps: steps:
- name: Check out code into the Go module directory - name: Check out code into the Go module directory
@@ -42,7 +42,6 @@ jobs:
uses: actions/setup-go@v7 uses: actions/setup-go@v7
with: with:
go-version-file: 'go.mod' go-version-file: 'go.mod'
cache: ${{ runner.environment == 'github-hosted' }}
- name: Configure Docker Hub mirror - name: Configure Docker Hub mirror
run: | run: |
@@ -53,7 +52,6 @@ jobs:
uses: docker/setup-buildx-action@v4 uses: docker/setup-buildx-action@v4
- name: Cache Docker layers - name: Cache Docker layers
if: runner.environment == 'github-hosted'
uses: actions/cache@v6 uses: actions/cache@v6
with: with:
path: /tmp/.buildx-cache path: /tmp/.buildx-cache
+1 -6
View File
@@ -18,23 +18,18 @@ on:
- 'go.sum' - 'go.sum'
- '.github/workflows/ec-integration-tests.yml' - '.github/workflows/ec-integration-tests.yml'
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || (github.event_name == 'push' && github.ref) || github.run_id }}
cancel-in-progress: ${{ github.event_name == 'pull_request' || (github.event_name == 'push' && !startsWith(github.ref, 'refs/tags/')) }}
permissions: permissions:
contents: read contents: read
jobs: jobs:
ec-integration-tests: ec-integration-tests:
name: EC Integration Tests name: EC Integration Tests
runs-on: ubuntu-24.04 runs-on: ubuntu-22.04
timeout-minutes: 30 timeout-minutes: 30
steps: steps:
- name: Set up Go 1.x - name: Set up Go 1.x
uses: actions/setup-go@v7 uses: actions/setup-go@v7
with: with:
cache: ${{ runner.environment == 'github-hosted' }}
go-version: ^1.26 go-version: ^1.26
id: go id: go
+3 -4
View File
@@ -19,8 +19,8 @@ on:
- '.github/actions/fix-fusermount-setuid/**' - '.github/actions/fix-fusermount-setuid/**'
concurrency: concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || (github.event_name == 'push' && github.ref) || github.run_id }} group: ${{ github.head_ref || github.ref }}/fuse-dlm-integration
cancel-in-progress: ${{ github.event_name == 'pull_request' || (github.event_name == 'push' && !startsWith(github.ref, 'refs/tags/')) }} cancel-in-progress: true
permissions: permissions:
contents: read contents: read
@@ -28,7 +28,7 @@ permissions:
jobs: jobs:
fuse-dlm-integration: fuse-dlm-integration:
name: FUSE DLM Integration Tests name: FUSE DLM Integration Tests
runs-on: ubuntu-24.04 runs-on: ubuntu-22.04
timeout-minutes: 30 timeout-minutes: 30
steps: steps:
@@ -39,7 +39,6 @@ jobs:
uses: actions/setup-go@v7 uses: actions/setup-go@v7
with: with:
go-version-file: 'go.mod' go-version-file: 'go.mod'
cache: ${{ runner.environment == 'github-hosted' }}
- name: Configure FUSE - name: Configure FUSE
run: | run: |
+3 -7
View File
@@ -24,8 +24,8 @@ on:
- '.github/actions/fix-fusermount-setuid/**' - '.github/actions/fix-fusermount-setuid/**'
concurrency: concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || (github.event_name == 'push' && github.ref) || github.run_id }} group: ${{ github.head_ref || github.ref }}/fuse-failover
cancel-in-progress: ${{ github.event_name == 'pull_request' || (github.event_name == 'push' && !startsWith(github.ref, 'refs/tags/')) }} cancel-in-progress: true
permissions: permissions:
contents: read contents: read
@@ -33,7 +33,7 @@ permissions:
jobs: jobs:
fuse-failover: fuse-failover:
name: FUSE Volume Server Failover name: FUSE Volume Server Failover
runs-on: ubuntu-24.04 runs-on: ubuntu-22.04
timeout-minutes: 40 timeout-minutes: 40
steps: steps:
@@ -42,14 +42,10 @@ jobs:
with: with:
persist-credentials: false persist-credentials: false
- name: Clean up stale FUSE mounts
uses: ./.github/actions/cleanup-stale-fuse-mounts
- name: Set up Go - name: Set up Go
uses: actions/setup-go@v7 uses: actions/setup-go@v7
with: with:
go-version-file: 'go.mod' go-version-file: 'go.mod'
cache: ${{ runner.environment == 'github-hosted' }}
- name: Configure FUSE - name: Configure FUSE
run: | run: |
+3 -4
View File
@@ -17,8 +17,8 @@ on:
- '.github/actions/fix-fusermount-setuid/**' - '.github/actions/fix-fusermount-setuid/**'
concurrency: concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || (github.event_name == 'push' && github.ref) || github.run_id }} group: ${{ github.head_ref }}/fuse-integration
cancel-in-progress: ${{ github.event_name == 'pull_request' || (github.event_name == 'push' && !startsWith(github.ref, 'refs/tags/')) }} cancel-in-progress: true
permissions: permissions:
contents: read contents: read
@@ -26,7 +26,7 @@ permissions:
jobs: jobs:
fuse-integration: fuse-integration:
name: FUSE Integration Testing name: FUSE Integration Testing
runs-on: ubuntu-24.04 runs-on: ubuntu-22.04
timeout-minutes: 50 timeout-minutes: 50
steps: steps:
@@ -37,7 +37,6 @@ jobs:
uses: actions/setup-go@v7 uses: actions/setup-go@v7
with: with:
go-version-file: 'go.mod' go-version-file: 'go.mod'
cache: ${{ runner.environment == 'github-hosted' }}
- name: Configure FUSE - name: Configure FUSE
run: | run: |
+3 -7
View File
@@ -25,8 +25,8 @@ on:
- '.github/actions/fix-fusermount-setuid/**' - '.github/actions/fix-fusermount-setuid/**'
concurrency: concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || (github.event_name == 'push' && github.ref) || github.run_id }} group: ${{ github.head_ref || github.ref }}/fuse-p2p-integration
cancel-in-progress: ${{ github.event_name == 'pull_request' || (github.event_name == 'push' && !startsWith(github.ref, 'refs/tags/')) }} cancel-in-progress: true
permissions: permissions:
contents: read contents: read
@@ -34,21 +34,17 @@ permissions:
jobs: jobs:
fuse-p2p-integration: fuse-p2p-integration:
name: FUSE P2P Peer Chunk Sharing name: FUSE P2P Peer Chunk Sharing
runs-on: ubuntu-24.04 runs-on: ubuntu-22.04
timeout-minutes: 20 timeout-minutes: 20
steps: steps:
- name: Check out code - name: Check out code
uses: actions/checkout@v7 uses: actions/checkout@v7
- name: Clean up stale FUSE mounts
uses: ./.github/actions/cleanup-stale-fuse-mounts
- name: Set up Go - name: Set up Go
uses: actions/setup-go@v7 uses: actions/setup-go@v7
with: with:
go-version-file: 'go.mod' go-version-file: 'go.mod'
cache: ${{ runner.environment == 'github-hosted' }}
- name: Configure FUSE - name: Configure FUSE
run: | run: |
+2 -9
View File
@@ -17,8 +17,8 @@ on:
- '.github/workflows/go.yml' - '.github/workflows/go.yml'
concurrency: concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || (github.event_name == 'push' && github.ref) || github.run_id }} group: ${{ github.head_ref }}/go
cancel-in-progress: ${{ github.event_name == 'pull_request' || (github.event_name == 'push' && !startsWith(github.ref, 'refs/tags/')) }} cancel-in-progress: true
permissions: permissions:
contents: read contents: read
@@ -35,7 +35,6 @@ jobs:
uses: actions/setup-go@v7 uses: actions/setup-go@v7
with: with:
go-version-file: 'go.mod' go-version-file: 'go.mod'
cache: ${{ runner.environment == 'github-hosted' }}
- name: Get dependencies - name: Get dependencies
run: | run: |
cd weed; go get -v -t -d ./... cd weed; go get -v -t -d ./...
@@ -58,7 +57,6 @@ jobs:
uses: actions/setup-go@v7 uses: actions/setup-go@v7
with: with:
go-version-file: 'go.mod' go-version-file: 'go.mod'
cache: ${{ runner.environment == 'github-hosted' }}
- name: Go Vet linux/386 (type-checks code and tests for 32-bit int overflows) - name: Go Vet linux/386 (type-checks code and tests for 32-bit int overflows)
run: | run: |
GOOS=linux GOARCH=386 go vet ./... 2>&1 | grep -v "MessageState contains sync.Mutex" | grep -v "IdentityAccessManagement contains sync.RWMutex" | tee vet-32bit-output.txt GOOS=linux GOARCH=386 go vet ./... 2>&1 | grep -v "MessageState contains sync.Mutex" | grep -v "IdentityAccessManagement contains sync.RWMutex" | tee vet-32bit-output.txt
@@ -74,7 +72,6 @@ jobs:
uses: actions/setup-go@v7 uses: actions/setup-go@v7
with: with:
go-version-file: 'go.mod' go-version-file: 'go.mod'
cache: ${{ runner.environment == 'github-hosted' }}
- name: Build - name: Build
run: cd weed; go build -tags "elastic gocdk sqlite ydb tarantool tikv rclone" -v . run: cd weed; go build -tags "elastic gocdk sqlite ydb tarantool tikv rclone" -v .
@@ -97,7 +94,6 @@ jobs:
uses: actions/setup-go@v7 uses: actions/setup-go@v7
with: with:
go-version-file: 'go.mod' go-version-file: 'go.mod'
cache: ${{ runner.environment == 'github-hosted' }}
# Nothing else on a PR compiles these, so per-OS syscall constants creep # Nothing else on a PR compiles these, so per-OS syscall constants creep
# back into shared files unnoticed and only a release build catches it. # back into shared files unnoticed and only a release build catches it.
- name: Cross-compile - name: Cross-compile
@@ -132,7 +128,6 @@ jobs:
uses: actions/setup-go@v7 uses: actions/setup-go@v7
with: with:
go-version-file: 'go.mod' go-version-file: 'go.mod'
cache: ${{ runner.environment == 'github-hosted' }}
- name: Test - name: Test
env: env:
RUN_REDIS_TESTS: "1" RUN_REDIS_TESTS: "1"
@@ -148,7 +143,6 @@ jobs:
uses: actions/setup-go@v7 uses: actions/setup-go@v7
with: with:
go-version-file: 'go.mod' go-version-file: 'go.mod'
cache: ${{ runner.environment == 'github-hosted' }}
# 386 test binaries run natively on the amd64 runner. This catches what vet # 386 test binaries run natively on the amd64 runner. This catches what vet
# can't: unaligned 64-bit atomics and arithmetic that wraps at runtime. # can't: unaligned 64-bit atomics and arithmetic that wraps at runtime.
# -short skips the e2e suites already covered on amd64. # -short skips the e2e suites already covered on amd64.
@@ -165,7 +159,6 @@ jobs:
uses: actions/setup-go@v7 uses: actions/setup-go@v7
with: with:
go-version-file: 'go.mod' go-version-file: 'go.mod'
cache: ${{ runner.environment == 'github-hosted' }}
# weed/kms/azure is excluded from every default build, so without this # weed/kms/azure is excluded from every default build, so without this
# nothing compiles it and tag-gated code silently rots. # nothing compiles it and tag-gated code silently rots.
- name: Build and test with azurekms - name: Build and test with azurekms
+1 -295
View File
@@ -8,10 +8,6 @@ on:
branches: [ master ] branches: [ master ]
paths: ['k8s/**', '.github/workflows/helm_ci.yml', '.github/scripts/helm_jwt_keys.py'] paths: ['k8s/**', '.github/workflows/helm_ci.yml', '.github/scripts/helm_jwt_keys.py']
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || (github.event_name == 'push' && github.ref) || github.run_id }}
cancel-in-progress: ${{ github.event_name == 'pull_request' || (github.event_name == 'push' && !startsWith(github.ref, 'refs/tags/')) }}
permissions: permissions:
contents: read contents: read
@@ -560,7 +556,7 @@ jobs:
print("cluster alias: hook waits on the renamed names and the chart's addresses") print("cluster alias: hook waits on the renamed names and the chart's addresses")
# Keys kept in a Secret are referenced, not inlined, so the hook # Keys kept in a Secret are referenced, not inlined, so the hook
# must render valueFrom for map-valued extraEnvironmentVars. # must render valueFrom for non-string extraEnvironmentVars.
out = render(dict(jwt, **{ out = render(dict(jwt, **{
"global.seaweedfs.extraEnvironmentVars.WEED_JWT_FILER_SIGNING_KEY.secretKeyRef.name": "signing-keys", "global.seaweedfs.extraEnvironmentVars.WEED_JWT_FILER_SIGNING_KEY.secretKeyRef.name": "signing-keys",
"global.seaweedfs.extraEnvironmentVars.WEED_JWT_FILER_SIGNING_KEY.secretKeyRef.key": "filerWrite", "global.seaweedfs.extraEnvironmentVars.WEED_JWT_FILER_SIGNING_KEY.secretKeyRef.key": "filerWrite",
@@ -599,22 +595,6 @@ jobs:
--set master.data.storageClass=standard > /tmp/pvc.yaml --set master.data.storageClass=standard > /tmp/pvc.yaml
grep -q "PersistentVolumeClaim" /tmp/pvc.yaml grep -q "PersistentVolumeClaim" /tmp/pvc.yaml
echo "PVC configuration renders correctly" echo "PVC configuration renders correctly"
echo "=== Testing existingClaim volumes are mounted ==="
# The filer's data and logs and the master's logs declared an existingClaim
# volume but mounted only hostPath, persistentVolumeClaim and emptyDir, so
# the filer kept its metadata store on the container's own filesystem.
helm template test $CHART_DIR --show-only templates/filer/filer-statefulset.yaml \
--set filer.data.type=existingClaim --set filer.data.claimName=filer-data \
--set filer.logs.type=existingClaim --set filer.logs.claimName=filer-logs > /tmp/filer-existing-claim.yaml
grep -A 1 -- '- name: data-filer$' /tmp/filer-existing-claim.yaml | grep -q 'mountPath: /data$'
grep -A 1 -- '- name: seaweedfs-filer-log-volume$' /tmp/filer-existing-claim.yaml | grep -q 'mountPath: "/logs/"$'
grep -q -- '-logdir=/logs' /tmp/filer-existing-claim.yaml
helm template test $CHART_DIR --show-only templates/master/master-statefulset.yaml \
--set master.logs.type=existingClaim --set master.logs.claimName=master-logs > /tmp/master-existing-claim.yaml
grep -A 1 -- '- name: seaweedfs-master-log-volume$' /tmp/master-existing-claim.yaml | grep -q 'mountPath: "/logs/"$'
grep -q -- '-logdir=/logs' /tmp/master-existing-claim.yaml
echo "existingClaim volumes are mounted"
echo "=== Testing with custom replicas ===" echo "=== Testing with custom replicas ==="
helm template test $CHART_DIR \ helm template test $CHART_DIR \
@@ -652,47 +632,12 @@ jobs:
--set filer.secretExtraEnvironmentVars.WEED_MYSQL_PASSWORD.secretKeyRef.name=db \ --set filer.secretExtraEnvironmentVars.WEED_MYSQL_PASSWORD.secretKeyRef.name=db \
--set filer.secretExtraEnvironmentVars.WEED_MYSQL_PASSWORD.secretKeyRef.key=password > /tmp/filer-mysql-on-secret.yaml --set filer.secretExtraEnvironmentVars.WEED_MYSQL_PASSWORD.secretKeyRef.key=password > /tmp/filer-mysql-on-secret.yaml
grep -A 4 -- "- name: WEED_MYSQL_PASSWORD$" /tmp/filer-mysql-on-secret.yaml | grep -q "name: db" grep -A 4 -- "- name: WEED_MYSQL_PASSWORD$" /tmp/filer-mysql-on-secret.yaml | grep -q "name: db"
# It replaces the db secret's entry rather than adding a second one, which
# Helm 4's server-side apply rejects as a duplicate.
test "$(grep -c -- "- name: WEED_MYSQL_PASSWORD$" /tmp/filer-mysql-on-secret.yaml)" -eq 1
test "$(grep -c -- "- name: WEED_MYSQL_USERNAME$" /tmp/filer-mysql-on-secret.yaml)" -eq 1
helm template test $CHART_DIR \
--set-string filer.extraEnvironmentVars.WEED_MYSQL_ENABLED=true \
--set-string filer.extraEnvironmentVars.WEED_MYSQL_USERNAME=app > /tmp/filer-mysql-on-plain.yaml
test "$(grep -c -- "- name: WEED_MYSQL_USERNAME$" /tmp/filer-mysql-on-plain.yaml)" -eq 1
grep -A 1 -- "- name: WEED_MYSQL_USERNAME$" /tmp/filer-mysql-on-plain.yaml | grep -q 'value: "app"'
# Credentials render ahead of the merged vars so a $(...) reference resolves.
helm template test $CHART_DIR \
--set-string filer.extraEnvironmentVars.WEED_MYSQL_ENABLED=true \
--set-string filer.extraEnvironmentVars.WEED_MYSQL_USERNAME=app \
--set-string 'filer.extraEnvironmentVars.WEED_MYSQL_DSN=$(WEED_MYSQL_USERNAME)@tcp(h)/db' > /tmp/filer-mysql-dsn.yaml
test "$(grep -n -- "- name: WEED_MYSQL_USERNAME$" /tmp/filer-mysql-dsn.yaml | cut -d: -f1)" -lt "$(grep -n -- "- name: WEED_MYSQL_DSN$" /tmp/filer-mysql-dsn.yaml | cut -d: -f1)"
# Vars a credential's own $(...) references point at render before it.
helm template test $CHART_DIR \
--set-string filer.extraEnvironmentVars.WEED_MYSQL_ENABLED=true \
--set-string filer.extraEnvironmentVars.DB_USER=app \
--set-string 'filer.extraEnvironmentVars.WEED_MYSQL_USERNAME=$(DB_USER)' > /tmp/filer-mysql-ref.yaml
test "$(grep -n -- "- name: DB_USER$" /tmp/filer-mysql-ref.yaml | cut -d: -f1)" -lt "$(grep -n -- "- name: WEED_MYSQL_USERNAME$" /tmp/filer-mysql-ref.yaml | cut -d: -f1)"
helm template test $CHART_DIR \
--set-string filer.extraEnvironmentVars.WEED_MYSQL_ENABLED=true \
--set filer.secretExtraEnvironmentVars.DB_USER.secretKeyRef.name=db \
--set filer.secretExtraEnvironmentVars.DB_USER.secretKeyRef.key=user \
--set-string 'filer.extraEnvironmentVars.WEED_MYSQL_USERNAME=$(DB_USER)' > /tmp/filer-mysql-ref-secret.yaml
test "$(grep -c -- "- name: DB_USER$" /tmp/filer-mysql-ref-secret.yaml)" -eq 1
test "$(grep -n -- "- name: DB_USER$" /tmp/filer-mysql-ref-secret.yaml | cut -d: -f1)" -lt "$(grep -n -- "- name: WEED_MYSQL_USERNAME$" /tmp/filer-mysql-ref-secret.yaml | cut -d: -f1)"
# A flag the chart cannot read counts as selected, not as off. # A flag the chart cannot read counts as selected, not as off.
helm template test $CHART_DIR \ helm template test $CHART_DIR \
--set filer.secretExtraEnvironmentVars.WEED_MYSQL_ENABLED.secretKeyRef.name=store \ --set filer.secretExtraEnvironmentVars.WEED_MYSQL_ENABLED.secretKeyRef.name=store \
--set filer.secretExtraEnvironmentVars.WEED_MYSQL_ENABLED.secretKeyRef.key=enabled > /tmp/filer-mysql-secret.yaml --set filer.secretExtraEnvironmentVars.WEED_MYSQL_ENABLED.secretKeyRef.key=enabled > /tmp/filer-mysql-secret.yaml
grep -q "name: test-seaweedfs-db-secret" /tmp/filer-mysql-secret.yaml grep -q "name: test-seaweedfs-db-secret" /tmp/filer-mysql-secret.yaml
grep -q "name: WEED_MYSQL_HOSTNAME" /tmp/filer-mysql-secret.yaml grep -q "name: WEED_MYSQL_HOSTNAME" /tmp/filer-mysql-secret.yaml
# A secret-backed key also replaces the matching plain entry, not adds one.
test "$(grep -c -- "- name: WEED_MYSQL_ENABLED$" /tmp/filer-mysql-secret.yaml)" -eq 1
helm template test $CHART_DIR \
--set-string filer.extraEnvironmentVars.WEED_MYSQL_ENABLED=true \
--set filer.secretExtraEnvironmentVars.WEED_MYSQL_HOSTNAME.secretKeyRef.name=db \
--set filer.secretExtraEnvironmentVars.WEED_MYSQL_HOSTNAME.secretKeyRef.key=host > /tmp/filer-mysql-hostname-secret.yaml
test "$(grep -c -- "- name: WEED_MYSQL_HOSTNAME$" /tmp/filer-mysql-hostname-secret.yaml)" -eq 1
helm template test $CHART_DIR \ helm template test $CHART_DIR \
--set-string filer.extraEnvironmentVars.WEED_MYSQL2_HOSTNAME=other > /tmp/filer-mysql2.yaml --set-string filer.extraEnvironmentVars.WEED_MYSQL2_HOSTNAME=other > /tmp/filer-mysql2.yaml
grep -q "name: WEED_MYSQL2_HOSTNAME" /tmp/filer-mysql2.yaml grep -q "name: WEED_MYSQL2_HOSTNAME" /tmp/filer-mysql2.yaml
@@ -1275,43 +1220,6 @@ jobs:
print("all-in-one env: shared key renders once, component value wins") print("all-in-one env: shared key renders once, component value wins")
PYEOF PYEOF
echo "=== Testing extraEnvironmentVars: numbers and booleans render as values ==="
# Only a string rendered as value; anything else went to valueFrom, so an
# unquoted 3306 or true in a values file (or --set) became "valueFrom: 3306"
# and the API server rejected the workload. A map still renders valueFrom,
# and a null still renders an empty variable. --set-json decodes numbers as
# float64, as values files do, which quote would print as 1e+06.
helm template test $CHART_DIR \
--set-json global.seaweedfs.extraEnvironmentVars.WEED_GLOBAL_INT=1000000 \
--set master.extraEnvironmentVars.WEED_MASTER_VOLUME_GROWTH_COPY_1=7 \
--set master.extraEnvironmentVars.WEED_EMPTY=null \
--set filer.extraEnvironmentVars.WEED_MYSQL_ENABLED=true \
--set filer.extraEnvironmentVars.WEED_MYSQL_PORT=3306 \
--set filer.extraEnvironmentVars.WEED_REF.secretKeyRef.name=s \
--set filer.extraEnvironmentVars.WEED_REF.secretKeyRef.key=k > /tmp/env-scalars.yaml
python3 - /tmp/env-scalars.yaml <<'PYEOF'
import sys, yaml
docs = [d for d in yaml.safe_load_all(open(sys.argv[1])) if d]
def env(suffix):
sts = next(d for d in docs if d.get("kind") == "StatefulSet"
and d["metadata"]["name"].endswith(suffix))
return {e["name"]: e for e in sts["spec"]["template"]["spec"]["containers"][0]["env"]}
master, filer = env("-master"), env("-filer")
want = [(master, "WEED_MASTER_VOLUME_GROWTH_COPY_1", "7"), (master, "WEED_GLOBAL_INT", "1000000"),
(filer, "WEED_MYSQL_ENABLED", "true"), (filer, "WEED_MYSQL_PORT", "3306"),
(filer, "WEED_GLOBAL_INT", "1000000")]
failed = [f"{name}: {e.get(name)}" for e, name, value in want
if e.get(name) != {"name": name, "value": value}]
if master.get("WEED_EMPTY") != {"name": "WEED_EMPTY"}:
failed.append(f"WEED_EMPTY: {master.get('WEED_EMPTY')}")
if filer.get("WEED_REF", {}).get("valueFrom") != {"secretKeyRef": {"name": "s", "key": "k"}}:
failed.append(f"WEED_REF: {filer.get('WEED_REF')}")
if failed:
print("FAIL: extraEnvironmentVars rendered wrong:", *failed, sep="\n ", file=sys.stderr)
sys.exit(1)
print("extraEnvironmentVars: numbers and booleans render as values, a map as valueFrom, a null as empty")
PYEOF
echo "=== Testing bucket versioning: YAML bool false suspends like string \"false\" ===" echo "=== Testing bucket versioning: YAML bool false suspends like string \"false\" ==="
# bool false used to be a silent no-op while string "false" suspended. # bool false used to be a silent no-op while string "false" suspended.
BOOL_FALSE=$(helm template test $CHART_DIR \ BOOL_FALSE=$(helm template test $CHART_DIR \
@@ -1934,176 +1842,6 @@ jobs:
PYEOF PYEOF
echo "License + master persistence tests passed" echo "License + master persistence tests passed"
echo ""
echo "=== Testing commonLabels ==="
python3 - "$CHART_DIR" <<'PYEOF'
import copy, subprocess, sys, yaml
chart = sys.argv[1]
class NoDuplicates(yaml.SafeLoader):
pass
def mapping(loader, node, deep=False):
keys = [loader.construct_object(k, deep=deep) for k, _ in node.value]
dups = {k for k in keys if keys.count(k) > 1}
if dups:
raise ValueError(f"duplicate keys {dups} at line {node.start_mark.line + 1}")
return yaml.SafeLoader.construct_mapping(loader, node, deep)
NoDuplicates.add_constructor(yaml.resolver.BaseResolver.DEFAULT_MAPPING_TAG, mapping)
BASE = [
"--set", "global.seaweedfs.enableSecurity=true",
"--set", "global.seaweedfs.monitoring.enabled=true",
"--set", "global.seaweedfs.monitoring.additionalLabels.release=prometheus",
"--set", "master.data.type=persistentVolumeClaim",
"--set", "master.ingress.enabled=true",
"--set", "master.ingress.labels.team=ingress",
"--set", "filer.data.type=persistentVolumeClaim",
"--set", "filer.ingresses.http.enabled=true",
"--set", "s3.enabled=true", "--set", "s3.enableAuth=true",
"--set", "s3.httpRoute.enabled=true",
"--set", "sftp.enabled=true", "--set", "worker.enabled=true",
"--set", "admin.enabled=true", "--set", "admin.secret.adminPassword=ci",
"--set", "cosi.enabled=true", "--set", "networkPolicy.enabled=true",
"--set", "volumes.dc2.replicas=1",
# render the security ConfigMap without its generated jwt key
"--set", "global.seaweedfs.enableSecurity=true",
"--set", "global.seaweedfs.securityConfig.jwtSigning.volumeWrite=false",
]
LABELS = "/tmp/common-labels-values.yaml"
with open(LABELS, "w") as f:
yaml.safe_dump({"commonLabels": {
"example.com/team": "storage",
"example.com/release": "{{ .Release.Name }}",
"team": "common", # also set by master.ingress.labels
"release": "common", # also set by monitoring.additionalLabels
"app.kubernetes.io/component": "hijack",
"app.kubernetes.io/instance": "hijack",
}}, f)
EXPECTED = {
"example.com/team": "storage",
"example.com/release": "test",
"team": "common",
"release": "common",
}
def render(extra):
out = subprocess.check_output(["helm", "template", "test", chart] + BASE + extra, text=True)
docs = {}
for d in yaml.load_all(out, Loader=NoDuplicates):
if not d:
continue
# generated credentials differ between renders
if d["kind"] == "Secret" and d["metadata"]["name"].endswith(
("-s3-secret", "-sftp-secret", "-sftp-ssh-secret")
):
d.pop("data", None)
d.pop("stringData", None)
docs[(d["kind"], d["metadata"]["name"])] = d
return docs
plain, labelled = render([]), render(["-f", LABELS])
failed = []
if set(plain) != set(labelled):
failed.append(f"commonLabels changed the set of objects: {set(plain) ^ set(labelled)}")
for key, d in labelled.items():
if key not in plain:
continue
before = plain[key]["metadata"].get("labels") or {}
labels = d["metadata"].get("labels") or {}
for k, v in EXPECTED.items():
if k in before:
continue
if labels.get(k) != v:
failed.append(f"{key}: {k}={labels.get(k)!r}, want {v!r}")
# labels the chart or an object-specific value sets are never overridden
for k, v in before.items():
if labels.get(k) != v:
failed.append(f"{key}: {k} changed from {v!r} to {labels.get(k)!r}")
# nothing else changes: selectors, pod templates, volumeClaimTemplates, checksums
stripped = copy.deepcopy(d)
rest = {k: v for k, v in labels.items() if k in before}
if rest or "labels" in plain[key]["metadata"]:
stripped["metadata"]["labels"] = rest
else:
stripped["metadata"].pop("labels", None)
if stripped != plain[key]:
failed.append(f"{key}: commonLabels changed more than metadata.labels")
if failed:
print("\nFAIL:", file=sys.stderr)
for f in failed:
print(f" - {f}", file=sys.stderr)
sys.exit(1)
print(f"{len(labelled)} objects carry commonLabels and are otherwise unchanged")
PYEOF
# an empty value renders exactly like the default
helm template test $CHART_DIR --set-string 'commonLabels=' > /tmp/common-labels-empty.yaml
cmp /tmp/default.yaml /tmp/common-labels-empty.yaml
# the whole value may be a template rendering to a map, e.g. a parent chart's labels
echo "commonLabels: 'example.com/owner: {{ .Release.Name }}'" > /tmp/common-labels-string-values.yaml
helm template test $CHART_DIR --show-only templates/master/master-service.yaml \
-f /tmp/common-labels-string-values.yaml > /tmp/common-labels-string.yaml
grep -q "^ example.com/owner: test$" /tmp/common-labels-string.yaml
if helm template test $CHART_DIR --set-json 'commonLabels=["a"]' > /dev/null 2>&1; then
echo "a commonLabels that is not a map must fail the render"; exit 1
fi
echo "commonLabels tests passed"
echo ""
echo "=== Testing namespaceOverride ==="
NS_ARGS=(
--set s3.enabled=true --set s3.enableAuth=true
--set 's3.createBuckets[0].name=data'
--set sftp.enabled=true --set sftp.enableAuth=true
--set admin.enabled=true --set admin.secret.adminPassword=ci
--set worker.enabled=true
--set cosi.enabled=true --set cosi.bucketClassName=seaweedfs
--set global.seaweedfs.enableSecurity=true
--set global.seaweedfs.monitoring.enabled=true
--set networkPolicy.enabled=true
--set volumes.extra.replicas=1
)
helm template test $CHART_DIR --namespace release-ns "${NS_ARGS[@]}" \
--set namespaceOverride=other-ns > /tmp/ns-override.yaml
helm template test $CHART_DIR --namespace release-ns \
--set allInOne.enabled=true --set allInOne.s3.enabled=true \
--set master.enabled=false --set volume.enabled=false --set filer.enabled=false \
--set 'allInOne.s3.createBuckets[0].name=data' \
--set global.seaweedfs.enableSecurity=true \
--set namespaceOverride=other-ns > /tmp/ns-override-aio.yaml
grep -q 'kind: Job' /tmp/ns-override-aio.yaml
python3 - /tmp/ns-override.yaml /tmp/ns-override-aio.yaml <<'PYEOF'
import sys, yaml
CLUSTER_SCOPED = {"ClusterRole", "ClusterRoleBinding", "BucketClass", "BucketAccessClass"}
failed = []
for path in sys.argv[1:]:
text = open(path).read()
if "release-ns" in text:
failed.append(f"{path}: release namespace still rendered")
for d in yaml.safe_load_all(text):
if not d:
continue
kind, md = d["kind"], d["metadata"]
if kind in CLUSTER_SCOPED:
for s in d.get("subjects") or []:
if s.get("namespace") != "other-ns":
failed.append(f"{path}: {kind}/{md['name']} subject in {s.get('namespace')!r}")
elif md.get("namespace") != "other-ns":
failed.append(f"{path}: {kind}/{md['name']} in {md.get('namespace')!r}")
if failed:
print("\n".join(failed), file=sys.stderr)
sys.exit(1)
PYEOF
grep -q -- '-filer=test-seaweedfs-filer-client.other-ns:' /tmp/ns-override.yaml
grep -q 'test-seaweedfs-master-0.test-seaweedfs-master.other-ns:' /tmp/ns-override.yaml
grep -qF "'*.other-ns.svc.cluster.local'" /tmp/ns-override.yaml
# Setting it to the release namespace changes nothing.
helm template test $CHART_DIR --namespace release-ns > /tmp/ns-default.yaml
helm template test $CHART_DIR --namespace release-ns \
--set namespaceOverride=release-ns > /tmp/ns-same.yaml
diff /tmp/ns-default.yaml /tmp/ns-same.yaml
echo "namespaceOverride moves every namespaced object and address"
echo "All template rendering tests passed!" echo "All template rendering tests passed!"
- name: Resolve an image tag that is published - name: Resolve an image tag that is published
@@ -2255,38 +1993,6 @@ jobs:
kubectl delete namespace "$NS" kubectl delete namespace "$NS"
echo "SFTP host key lifecycle tests passed" echo "SFTP host key lifecycle tests passed"
- name: Verify the filer db secret survives uninstall and install
run: |
set -e
CHART_DIR="k8s/charts/seaweedfs"
NS="filer-db-secret"
SECRET="db-seaweedfs-db-secret"
DB_ARGS="--set image.tag=$IMAGE_TAG --set-string filer.extraEnvironmentVars.WEED_MYSQL_ENABLED=true --set master.enabled=false --set volume.enabled=false"
kubectl create namespace "$NS"
echo "=== install generates the db credentials ==="
helm install db $CHART_DIR -n "$NS" $DB_ARGS
[ "$(kubectl get secret "$SECRET" -n "$NS" -o jsonpath='{.data.user}' | base64 -d)" = YourSWUser ] \
|| { echo "FAIL: install did not create the default user"; exit 1; }
[ "$(kubectl get secret "$SECRET" -n "$NS" -o jsonpath='{.data.password}' | base64 -d | wc -c)" -eq 32 ] \
|| { echo "FAIL: install did not generate a 32-character password"; exit 1; }
echo "=== credentials in the kept Secret survive uninstall and install ==="
PASSWORD='p"a\ss: #x {{ .Values }}'
kubectl patch secret "$SECRET" -n "$NS" --type merge \
-p "$(jq -n --arg p "$PASSWORD" '{stringData: {user: "seaweed_app", password: $p}}')"
helm uninstall db -n "$NS"
kubectl get secret "$SECRET" -n "$NS" >/dev/null || { echo "FAIL: uninstall removed the db secret"; exit 1; }
helm install db $CHART_DIR -n "$NS" $DB_ARGS
[ "$(kubectl get secret "$SECRET" -n "$NS" -o jsonpath='{.data.user}' | base64 -d)" = seaweed_app ] \
|| { echo "FAIL: reinstall reset the db user"; exit 1; }
[ "$(kubectl get secret "$SECRET" -n "$NS" -o jsonpath='{.data.password}' | base64 -d)" = "$PASSWORD" ] \
|| { echo "FAIL: reinstall replaced the db password"; exit 1; }
helm uninstall db -n "$NS"
kubectl delete namespace "$NS"
echo "Filer db secret reinstall test passed"
- name: Verify JWT signing key persistence across upgrades - name: Verify JWT signing key persistence across upgrades
run: | run: |
# chart-testing puts its pip-less venv first on PATH; use setup-python. # chart-testing puts its pip-less venv first on PATH; use setup-python.
+1 -7
View File
@@ -14,10 +14,6 @@ on:
- 'weed/**' - 'weed/**'
- '.github/workflows/java_integration_tests.yml' - '.github/workflows/java_integration_tests.yml'
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || (github.event_name == 'push' && github.ref) || github.run_id }}
cancel-in-progress: ${{ github.event_name == 'pull_request' || (github.event_name == 'push' && !startsWith(github.ref, 'refs/tags/')) }}
jobs: jobs:
test: test:
name: Java Integration Tests name: Java Integration Tests
@@ -35,7 +31,6 @@ jobs:
uses: actions/setup-go@v7 uses: actions/setup-go@v7
with: with:
go-version-file: 'go.mod' go-version-file: 'go.mod'
cache: ${{ runner.environment == 'github-hosted' }}
id: go id: go
- name: Set up Java - name: Set up Java
@@ -43,7 +38,7 @@ jobs:
with: with:
java-version: ${{ matrix.java }} java-version: ${{ matrix.java }}
distribution: 'temurin' distribution: 'temurin'
cache: ${{ runner.environment == 'github-hosted' && 'maven' || '' }} cache: 'maven'
- name: Build SeaweedFS - name: Build SeaweedFS
run: | run: |
@@ -60,7 +55,6 @@ jobs:
# Start SeaweedFS with optimized settings for CI # Start SeaweedFS with optimized settings for CI
# Include S3 API for s3copier integration tests # Include S3 API for s3copier integration tests
weed server -dir="$WEED_DATA_DIR" \ weed server -dir="$WEED_DATA_DIR" \
-ip=127.0.0.1 -ip.bind=127.0.0.1 \
-master.raftHashicorp \ -master.raftHashicorp \
-master.electionTimeout=1s \ -master.electionTimeout=1s \
-master.volumeSizeLimitMB=100 \ -master.volumeSizeLimitMB=100 \
+1 -1
View File
@@ -77,7 +77,7 @@ jobs:
with: with:
java-version: '17' java-version: '17'
distribution: 'temurin' distribution: 'temurin'
cache: ${{ runner.environment == 'github-hosted' && 'maven' || '' }} cache: 'maven'
server-id: central server-id: central
server-username: MAVEN_CENTRAL_USERNAME server-username: MAVEN_CENTRAL_USERNAME
server-password: MAVEN_CENTRAL_PASSWORD server-password: MAVEN_CENTRAL_PASSWORD
+1 -5
View File
@@ -12,10 +12,6 @@ on:
- 'other/java/**' - 'other/java/**'
- '.github/workflows/java_unit_tests.yml' - '.github/workflows/java_unit_tests.yml'
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || (github.event_name == 'push' && github.ref) || github.run_id }}
cancel-in-progress: ${{ github.event_name == 'pull_request' || (github.event_name == 'push' && !startsWith(github.ref, 'refs/tags/')) }}
jobs: jobs:
test: test:
name: Java Unit Tests name: Java Unit Tests
@@ -34,7 +30,7 @@ jobs:
with: with:
java-version: ${{ matrix.java }} java-version: ${{ matrix.java }}
distribution: 'temurin' distribution: 'temurin'
cache: ${{ runner.environment == 'github-hosted' && 'maven' || '' }} cache: 'maven'
- name: Build and Install SeaweedFS Client - name: Build and Install SeaweedFS Client
working-directory: other/java/client working-directory: other/java/client
+3 -3
View File
@@ -24,8 +24,8 @@ on:
workflow_dispatch: # Allow manual trigger workflow_dispatch: # Allow manual trigger
concurrency: concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || (github.event_name == 'push' && github.ref) || github.run_id }} group: ${{ github.head_ref }}/kafka-quicktest
cancel-in-progress: ${{ github.event_name == 'pull_request' || (github.event_name == 'push' && !startsWith(github.ref, 'refs/tags/')) }} cancel-in-progress: true
permissions: permissions:
contents: read contents: read
@@ -43,7 +43,7 @@ jobs:
uses: actions/setup-go@v7 uses: actions/setup-go@v7
with: with:
go-version: ^1.26 go-version: ^1.26
cache: ${{ runner.environment == 'github-hosted' }} cache: true
cache-dependency-path: | cache-dependency-path: |
**/go.sum **/go.sum
id: go id: go
+6 -9
View File
@@ -23,8 +23,8 @@ on:
- '.github/workflows/kafka-tests.yml' - '.github/workflows/kafka-tests.yml'
concurrency: concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || (github.event_name == 'push' && github.ref) || github.run_id }} group: ${{ github.head_ref }}/kafka-tests
cancel-in-progress: ${{ github.event_name == 'pull_request' || (github.event_name == 'push' && !startsWith(github.ref, 'refs/tags/')) }} cancel-in-progress: true
# Force different runners for better isolation # Force different runners for better isolation
env: env:
@@ -53,7 +53,6 @@ jobs:
- name: Set up Go 1.x - name: Set up Go 1.x
uses: actions/setup-go@v7 uses: actions/setup-go@v7
with: with:
cache: ${{ runner.environment == 'github-hosted' }}
go-version: ^1.26 go-version: ^1.26
id: go id: go
@@ -99,7 +98,6 @@ jobs:
- name: Set up Go 1.x - name: Set up Go 1.x
uses: actions/setup-go@v7 uses: actions/setup-go@v7
with: with:
cache: ${{ runner.environment == 'github-hosted' }}
go-version: ^1.26 go-version: ^1.26
id: go id: go
@@ -151,7 +149,7 @@ jobs:
uses: actions/setup-go@v7 uses: actions/setup-go@v7
with: with:
go-version: ^1.26 go-version: ^1.26
cache: ${{ runner.environment == 'github-hosted' }} cache: true
cache-dependency-path: | cache-dependency-path: |
**/go.sum **/go.sum
id: go id: go
@@ -330,7 +328,7 @@ jobs:
uses: actions/setup-go@v7 uses: actions/setup-go@v7
with: with:
go-version: ^1.26 go-version: ^1.26
cache: ${{ runner.environment == 'github-hosted' }} cache: true
cache-dependency-path: | cache-dependency-path: |
**/go.sum **/go.sum
id: go id: go
@@ -492,7 +490,7 @@ jobs:
uses: actions/setup-go@v7 uses: actions/setup-go@v7
with: with:
go-version: ^1.26 go-version: ^1.26
cache: ${{ runner.environment == 'github-hosted' }} cache: true
cache-dependency-path: | cache-dependency-path: |
**/go.sum **/go.sum
id: go id: go
@@ -650,7 +648,7 @@ jobs:
uses: actions/setup-go@v7 uses: actions/setup-go@v7
with: with:
go-version: ^1.26 go-version: ^1.26
cache: ${{ runner.environment == 'github-hosted' }} cache: true
cache-dependency-path: | cache-dependency-path: |
**/go.sum **/go.sum
id: go id: go
@@ -807,7 +805,6 @@ jobs:
- name: Set up Go 1.x - name: Set up Go 1.x
uses: actions/setup-go@v7 uses: actions/setup-go@v7
with: with:
cache: ${{ runner.environment == 'github-hosted' }}
go-version: ^1.26 go-version: ^1.26
id: go id: go
+4 -6
View File
@@ -19,8 +19,8 @@ on:
- 'test/kms/**' - 'test/kms/**'
concurrency: concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || (github.event_name == 'push' && github.ref) || github.run_id }} group: ${{ github.head_ref || github.ref }}-kms-tests
cancel-in-progress: ${{ github.event_name == 'pull_request' || (github.event_name == 'push' && !startsWith(github.ref, 'refs/tags/')) }} cancel-in-progress: true
permissions: permissions:
contents: read contents: read
@@ -32,7 +32,7 @@ defaults:
jobs: jobs:
kms-provider-tests: kms-provider-tests:
name: KMS Provider Integration Tests name: KMS Provider Integration Tests
runs-on: ubuntu-24.04 runs-on: ubuntu-22.04
timeout-minutes: 20 timeout-minutes: 20
steps: steps:
@@ -43,7 +43,6 @@ jobs:
uses: actions/setup-go@v7 uses: actions/setup-go@v7
with: with:
go-version-file: 'go.mod' go-version-file: 'go.mod'
cache: ${{ runner.environment == 'github-hosted' }}
id: go id: go
- name: Install SeaweedFS - name: Install SeaweedFS
@@ -78,7 +77,7 @@ jobs:
s3-kms-e2e-tests: s3-kms-e2e-tests:
name: S3 KMS End-to-End Tests name: S3 KMS End-to-End Tests
runs-on: ubuntu-24.04 runs-on: ubuntu-22.04
timeout-minutes: 25 timeout-minutes: 25
steps: steps:
@@ -89,7 +88,6 @@ jobs:
uses: actions/setup-go@v7 uses: actions/setup-go@v7
with: with:
go-version-file: 'go.mod' go-version-file: 'go.mod'
cache: ${{ runner.environment == 'github-hosted' }}
id: go id: go
- name: Install SeaweedFS - name: Install SeaweedFS
@@ -21,8 +21,8 @@ on:
- '.github/workflows/master-cold-start-tests.yml' - '.github/workflows/master-cold-start-tests.yml'
concurrency: concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || (github.event_name == 'push' && github.ref) || github.run_id }} group: ${{ github.head_ref || github.ref }}/master-cold-start-tests
cancel-in-progress: ${{ github.event_name == 'pull_request' || (github.event_name == 'push' && !startsWith(github.ref, 'refs/tags/')) }} cancel-in-progress: true
permissions: permissions:
contents: read contents: read
@@ -30,7 +30,7 @@ permissions:
jobs: jobs:
master-cold-start-tests: master-cold-start-tests:
name: Master Cold Start Tests name: Master Cold Start Tests
runs-on: ubuntu-24.04 runs-on: ubuntu-22.04
timeout-minutes: 10 timeout-minutes: 10
steps: steps:
- name: Check out code - name: Check out code
@@ -42,7 +42,6 @@ jobs:
uses: actions/setup-go@v7 uses: actions/setup-go@v7
with: with:
go-version-file: 'go.mod' go-version-file: 'go.mod'
cache: ${{ runner.environment == 'github-hosted' }}
- name: Build weed binary - name: Build weed binary
run: | run: |
@@ -25,8 +25,8 @@ on:
- '.github/workflows/metadata-subscribe-tests.yml' - '.github/workflows/metadata-subscribe-tests.yml'
concurrency: concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || (github.event_name == 'push' && github.ref) || github.run_id }} group: ${{ github.head_ref }}/metadata-subscribe-tests
cancel-in-progress: ${{ github.event_name == 'pull_request' || (github.event_name == 'push' && !startsWith(github.ref, 'refs/tags/')) }} cancel-in-progress: true
permissions: permissions:
contents: read contents: read
@@ -37,7 +37,7 @@ env:
jobs: jobs:
metadata-subscribe-integration: metadata-subscribe-integration:
name: Metadata Subscribe Integration Tests name: Metadata Subscribe Integration Tests
runs-on: ubuntu-24.04 runs-on: ubuntu-22.04
timeout-minutes: 20 timeout-minutes: 20
steps: steps:
@@ -48,7 +48,6 @@ jobs:
uses: actions/setup-go@v7 uses: actions/setup-go@v7
with: with:
go-version-file: 'go.mod' go-version-file: 'go.mod'
cache: ${{ runner.environment == 'github-hosted' }}
- name: Build SeaweedFS - name: Build SeaweedFS
run: | run: |
+2 -4
View File
@@ -10,8 +10,8 @@ on:
branches: [ 'winfsp-bench**' ] branches: [ 'winfsp-bench**' ]
concurrency: concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || (github.event_name == 'push' && github.ref) || github.run_id }} group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: ${{ github.event_name == 'pull_request' || (github.event_name == 'push' && !startsWith(github.ref, 'refs/tags/')) }} cancel-in-progress: true
permissions: permissions:
contents: read contents: read
@@ -32,7 +32,6 @@ jobs:
- uses: actions/setup-go@v7 - uses: actions/setup-go@v7
with: with:
go-version-file: 'go.mod' go-version-file: 'go.mod'
cache: ${{ runner.environment == 'github-hosted' }}
- name: Install WinFsp and rclone - name: Install WinFsp and rclone
run: choco install winfsp rclone -y --no-progress run: choco install winfsp rclone -y --no-progress
@@ -151,7 +150,6 @@ jobs:
- uses: actions/setup-go@v7 - uses: actions/setup-go@v7
with: with:
go-version-file: 'go.mod' go-version-file: 'go.mod'
cache: ${{ runner.environment == 'github-hosted' }}
- name: Repair the fusermount3 setuid bit - name: Repair the fusermount3 setuid bit
uses: ./.github/actions/fix-fusermount-setuid uses: ./.github/actions/fix-fusermount-setuid
@@ -24,8 +24,8 @@ on:
- '.github/workflows/mount-windows-conformance.yml' - '.github/workflows/mount-windows-conformance.yml'
concurrency: concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || (github.event_name == 'push' && github.ref) || github.run_id }} group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: ${{ github.event_name == 'pull_request' || (github.event_name == 'push' && !startsWith(github.ref, 'refs/tags/')) }} cancel-in-progress: true
permissions: permissions:
contents: read contents: read
@@ -49,7 +49,6 @@ jobs:
- uses: actions/setup-go@v7 - uses: actions/setup-go@v7
with: with:
go-version-file: 'go.mod' go-version-file: 'go.mod'
cache: ${{ runner.environment == 'github-hosted' }}
# cgofuse loads winfsp-x64.dll at run time, so WinFsp is needed here but # cgofuse loads winfsp-x64.dll at run time, so WinFsp is needed here but
# not to build. # not to build.
+2 -3
View File
@@ -24,8 +24,8 @@ on:
- '.github/workflows/mount-windows.yml' - '.github/workflows/mount-windows.yml'
concurrency: concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || (github.event_name == 'push' && github.ref) || github.run_id }} group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: ${{ github.event_name == 'pull_request' || (github.event_name == 'push' && !startsWith(github.ref, 'refs/tags/')) }} cancel-in-progress: true
permissions: permissions:
contents: read contents: read
@@ -49,7 +49,6 @@ jobs:
- uses: actions/setup-go@v7 - uses: actions/setup-go@v7
with: with:
go-version-file: 'go.mod' go-version-file: 'go.mod'
cache: ${{ runner.environment == 'github-hosted' }}
# cgofuse loads winfsp-x64.dll at run time, so WinFsp is needed here but # cgofuse loads winfsp-x64.dll at run time, so WinFsp is needed here but
# not to build. # not to build.
+3 -4
View File
@@ -21,8 +21,8 @@ on:
- '.github/workflows/multi-master-tests.yml' - '.github/workflows/multi-master-tests.yml'
concurrency: concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || (github.event_name == 'push' && github.ref) || github.run_id }} group: ${{ github.head_ref || github.ref }}/multi-master-tests
cancel-in-progress: ${{ github.event_name == 'pull_request' || (github.event_name == 'push' && !startsWith(github.ref, 'refs/tags/')) }} cancel-in-progress: true
permissions: permissions:
contents: read contents: read
@@ -30,7 +30,7 @@ permissions:
jobs: jobs:
multi-master-failover-tests: multi-master-failover-tests:
name: Multi-Master Failover Tests name: Multi-Master Failover Tests
runs-on: ubuntu-24.04 runs-on: ubuntu-22.04
timeout-minutes: 10 timeout-minutes: 10
steps: steps:
- name: Check out code - name: Check out code
@@ -40,7 +40,6 @@ jobs:
uses: actions/setup-go@v7 uses: actions/setup-go@v7
with: with:
go-version-file: 'go.mod' go-version-file: 'go.mod'
cache: ${{ runner.environment == 'github-hosted' }}
- name: Install SeaweedFS - name: Install SeaweedFS
run: | run: |
+4 -7
View File
@@ -45,8 +45,8 @@ on:
type: string type: string
concurrency: concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || (github.event_name == 'push' && github.ref) || github.run_id }} group: ${{ github.head_ref || github.ref }}/performance
cancel-in-progress: ${{ github.event_name == 'pull_request' || (github.event_name == 'push' && !startsWith(github.ref, 'refs/tags/')) }} cancel-in-progress: true
permissions: permissions:
contents: read contents: read
@@ -67,7 +67,6 @@ jobs:
uses: actions/setup-go@v7 uses: actions/setup-go@v7
with: with:
go-version-file: 'go.mod' go-version-file: 'go.mod'
cache: ${{ runner.environment == 'github-hosted' }}
- name: Build weed - name: Build weed
run: go build -o weed_bin ./weed run: go build -o weed_bin ./weed
@@ -176,14 +175,13 @@ jobs:
uses: actions/setup-go@v7 uses: actions/setup-go@v7
with: with:
go-version-file: 'go.mod' go-version-file: 'go.mod'
cache: ${{ runner.environment == 'github-hosted' }}
- name: Install Rust toolchain - name: Install Rust toolchain
if: matrix.impl == 'rust' if: matrix.impl == 'rust'
uses: dtolnay/rust-toolchain@stable uses: dtolnay/rust-toolchain@stable
- name: Cache cargo registry and target - name: Cache cargo registry and target
if: matrix.impl == 'rust' && runner.environment == 'github-hosted' if: matrix.impl == 'rust'
uses: actions/cache@v6 uses: actions/cache@v6
with: with:
path: | path: |
@@ -329,14 +327,13 @@ jobs:
uses: actions/setup-go@v7 uses: actions/setup-go@v7
with: with:
go-version-file: 'go.mod' go-version-file: 'go.mod'
cache: ${{ runner.environment == 'github-hosted' }}
- name: Install Rust toolchain - name: Install Rust toolchain
if: matrix.impl == 'rust' if: matrix.impl == 'rust'
uses: dtolnay/rust-toolchain@stable uses: dtolnay/rust-toolchain@stable
- name: Cache cargo registry and target - name: Cache cargo registry and target
if: matrix.impl == 'rust' && runner.environment == 'github-hosted' if: matrix.impl == 'rust'
uses: actions/cache@v6 uses: actions/cache@v6
with: with:
path: | path: |
+2 -10
View File
@@ -27,7 +27,7 @@ permissions:
jobs: jobs:
pjdfstest: pjdfstest:
name: pjdfstest name: pjdfstest
runs-on: ubuntu-24.04 runs-on: ubuntu-22.04
timeout-minutes: 60 timeout-minutes: 60
steps: steps:
@@ -38,23 +38,15 @@ jobs:
uses: actions/setup-go@v7 uses: actions/setup-go@v7
with: with:
go-version-file: 'go.mod' go-version-file: 'go.mod'
cache: ${{ runner.environment == 'github-hosted' }}
- name: Start local Docker registry - name: Start local Docker registry
run: | run: docker run -d --restart=always -p 5000:5000 --name registry registry:2
if ! docker start registry 2>/dev/null; then
docker rm -f registry >/dev/null 2>&1 || true
docker run -d --restart=always -p 5000:5000 --name registry registry:2
fi
- name: Set up Docker Buildx - name: Set up Docker Buildx
uses: docker/setup-buildx-action@v4 uses: docker/setup-buildx-action@v4
with: with:
driver-opts: network=host driver-opts: network=host
- name: Set up Docker Compose
uses: docker/setup-compose-action@v2
- name: Build weed race binary - name: Build weed race binary
run: | run: |
cd docker cd docker
+1 -6
View File
@@ -18,17 +18,13 @@ on:
- 'go.sum' - 'go.sum'
- '.github/workflows/plugin-workers.yml' - '.github/workflows/plugin-workers.yml'
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || (github.event_name == 'push' && github.ref) || github.run_id }}
cancel-in-progress: ${{ github.event_name == 'pull_request' || (github.event_name == 'push' && !startsWith(github.ref, 'refs/tags/')) }}
permissions: permissions:
contents: read contents: read
jobs: jobs:
plugin-worker: plugin-worker:
name: "Plugin Worker: ${{ matrix.worker }}" name: "Plugin Worker: ${{ matrix.worker }}"
runs-on: ubuntu-24.04 runs-on: ubuntu-22.04
timeout-minutes: 10 timeout-minutes: 10
strategy: strategy:
fail-fast: false fail-fast: false
@@ -45,7 +41,6 @@ jobs:
- name: Set up Go 1.x - name: Set up Go 1.x
uses: actions/setup-go@v7 uses: actions/setup-go@v7
with: with:
cache: ${{ runner.environment == 'github-hosted' }}
go-version: ^1.26 go-version: ^1.26
id: go id: go
-791
View File
@@ -1,791 +0,0 @@
name: POSIX Compliance Tests
on:
push:
branches: [ main, master, develop ]
paths:
- 'weed/mount/**'
- 'weed/command/mount*'
- 'weed/command/fuse*'
- 'test/fuse_integration/**'
pull_request:
branches: [ main, master, develop ]
paths:
- 'weed/mount/**'
- 'weed/command/mount*'
- 'weed/command/fuse*'
- 'test/fuse_integration/**'
workflow_dispatch:
inputs:
test_type:
description: 'Type of POSIX tests to run (default: full for comprehensive testing)'
required: true
default: 'full'
type: choice
options:
- critical
- basic
- extended
- full
enable_external_tests:
description: 'Run external test suites (slower)'
required: false
default: false
type: boolean
permissions:
contents: read
pull-requests: write
issues: write
env:
GO_VERSION: '1.26'
TIMEOUT: '45m'
jobs:
posix-compliance-ubuntu:
runs-on: ubuntu-latest
timeout-minutes: 60
strategy:
matrix:
fuse-version: ['2.9', '3.0']
fail-fast: false
steps:
- name: Checkout code
uses: actions/checkout@v7
with:
fetch-depth: 1
- name: Clean up stale FUSE mounts
uses: ./.github/actions/cleanup-stale-fuse-mounts
- name: Set up Go ${{ env.GO_VERSION }}
uses: actions/setup-go@v7
with:
go-version: ${{ env.GO_VERSION }}
cache: ${{ runner.environment == 'github-hosted' }}
cache-dependency-path: |
go.sum
test/fuse_integration/go.sum
- name: Install system dependencies
run: |
sudo apt-get update
sudo apt-get install -y \
attr \
acl \
build-essential \
git \
python3-pip
# Install FUSE version specific packages
if [ "${{ matrix.fuse-version }}" = "2.9" ]; then
echo "Installing FUSE 2.9..."
sudo apt-get install -y fuse libfuse-dev
elif [ "${{ matrix.fuse-version }}" = "3.0" ]; then
echo "Installing FUSE 3.0..."
sudo apt-get install -y fuse3 libfuse3-dev
# Also install fuse2 for compatibility if needed
sudo apt-get install -y fuse libfuse-dev
fi
- name: Set up user permissions for FUSE
run: |
# Create fuse group if it doesn't exist
sudo groupadd -f fuse
# Add user to fuse group
sudo usermod -a -G fuse $USER
# Set permissions on FUSE device
sudo chmod 666 /dev/fuse
# Allow non-root mounts to pass -o allow_other (weed -allowOthers)
echo 'user_allow_other' | sudo tee -a /etc/fuse.conf
sudo chmod 644 /etc/fuse.conf
# Ensure fuse module is loaded
sudo modprobe fuse || true
# Verify setup
echo "FUSE setup verification:"
ls -la /dev/fuse
groups $USER | grep fuse || echo "User not in fuse group yet (will be effective after login)"
lsmod | grep fuse || echo "FUSE module not loaded"
- name: Install external test tools
if: ${{ github.event.inputs.enable_external_tests == 'true' }}
run: |
# Install nfstest for POSIX API verification
pip3 install --user nfstest
# Install FIO for performance testing
sudo apt-get install -y fio
# Install additional test utilities
sudo apt-get install -y stress-ng
- name: Build SeaweedFS
run: |
make
# Verify binary exists and is executable (it's installed to GOPATH/bin)
weed version
# Make weed binary available in PATH (it's already there from go install)
sudo cp $(which weed) /usr/local/bin/weed
which weed
weed version
- name: Set up SeaweedFS cluster
run: |
start_and_wait() {
local name=$1
local url=$2
local pidfile=$3
shift 3
local cmd="$@"
echo "Starting $name..."
$cmd > "/tmp/seaweedfs/$name.log" 2>&1 &
local pid=$!
echo $pid > "$pidfile"
echo "Waiting for $name to start..."
for i in {1..30}; do
if curl -sf "$url" > /dev/null 2>&1; then
echo "$name is ready"
return 0
fi
if [ $i -eq 30 ]; then
echo "$name failed to start"
cat "/tmp/seaweedfs/$name.log"
exit 1
fi
sleep 2
done
}
mkdir -p /tmp/seaweedfs/{master,volume,filer,mount}
start_and_wait "master" "http://127.0.0.1:9333/cluster/status" "/tmp/seaweedfs/master.pid" \
"weed master -ip=127.0.0.1 -port=9333 -mdir=/tmp/seaweedfs/master -raftBootstrap=true"
start_and_wait "volume" "http://127.0.0.1:8080/status" "/tmp/seaweedfs/volume.pid" \
"weed volume -mserver=127.0.0.1:9333 -ip=127.0.0.1 -port=8080 -dir=/tmp/seaweedfs/volume -max=100"
start_and_wait "filer" "http://127.0.0.1:8888/" "/tmp/seaweedfs/filer.pid" \
"weed filer -master=127.0.0.1:9333 -ip=127.0.0.1 -port=8888"
echo "SeaweedFS cluster status:"
curl -s http://127.0.0.1:9333/cluster/status || true
- name: Set up FUSE mount
run: |
# Create mount point
MOUNT_POINT="/tmp/seaweedfs/mount"
mkdir -p $MOUNT_POINT
echo "Mounting SeaweedFS FUSE filesystem..."
# Mount SeaweedFS FUSE filesystem in background
weed mount \
-filer=127.0.0.1:8888 \
-dir=$MOUNT_POINT \
-filer.path=/ \
-dirAutoCreate=true \
-allowOthers=true \
-nonempty=true \
> /tmp/seaweedfs/mount.log 2>&1 &
MOUNT_PID=$!
echo $MOUNT_PID > /tmp/seaweedfs/mount.pid
# Wait for mount to be ready. The mount point directory already
# exists, so only a real mount counts — a directory listing would
# pass on the local disk even if weed mount died.
echo "Waiting for FUSE mount to be ready..."
for i in {1..30}; do
if mountpoint -q $MOUNT_POINT 2>/dev/null; then
echo "FUSE mount is ready"
break
fi
if ! kill -0 $MOUNT_PID 2>/dev/null; then
echo "FUSE mount process exited"
cat /tmp/seaweedfs/mount.log
exit 1
fi
if [ $i -eq 30 ]; then
echo "FUSE mount failed to be ready"
cat /tmp/seaweedfs/mount.log
echo "Mount status:"
mount | grep fuse || echo "No FUSE mounts found"
ps aux | grep weed || echo "No weed processes found"
exit 1
fi
sleep 2
done
# Verify mount is working
echo "Testing FUSE mount functionality..."
echo "test" > $MOUNT_POINT/test_file.txt
if [ "$(cat $MOUNT_POINT/test_file.txt)" = "test" ]; then
echo "FUSE mount is working correctly"
rm $MOUNT_POINT/test_file.txt
else
echo "FUSE mount is not working properly"
exit 1
fi
# Export mount point for tests
echo "SEAWEEDFS_MOUNT_POINT=$MOUNT_POINT" >> $GITHUB_ENV
- name: Set up test environment
run: |
cd test/fuse_integration
# Initialize Go module for tests
if [ ! -f go.mod ]; then
go mod init seaweedfs-posix-tests
go mod tidy
fi
# Create reports directory
mkdir -p reports
# Set up external tools if requested
# Note: External tools setup is now optional and won't fail the build
if [ "${{ github.event.inputs.enable_external_tests }}" = "true" ]; then
echo "Setting up external POSIX testing tools..."
make -f posix_Makefile setup-external-tools || true
# setup-external-tools exits 0 even when a sub-target failed, so
# require the tools only when they are actually installed
if [ -d external_tools/pjdfstest ] && command -v nfstest_posix >/dev/null 2>&1; then
export POSIX_REQUIRE_EXTERNAL_TOOLS="true"
echo "POSIX_REQUIRE_EXTERNAL_TOOLS=true" >> $GITHUB_ENV
echo "✅ External tools setup completed successfully"
else
echo "⚠️ External tools setup incomplete - continuing with basic tests only"
echo "External tools will be skipped but tests will continue"
echo "This is expected behavior when build tools are not available"
fi
fi
# Verify SeaweedFS cluster is accessible
echo "Verifying SeaweedFS cluster accessibility..."
curl -sf http://127.0.0.1:9333/cluster/status
curl -sf http://127.0.0.1:8080/status
curl -sf http://127.0.0.1:8888/
# Verify mount point
echo "Mount point: $SEAWEEDFS_MOUNT_POINT"
ls -la $SEAWEEDFS_MOUNT_POINT
# Verify mount is actually working by testing file operations
echo "Verifying SeaweedFS mount functionality..."
TEST_FILE="$SEAWEEDFS_MOUNT_POINT/.mount_verification_test"
echo "SeaweedFS mount test" > "$TEST_FILE"
if [ "$(cat "$TEST_FILE")" = "SeaweedFS mount test" ]; then
echo "✅ Mount verification successful"
rm -f "$TEST_FILE"
else
echo "❌ Mount verification failed - mount may not be working properly"
exit 1
fi
# Check if this is actually a FUSE mount — the plain directory created
# above passes the file test, so without this the suite can run
# against the local disk and report a pass it never earned
if mount | grep -q "$SEAWEEDFS_MOUNT_POINT"; then
echo "✅ FUSE mount detected:"
mount | grep "$SEAWEEDFS_MOUNT_POINT"
else
echo "❌ Mount point not found in mount table - refusing to test a local directory"
exit 1
fi
- name: Run POSIX compliance tests
id: posix-tests
env:
SEAWEEDFS_MOUNT_POINT: ${{ env.SEAWEEDFS_MOUNT_POINT }}
POSIX_REQUIRE_EXTERNAL_TOOLS: ${{ env.POSIX_REQUIRE_EXTERNAL_TOOLS }}
run: |
cd test/fuse_integration
# Determine which tests to run
TEST_TYPE="${{ github.event.inputs.test_type }}"
if [ -z "$TEST_TYPE" ]; then
TEST_TYPE="full"
fi
echo "Running POSIX tests: $TEST_TYPE"
if [ "$TEST_TYPE" = "full" ]; then
echo "🚀 Running COMPREHENSIVE POSIX test suite (including external test suites)"
else
echo "Using mount point: $SEAWEEDFS_MOUNT_POINT"
fi
# Set test configuration to use our mounted filesystem
export TEST_MOUNT_POINT="$SEAWEEDFS_MOUNT_POINT"
export TEST_SKIP_CLUSTER_SETUP="true"
# Debug: Show environment variables
echo "🔍 Test Environment:"
echo " TEST_MOUNT_POINT=$TEST_MOUNT_POINT"
echo " TEST_SKIP_CLUSTER_SETUP=$TEST_SKIP_CLUSTER_SETUP"
echo " SEAWEEDFS_MOUNT_POINT=$SEAWEEDFS_MOUNT_POINT"
case "$TEST_TYPE" in
"critical")
echo "Running critical POSIX tests (basic compliance only)..."
make -f posix_Makefile test-posix-critical
;;
"basic")
echo "Running basic POSIX tests (core file operations)..."
make -f posix_Makefile test-posix-basic
;;
"extended")
echo "Running extended POSIX tests (including advanced features)..."
make -f posix_Makefile test-posix-extended
;;
"full")
echo "🚀 Running COMPREHENSIVE POSIX test suite (all tests including external)..."
echo " This includes: basic, extended, and external test suites"
echo " External suites: pjdfstest, nfstest_posix, and custom stress tests"
make -f posix_Makefile test-posix-full
;;
*)
echo "Unknown test type: $TEST_TYPE, defaulting to full suite"
echo "🚀 Running full POSIX test suite (all tests including external)..."
make -f posix_Makefile test-posix-full
;;
esac
- name: Run external test suites
if: ${{ github.event.inputs.enable_external_tests == 'true' }}
continue-on-error: true
run: |
cd test/fuse_integration
# Point the external suites at the same mount as the Go tests;
# without these the Makefile falls back to a local-disk path.
export TEST_MOUNT_POINT="$SEAWEEDFS_MOUNT_POINT"
export TEST_SKIP_CLUSTER_SETUP="true"
# Run external tests (may fail on some systems)
make -f posix_Makefile test-nfstest-posix || echo "nfstest failed or not available"
make -f posix_Makefile test-fio-posix || echo "FIO tests failed or not available"
- name: Generate compliance report
if: always()
run: |
cd test/fuse_integration
make -f posix_Makefile generate-report
- name: Collect system information for debugging
if: failure()
run: |
cd test/fuse_integration
mkdir -p reports/debug
echo "System Information" > reports/debug/system_info.txt
uname -a >> reports/debug/system_info.txt
echo "" >> reports/debug/system_info.txt
echo "Mount Information" >> reports/debug/system_info.txt
mount >> reports/debug/system_info.txt
echo "" >> reports/debug/system_info.txt
echo "Disk Space" >> reports/debug/system_info.txt
timeout 15 df -h >> reports/debug/system_info.txt || true
echo "" >> reports/debug/system_info.txt
echo "Memory Information" >> reports/debug/system_info.txt
free -h >> reports/debug/system_info.txt
echo "" >> reports/debug/system_info.txt
echo "FUSE Information" >> reports/debug/system_info.txt
ls -la /dev/fuse >> reports/debug/system_info.txt
lsmod | grep fuse >> reports/debug/system_info.txt
echo "" >> reports/debug/system_info.txt
echo "SeaweedFS Version" >> reports/debug/system_info.txt
weed version >> reports/debug/system_info.txt
echo "" >> reports/debug/system_info.txt
echo "Go Version" >> reports/debug/system_info.txt
go version >> reports/debug/system_info.txt
echo "" >> reports/debug/system_info.txt
echo "Running Processes" >> reports/debug/system_info.txt
ps aux | grep -E "(weed|fuse)" >> reports/debug/system_info.txt
echo "" >> reports/debug/system_info.txt
# Collect SeaweedFS service logs
echo "=== SeaweedFS Service Logs ===" >> reports/debug/system_info.txt
if [ -f /tmp/seaweedfs/master.log ]; then
echo "Master Log:" >> reports/debug/system_info.txt
tail -50 /tmp/seaweedfs/master.log >> reports/debug/system_info.txt
echo "" >> reports/debug/system_info.txt
fi
if [ -f /tmp/seaweedfs/volume.log ]; then
echo "Volume Log:" >> reports/debug/system_info.txt
tail -50 /tmp/seaweedfs/volume.log >> reports/debug/system_info.txt
echo "" >> reports/debug/system_info.txt
fi
if [ -f /tmp/seaweedfs/filer.log ]; then
echo "Filer Log:" >> reports/debug/system_info.txt
tail -50 /tmp/seaweedfs/filer.log >> reports/debug/system_info.txt
echo "" >> reports/debug/system_info.txt
fi
if [ -f /tmp/seaweedfs/mount.log ]; then
echo "Mount Log:" >> reports/debug/system_info.txt
tail -50 /tmp/seaweedfs/mount.log >> reports/debug/system_info.txt
echo "" >> reports/debug/system_info.txt
fi
# Copy full logs as separate files
if [ -f /tmp/seaweedfs/master.log ]; then
cp /tmp/seaweedfs/master.log reports/debug/master.log
fi
if [ -f /tmp/seaweedfs/volume.log ]; then
cp /tmp/seaweedfs/volume.log reports/debug/volume.log
fi
if [ -f /tmp/seaweedfs/filer.log ]; then
cp /tmp/seaweedfs/filer.log reports/debug/filer.log
fi
if [ -f /tmp/seaweedfs/mount.log ]; then
cp /tmp/seaweedfs/mount.log reports/debug/mount.log
fi
- name: Cleanup SeaweedFS cluster and FUSE mount
if: always()
run: |
stop_process() {
local name=$1
local pidfile=$2
if [ -f "$pidfile" ]; then
local pid=$(cat "$pidfile")
if kill -0 $pid 2>/dev/null; then
echo "Stopping $name process (PID: $pid)..."
kill -TERM $pid || true
sleep 2
kill -KILL $pid 2>/dev/null || true
fi
fi
}
echo "Cleaning up SeaweedFS cluster and FUSE mount..."
MOUNT_POINT="/tmp/seaweedfs/mount"
if mountpoint -q $MOUNT_POINT 2>/dev/null; then
echo "Unmounting FUSE filesystem..."
fusermount -u $MOUNT_POINT || umount $MOUNT_POINT || true
fi
stop_process "mount" "/tmp/seaweedfs/mount.pid"
stop_process "filer" "/tmp/seaweedfs/filer.pid"
stop_process "volume" "/tmp/seaweedfs/volume.pid"
stop_process "master" "/tmp/seaweedfs/master.pid"
pkill -f "weed " || true
fusermount -u $MOUNT_POINT 2>/dev/null || true
umount $MOUNT_POINT 2>/dev/null || true
rm -rf /tmp/seaweedfs || true
echo "Cleanup completed"
- name: Upload test results
uses: actions/upload-artifact@v7
if: always()
with:
name: posix-test-results-ubuntu-fuse${{ matrix.fuse-version }}
path: |
test/fuse_integration/reports/
test/fuse_integration/*.log
retention-days: 30
- name: Upload test coverage
uses: actions/upload-artifact@v7
if: always() && (github.event.inputs.test_type == 'full' || github.event.inputs.test_type == 'extended')
with:
name: posix-coverage-ubuntu
path: test/fuse_integration/reports/posix_coverage.html
retention-days: 14
- name: Comment PR with results
if: github.event_name == 'pull_request' && always()
uses: actions/github-script@v9
with:
script: |
const fs = require('fs');
const path = require('path');
const reportPath = 'test/fuse_integration/reports/posix_compliance_summary.txt';
if (fs.existsSync(reportPath)) {
const report = fs.readFileSync(reportPath, 'utf8');
const comment = `## POSIX Compliance Test Results
**Go Version:** ${{ env.GO_VERSION }}
**FUSE Version:** ${{ matrix.fuse-version }}
**Test Type:** ${{ github.event.inputs.test_type || 'full' }}
<details>
<summary>Test Summary</summary>
\`\`\`
${report}
\`\`\`
</details>
📊 Full results available in [test artifacts](https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }})
`;
try {
await github.rest.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: comment
});
} catch (err) {
console.log('Could not post PR comment: ' + err.message);
}
}
posix-compliance-macos:
runs-on: macos-latest
timeout-minutes: 60
steps:
- name: Checkout code
uses: actions/checkout@v7
- name: Set up Go
uses: actions/setup-go@v7
with:
go-version: ${{ env.GO_VERSION }}
cache: ${{ runner.environment == 'github-hosted' }}
- name: Install macFUSE
run: |
# Install macFUSE
brew install macfuse
# Note: macFUSE may require system extension approval on macOS
# This step may need manual intervention in some cases
- name: Build SeaweedFS
run: |
make
# Verify binary exists and is executable (it's installed to GOPATH/bin)
weed version
- name: Run critical POSIX tests (macOS)
continue-on-error: true # macOS FUSE can be more restrictive
run: |
cd test/fuse_integration
if [ ! -f go.mod ]; then
go mod init seaweedfs-posix-tests
go mod tidy
fi
mkdir -p reports
# Run basic tests only on macOS due to FUSE limitations
make -f posix_Makefile test-posix-critical
- name: Upload macOS test results
uses: actions/upload-artifact@v7
if: always()
with:
name: posix-test-results-macos
path: |
test/fuse_integration/reports/
test/fuse_integration/*.log
retention-days: 30
security-analysis:
runs-on: ubuntu-latest
if: github.event_name == 'pull_request'
steps:
- name: Checkout code
uses: actions/checkout@v7
- name: Set up Go
uses: actions/setup-go@v7
with:
go-version: ${{ env.GO_VERSION }}
cache: ${{ runner.environment == 'github-hosted' }}
- name: Install security analysis tools
run: |
echo "Installing staticcheck for security analysis..."
go install honnef.co/go/tools/cmd/staticcheck@latest
- name: Run security analysis on FUSE code
run: |
# Analyze mount and FUSE-related code for security and quality issues
echo "Running staticcheck security analysis..."
# Run staticcheck on FUSE-related code
echo "Analyzing FUSE mount code..."
staticcheck ./weed/mount/... > staticcheck-report.txt 2>&1 || true
staticcheck ./weed/command/mount* ./weed/command/fuse* >> staticcheck-report.txt 2>&1 || true
# Convert to JSON format for consistency
echo "{" > gosec-report.json
echo " \"tool\": \"staticcheck\"," >> gosec-report.json
echo " \"timestamp\": \"$(date -Iseconds)\"," >> gosec-report.json
echo " \"issues\": [" >> gosec-report.json
if [ -s staticcheck-report.txt ]; then
echo " \"$(cat staticcheck-report.txt | head -20 | sed 's/"/\\"/g' | tr '\n' ' ')\"" >> gosec-report.json
fi
echo " ]," >> gosec-report.json
echo " \"stats\": {" >> gosec-report.json
echo " \"files_analyzed\": $(find ./weed/mount ./weed/command -name '*.go' | wc -l)," >> gosec-report.json
echo " \"issues_found\": $(wc -l < staticcheck-report.txt 2>/dev/null || echo 0)" >> gosec-report.json
echo " }" >> gosec-report.json
echo "}" >> gosec-report.json
echo "Security analysis completed"
echo "Issues found: $(wc -l < staticcheck-report.txt 2>/dev/null || echo 0)"
- name: Upload security analysis results
uses: actions/upload-artifact@v7
if: always()
with:
name: security-analysis-results
path: gosec-report.json
retention-days: 30
performance-baseline:
runs-on: ubuntu-latest
if: github.event.inputs.test_type == 'full' || github.event_name == 'schedule'
steps:
- name: Checkout code
uses: actions/checkout@v7
- name: Set up Go
uses: actions/setup-go@v7
with:
go-version: ${{ env.GO_VERSION }}
cache: ${{ runner.environment == 'github-hosted' }}
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y fuse libfuse-dev fio
sudo usermod -a -G fuse $USER
sudo chmod 666 /dev/fuse
# The posix suites mount with -allowOthers; allow_other needs this
echo 'user_allow_other' | sudo tee -a /etc/fuse.conf
- name: Build SeaweedFS
run: make
- name: Run performance baseline tests
run: |
cd test/fuse_integration
if [ ! -f go.mod ]; then
go mod init seaweedfs-posix-tests
go mod tidy
fi
mkdir -p reports
# Run performance benchmarks
make -f posix_Makefile benchmark-posix
# This job has no FUSE mount, so the fio suite can only skip; keep the
# run green but honest about producing no mounted-FS results
make -f posix_Makefile test-fio-posix || echo "FIO skipped - no mounted filesystem in this job"
- name: Store performance baseline
uses: actions/upload-artifact@v7
with:
name: performance-baseline-results
path: |
test/fuse_integration/reports/posix_benchmark_results.log
test/fuse_integration/reports/fio_*_results.log
retention-days: 90
# Schedule regular compliance checks
scheduled-compliance-check:
runs-on: ubuntu-latest
if: github.event_name == 'schedule'
steps:
- name: Checkout code
uses: actions/checkout@v7
- name: Set up Go
uses: actions/setup-go@v7
with:
go-version: ${{ env.GO_VERSION }}
cache: ${{ runner.environment == 'github-hosted' }}
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y fuse libfuse-dev
pip3 install --user nfstest
# The posix suites mount with -allowOthers; allow_other needs this
echo 'user_allow_other' | sudo tee -a /etc/fuse.conf
- name: Build SeaweedFS
run: make
- name: Run comprehensive compliance check
run: |
cd test/fuse_integration
make -f posix_Makefile test-posix-full
make -f posix_Makefile generate-report
- name: Create compliance issue if tests fail
if: failure()
uses: actions/github-script@v9
with:
script: |
const issue = await github.rest.issues.create({
owner: context.repo.owner,
repo: context.repo.repo,
title: 'POSIX Compliance Check Failed - ' + new Date().toISOString().split('T')[0],
body: `## POSIX Compliance Check Failure
The scheduled POSIX compliance check has failed. This may indicate:
- Regression in FUSE mount functionality
- Changes affecting POSIX compatibility
- Infrastructure issues with the test environment
**Action Required:** Review the test results and investigate any failures.
**Test Run:** [Workflow Run](https://github.com/${context.repo.owner}/${context.repo.repo}/actions/runs/${context.runId})
**Date:** ${new Date().toISOString()}
---
This issue was automatically created by the POSIX compliance workflow.
`,
labels: ['bug', 'posix-compliance', 'automated-issue']
});
console.log('Created issue:', issue.data.number);
# Schedule this workflow to run weekly
# Uncomment the following lines to enable scheduled runs:
# schedule:
# - cron: '0 2 * * 1' # Every Monday at 2 AM UTC
+2 -4
View File
@@ -23,8 +23,8 @@ on:
- '.github/workflows/postgres-tests.yml' - '.github/workflows/postgres-tests.yml'
concurrency: concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || (github.event_name == 'push' && github.ref) || github.run_id }} group: ${{ github.head_ref }}/postgres-tests
cancel-in-progress: ${{ github.event_name == 'pull_request' || (github.event_name == 'push' && !startsWith(github.ref, 'refs/tags/')) }} cancel-in-progress: true
permissions: permissions:
contents: read contents: read
@@ -41,7 +41,6 @@ jobs:
- name: Set up Go 1.x - name: Set up Go 1.x
uses: actions/setup-go@v7 uses: actions/setup-go@v7
with: with:
cache: ${{ runner.environment == 'github-hosted' }}
go-version: ^1.26 go-version: ^1.26
id: go id: go
@@ -57,7 +56,6 @@ jobs:
uses: docker/setup-buildx-action@v4 uses: docker/setup-buildx-action@v4
- name: Cache Docker layers - name: Cache Docker layers
if: runner.environment == 'github-hosted'
uses: actions/cache@v6 uses: actions/cache@v6
with: with:
path: /tmp/.buildx-cache path: /tmp/.buildx-cache
-155
View File
@@ -1,155 +0,0 @@
name: "Rust Vector Tests"
on:
pull_request:
branches: [ master ]
paths:
- 'seaweed-vector/**'
- 'seaweed-volume/**'
- 'seaweed-worker/**'
- 'seaweed-common/**'
- 'weed/pb/plugin.proto'
- 'weed/pb/vector.proto'
- 'weed/pb/vector_pb/**'
- 'weed/s3api/**'
- 'weed/command/**'
- 'test/s3vectors/**'
- '.github/workflows/rust-vector-tests.yml'
push:
branches: [ master, main ]
paths:
- 'seaweed-vector/**'
- 'seaweed-volume/**'
- 'seaweed-worker/**'
- 'seaweed-common/**'
- 'weed/pb/plugin.proto'
- 'weed/pb/vector.proto'
- 'weed/pb/vector_pb/**'
- 'weed/s3api/**'
- 'weed/command/**'
- 'test/s3vectors/**'
- '.github/workflows/rust-vector-tests.yml'
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || (github.event_name == 'push' && github.ref) || github.run_id }}
cancel-in-progress: ${{ github.event_name == 'pull_request' || (github.event_name == 'push' && !startsWith(github.ref, 'refs/tags/')) }}
permissions:
contents: read
jobs:
rust-vector-build:
name: Rust Vector Build and Unit Tests
runs-on: ubuntu-24.04
timeout-minutes: 45
steps:
- name: Checkout code
uses: actions/checkout@v7
with:
persist-credentials: false
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
- name: Fingerprint build toolchain
id: toolchain
run: echo "fingerprint=$(getconf GNU_LIBC_VERSION | tr ' ' '-')-rustc-$(rustc -V | awk '{print $2}')" >> "$GITHUB_OUTPUT"
- name: Cache cargo registry and target
if: runner.environment == 'github-hosted'
uses: actions/cache@v6
with:
path: |
~/.cargo/registry
~/.cargo/git
seaweed-vector/target/release
key: rust-vector-${{ steps.toolchain.outputs.fingerprint }}-${{ hashFiles('seaweed-vector/Cargo.lock') }}
restore-keys: |
rust-vector-${{ steps.toolchain.outputs.fingerprint }}-
- name: Build the vector crates
run: cd seaweed-vector && cargo build --release
- name: Run unit tests
run: cd seaweed-vector && cargo test --release --workspace
vectors-e2e:
name: S3 Vectors Integration (${{ matrix.volume }} volume)
runs-on: ubuntu-24.04
timeout-minutes: 45
strategy:
fail-fast: false
matrix:
volume: [go, rust]
env:
CARGO_PROFILE_DEV_DEBUG: "0"
CARGO_BUILD_JOBS: "2"
CARGO_TARGET_DIR: ${{ github.workspace }}/seaweed-vector/target
VOLUME_SERVER_IMPL: ${{ matrix.volume }}
VECTOR_QUERY_MODE: single
steps:
- uses: actions/checkout@v7
with:
persist-credentials: false
- uses: actions/setup-go@v5
with:
go-version-file: go.mod
cache: ${{ runner.environment == 'github-hosted' }}
- uses: dtolnay/rust-toolchain@stable
- name: Fingerprint build toolchain
id: toolchain
run: echo "fingerprint=$(getconf GNU_LIBC_VERSION | tr ' ' '-')-rustc-$(rustc -V | awk '{print $2}')" >> "$GITHUB_OUTPUT"
- name: Cache cargo registry and target
if: runner.environment == 'github-hosted'
uses: actions/cache@v6
with:
path: |
~/.cargo/registry
~/.cargo/git
seaweed-vector/target/debug
key: vectors-e2e-${{ runner.os }}-${{ runner.arch }}-${{ steps.toolchain.outputs.fingerprint }}-${{ hashFiles('seaweed-vector/Cargo.lock', 'seaweed-volume/Cargo.lock') }}
restore-keys: |
vectors-e2e-${{ runner.os }}-${{ runner.arch }}-${{ steps.toolchain.outputs.fingerprint }}-
- name: Test Go vector gateway
run: |
go test ./weed/s3api/s3vectors -count=1
go test ./weed/command -run 'Vector|Vectors' -count=1
- name: Build integration binaries
working-directory: test/s3vectors
# dev profile: correctness suite, no release codegen needed. weed-volume
# (the heaviest crate) only builds on the rust leg.
run: |
set -e
make ./weed ./weed-vector CARGO_PROFILE=dev
if [ "${{ matrix.volume }}" = "rust" ]; then make ./weed-volume CARGO_PROFILE=dev; fi
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Install test dependencies
run: python -m pip install -r test/s3vectors/requirements.txt
- name: Run the S3 Vectors integration matrix
working-directory: test/s3vectors
run: |
./run_test.sh --basetemp="$RUNNER_TEMP/vector-tests" --junitxml="$RUNNER_TEMP/vector-results.xml"
python - <<'PYTHON'
import os
from pathlib import Path
import xml.etree.ElementTree as ET
cases = ET.parse(Path(os.environ["RUNNER_TEMP"]) / "vector-results.xml").findall(".//testcase")
assert len(cases) >= 17, f"expected at least 17 cases, got {len(cases)}"
assert not any(case.find("skipped") is not None for case in cases), "integration cases were skipped"
volume = os.environ["VOLUME_SERVER_IMPL"]
assert all(case.get("name", "").endswith(f"[{volume}-single]") for case in cases), volume
PYTHON
- name: Upload integration diagnostics
if: always()
uses: actions/upload-artifact@v7
with:
name: vectors-e2e-diagnostics-${{ matrix.volume }}
path: |
${{ runner.temp }}/vector-tests
${{ runner.temp }}/vector-results.xml
if-no-files-found: ignore
retention-days: 7
+57 -85
View File
@@ -21,8 +21,8 @@ on:
- '.github/workflows/rust-volume-server-tests.yml' - '.github/workflows/rust-volume-server-tests.yml'
concurrency: concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || (github.event_name == 'push' && github.ref) || github.run_id }} group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
cancel-in-progress: ${{ github.event_name == 'pull_request' || (github.event_name == 'push' && !startsWith(github.ref, 'refs/tags/')) }} cancel-in-progress: true
permissions: permissions:
contents: read contents: read
@@ -52,68 +52,9 @@ jobs:
- 'seaweed-volume/**' - 'seaweed-volume/**'
- '.github/workflows/rust-volume-server-tests.yml' - '.github/workflows/rust-volume-server-tests.yml'
build-test-binaries:
name: Build Test Binaries
runs-on: ubuntu-24.04
timeout-minutes: 30
steps:
- name: Checkout code
uses: actions/checkout@v7
- name: Set up Go
uses: actions/setup-go@v7
with:
go-version-file: 'go.mod'
cache: ${{ runner.environment == 'github-hosted' }}
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
# cargo tracks its own inputs but not the runner's C toolchain, so a cached
# target/ can carry C objects built against a different glibc than we link against.
- name: Fingerprint build toolchain
id: toolchain
run: echo "fingerprint=$(getconf GNU_LIBC_VERSION | tr ' ' '-')-rustc-$(rustc -V | awk '{print $2}')" >> "$GITHUB_OUTPUT"
- name: Cache cargo registry and target
if: runner.environment == 'github-hosted'
uses: actions/cache@v6
with:
path: |
~/.cargo/registry
~/.cargo/git
seaweed-volume/target
key: rust-${{ steps.toolchain.outputs.fingerprint }}-${{ hashFiles('seaweed-volume/Cargo.lock', 'seaweed-common/Cargo.lock') }}
restore-keys: |
rust-${{ steps.toolchain.outputs.fingerprint }}-
- name: Build Go weed binary
run: |
cd weed
go build -tags 5BytesOffset -o weed .
chmod +x weed
./weed version
- name: Build Rust volume binary
run: cd seaweed-volume && cargo build --release
- name: Package binaries
run: tar cf rust-test-binaries.tar weed/weed seaweed-volume/target/release/weed-volume
- name: Upload test binaries
uses: actions/upload-artifact@v7
with:
# archive layout mirrors the workspace: weed/weed and
# seaweed-volume/target/release/weed-volume
name: rust-test-binaries
if-no-files-found: error
retention-days: 1
path: rust-test-binaries.tar
rust-unit-tests: rust-unit-tests:
name: Rust Unit Tests name: Rust Unit Tests
runs-on: ubuntu-24.04 runs-on: ubuntu-22.04
timeout-minutes: 15 timeout-minutes: 15
steps: steps:
@@ -130,7 +71,6 @@ jobs:
run: echo "fingerprint=$(getconf GNU_LIBC_VERSION | tr ' ' '-')-rustc-$(rustc -V | awk '{print $2}')" >> "$GITHUB_OUTPUT" run: echo "fingerprint=$(getconf GNU_LIBC_VERSION | tr ' ' '-')-rustc-$(rustc -V | awk '{print $2}')" >> "$GITHUB_OUTPUT"
- name: Cache cargo registry and target - name: Cache cargo registry and target
if: runner.environment == 'github-hosted'
uses: actions/cache@v6 uses: actions/cache@v6
with: with:
path: | path: |
@@ -194,7 +134,6 @@ jobs:
run: echo "fingerprint=windows-rustc-$(rustc -V | awk '{print $2}')" >> "$GITHUB_OUTPUT" run: echo "fingerprint=windows-rustc-$(rustc -V | awk '{print $2}')" >> "$GITHUB_OUTPUT"
- name: Cache cargo registry and target - name: Cache cargo registry and target
if: runner.environment == 'github-hosted'
uses: actions/cache@v6 uses: actions/cache@v6
with: with:
path: | path: |
@@ -213,9 +152,8 @@ jobs:
rust-integration-tests: rust-integration-tests:
name: Rust Integration Tests name: Rust Integration Tests
runs-on: ubuntu-24.04 runs-on: ubuntu-22.04
timeout-minutes: 30 timeout-minutes: 30
needs: [build-test-binaries]
steps: steps:
- name: Checkout code - name: Checkout code
@@ -225,18 +163,36 @@ jobs:
uses: actions/setup-go@v7 uses: actions/setup-go@v7
with: with:
go-version-file: 'go.mod' go-version-file: 'go.mod'
cache: ${{ runner.environment == 'github-hosted' }}
- name: Download test binaries - name: Install Rust toolchain
uses: actions/download-artifact@v8 uses: dtolnay/rust-toolchain@stable
# cargo tracks its own inputs but not the runner's C toolchain, so a cached
# target/ can carry C objects built against a different glibc than we link against.
- name: Fingerprint build toolchain
id: toolchain
run: echo "fingerprint=$(getconf GNU_LIBC_VERSION | tr ' ' '-')-rustc-$(rustc -V | awk '{print $2}')" >> "$GITHUB_OUTPUT"
- name: Cache cargo registry and target
uses: actions/cache@v6
with: with:
name: rust-test-binaries path: |
~/.cargo/registry
~/.cargo/git
seaweed-volume/target
key: rust-${{ steps.toolchain.outputs.fingerprint }}-${{ hashFiles('seaweed-volume/Cargo.lock', 'seaweed-common/Cargo.lock') }}
restore-keys: |
rust-${{ steps.toolchain.outputs.fingerprint }}-
- name: Restore binaries - name: Build Go weed binary
run: | run: |
tar xf rust-test-binaries.tar cd weed
chmod +x weed/weed seaweed-volume/target/release/weed-volume go build -tags 5BytesOffset -o weed .
./weed/weed version chmod +x weed
./weed version
- name: Build Rust volume binary
run: cd seaweed-volume && cargo build --release
- name: Run integration tests - name: Run integration tests
env: env:
@@ -270,9 +226,8 @@ jobs:
rust-volume-go-tests: rust-volume-go-tests:
name: Go Tests with Rust Volume (${{ matrix.test-type }} - Shard ${{ matrix.shard }}) name: Go Tests with Rust Volume (${{ matrix.test-type }} - Shard ${{ matrix.shard }})
runs-on: ubuntu-24.04 runs-on: ubuntu-22.04
timeout-minutes: 45 timeout-minutes: 45
needs: [build-test-binaries]
env: env:
# Keep in step with the length of matrix.shard below. # Keep in step with the length of matrix.shard below.
SHARD_COUNT: 3 SHARD_COUNT: 3
@@ -290,19 +245,36 @@ jobs:
uses: actions/setup-go@v7 uses: actions/setup-go@v7
with: with:
go-version-file: 'go.mod' go-version-file: 'go.mod'
cache: ${{ runner.environment == 'github-hosted' }}
- name: Download test binaries - name: Install Rust toolchain
uses: actions/download-artifact@v8 uses: dtolnay/rust-toolchain@stable
# cargo tracks its own inputs but not the runner's C toolchain, so a cached
# target/ can carry C objects built against a different glibc than we link against.
- name: Fingerprint build toolchain
id: toolchain
run: echo "fingerprint=$(getconf GNU_LIBC_VERSION | tr ' ' '-')-rustc-$(rustc -V | awk '{print $2}')" >> "$GITHUB_OUTPUT"
- name: Cache cargo registry and target
uses: actions/cache@v6
with: with:
name: rust-test-binaries path: |
~/.cargo/registry
~/.cargo/git
seaweed-volume/target
key: rust-${{ steps.toolchain.outputs.fingerprint }}-${{ hashFiles('seaweed-volume/Cargo.lock', 'seaweed-common/Cargo.lock') }}
restore-keys: |
rust-${{ steps.toolchain.outputs.fingerprint }}-
- name: Restore binaries - name: Build Go weed binary
run: | run: |
tar xf rust-test-binaries.tar cd weed
chmod +x weed/weed seaweed-volume/target/release/weed-volume go build -tags 5BytesOffset -o weed .
./weed/weed version chmod +x weed
./seaweed-volume/target/release/weed-volume --help >/dev/null || true ./weed version
- name: Build Rust volume binary
run: cd seaweed-volume && cargo build --release
# Dealing the listed tests out one by one keeps the shards even. Bucketing # Dealing the listed tests out one by one keeps the shards even. Bucketing
# them by first letter did not: names cluster, so ^Test[I-S] drew 50 of # them by first letter did not: names cluster, so ^Test[I-S] drew 50 of
+3 -4
View File
@@ -17,8 +17,8 @@ on:
- '.github/workflows/rust-worker-tests.yml' - '.github/workflows/rust-worker-tests.yml'
concurrency: concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || (github.event_name == 'push' && github.ref) || github.run_id }} group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
cancel-in-progress: ${{ github.event_name == 'pull_request' || (github.event_name == 'push' && !startsWith(github.ref, 'refs/tags/')) }} cancel-in-progress: true
permissions: permissions:
contents: read contents: read
@@ -26,7 +26,7 @@ permissions:
jobs: jobs:
rust-worker-build: rust-worker-build:
name: Rust Plugin Worker Build and Unit Tests name: Rust Plugin Worker Build and Unit Tests
runs-on: ubuntu-24.04 runs-on: ubuntu-22.04
timeout-minutes: 45 timeout-minutes: 45
steps: steps:
@@ -45,7 +45,6 @@ jobs:
run: echo "fingerprint=$(getconf GNU_LIBC_VERSION | tr ' ' '-')-rustc-$(rustc -V | awk '{print $2}')" >> "$GITHUB_OUTPUT" run: echo "fingerprint=$(getconf GNU_LIBC_VERSION | tr ' ' '-')-rustc-$(rustc -V | awk '{print $2}')" >> "$GITHUB_OUTPUT"
- name: Cache cargo registry and target - name: Cache cargo registry and target
if: runner.environment == 'github-hosted'
uses: actions/cache@v6 uses: actions/cache@v6
with: with:
path: | path: |
+1 -3
View File
@@ -32,7 +32,7 @@ jobs:
permissions: permissions:
contents: write contents: write
needs: cleanup needs: cleanup
runs-on: ubuntu-24.04 runs-on: ubuntu-22.04
strategy: strategy:
matrix: matrix:
include: include:
@@ -46,7 +46,6 @@ jobs:
uses: dtolnay/rust-toolchain@stable uses: dtolnay/rust-toolchain@stable
- name: Cache cargo registry and target - name: Cache cargo registry and target
if: runner.environment == 'github-hosted'
uses: actions/cache@v6 uses: actions/cache@v6
with: with:
path: | path: |
@@ -115,7 +114,6 @@ jobs:
targets: ${{ matrix.target }} targets: ${{ matrix.target }}
- name: Cache cargo registry and target - name: Cache cargo registry and target
if: runner.environment == 'github-hosted'
uses: actions/cache@v6 uses: actions/cache@v6
with: with:
path: | path: |
+39 -97
View File
@@ -15,27 +15,39 @@ jobs:
build-rust-volume-linux: build-rust-volume-linux:
permissions: permissions:
contents: write contents: write
runs-on: ubuntu-24.04 runs-on: ubuntu-22.04
strategy: strategy:
matrix: matrix:
include: include:
# Static musl, as the container images ship: a glibc build only - target: x86_64-unknown-linux-gnu
# starts on distributions at least as new as the runner's.
- target: x86_64-unknown-linux-musl
asset_suffix: linux_amd64 asset_suffix: linux_amd64
- target: aarch64-unknown-linux-musl - target: aarch64-unknown-linux-gnu
asset_suffix: linux_arm64 asset_suffix: linux_arm64
cross: true
steps: steps:
- uses: actions/checkout@v7 - uses: actions/checkout@v7
- name: Set up the musl target - name: Install Rust toolchain
uses: ./.github/actions/rust-musl-target uses: dtolnay/rust-toolchain@stable
with: with:
target: ${{ matrix.target }} targets: ${{ matrix.target }}
- name: Install cross-compilation tools
if: matrix.cross
run: |
sudo dpkg --add-architecture arm64
sudo sed -i 's/^deb /deb [arch=amd64] /' /etc/apt/sources.list
echo "deb [arch=arm64] http://ports.ubuntu.com/ jammy main restricted universe multiverse" | sudo tee /etc/apt/sources.list.d/arm64.list
echo "deb [arch=arm64] http://ports.ubuntu.com/ jammy-updates main restricted universe multiverse" | sudo tee -a /etc/apt/sources.list.d/arm64.list
sudo apt-get update
sudo apt-get install -y gcc-aarch64-linux-gnu libssl-dev:arm64
echo "CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_LINKER=aarch64-linux-gnu-gcc" >> "$GITHUB_ENV"
echo "OPENSSL_DIR=/usr" >> "$GITHUB_ENV"
echo "OPENSSL_INCLUDE_DIR=/usr/include" >> "$GITHUB_ENV"
echo "OPENSSL_LIB_DIR=/usr/lib/aarch64-linux-gnu" >> "$GITHUB_ENV"
- name: Cache cargo registry and target - name: Cache cargo registry and target
if: runner.environment == 'github-hosted'
uses: actions/cache@v6 uses: actions/cache@v6
with: with:
path: | path: |
@@ -107,16 +119,15 @@ jobs:
build-rust-worker-linux: build-rust-worker-linux:
permissions: permissions:
contents: write contents: write
runs-on: ubuntu-24.04 runs-on: ubuntu-22.04
strategy: strategy:
matrix: matrix:
include: include:
# Static musl, as the container images ship: a glibc build only - target: x86_64-unknown-linux-gnu
# starts on distributions at least as new as the runner's.
- target: x86_64-unknown-linux-musl
asset_suffix: linux_amd64 asset_suffix: linux_amd64
- target: aarch64-unknown-linux-musl - target: aarch64-unknown-linux-gnu
asset_suffix: linux_arm64 asset_suffix: linux_arm64
cross: true
steps: steps:
- uses: actions/checkout@v7 - uses: actions/checkout@v7
@@ -125,13 +136,23 @@ jobs:
# should not find another one sitting in the checkout's git config. # should not find another one sitting in the checkout's git config.
persist-credentials: false persist-credentials: false
- name: Set up the musl target - name: Install Rust toolchain
uses: ./.github/actions/rust-musl-target uses: dtolnay/rust-toolchain@stable
with: with:
target: ${{ matrix.target }} targets: ${{ matrix.target }}
- name: Install cross-compilation tools
if: matrix.cross
run: |
sudo dpkg --add-architecture arm64
sudo sed -i 's/^deb /deb [arch=amd64] /' /etc/apt/sources.list
echo "deb [arch=arm64] http://ports.ubuntu.com/ jammy main restricted universe multiverse" | sudo tee /etc/apt/sources.list.d/arm64.list
echo "deb [arch=arm64] http://ports.ubuntu.com/ jammy-updates main restricted universe multiverse" | sudo tee -a /etc/apt/sources.list.d/arm64.list
sudo apt-get update
sudo apt-get install -y gcc-aarch64-linux-gnu
echo "CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_LINKER=aarch64-linux-gnu-gcc" >> "$GITHUB_ENV"
- name: Cache cargo registry and target - name: Cache cargo registry and target
if: runner.environment == 'github-hosted'
uses: actions/cache@v6 uses: actions/cache@v6
with: with:
path: | path: |
@@ -188,83 +209,6 @@ jobs:
weed-worker_${{ matrix.asset_suffix }}.tar.gz weed-worker_${{ matrix.asset_suffix }}.tar.gz
weed-worker_${{ matrix.asset_suffix }}.tar.gz.md5 weed-worker_${{ matrix.asset_suffix }}.tar.gz.md5
# The vector engine behind the S3 Vectors API: Linux only, like the worker,
# whose lance dependency tree it shares.
build-rust-vector-linux:
permissions:
contents: write
runs-on: ubuntu-24.04
strategy:
matrix:
include:
- target: x86_64-unknown-linux-musl
asset_suffix: linux_amd64
- target: aarch64-unknown-linux-musl
asset_suffix: linux_arm64
steps:
- uses: actions/checkout@v7
with:
persist-credentials: false
- name: Set up the musl target
uses: ./.github/actions/rust-musl-target
with:
target: ${{ matrix.target }}
- name: Cache cargo registry and target
if: runner.environment == 'github-hosted'
uses: actions/cache@v6
with:
path: |
~/.cargo/registry
~/.cargo/git
seaweed-vector/target/${{ matrix.target }}/release
key: rust-vector-release-${{ matrix.target }}-${{ hashFiles('seaweed-vector/Cargo.lock') }}
restore-keys: |
rust-vector-release-${{ matrix.target }}-
- name: Use the vendored protoc
run: |
cd seaweed-vector
cargo fetch
version=$(awk '/^name = "protoc-bin-vendored-linux-x86_64"$/{found=1; next} found && /^version = /{gsub(/"/,"",$3); print $3; exit}' Cargo.lock)
test -n "$version" || { echo "protoc-bin-vendored-linux-x86_64 is not in Cargo.lock" >&2; exit 1; }
protoc=$(find ~/.cargo/registry/src -path "*protoc-bin-vendored-linux-x86_64-$version/bin/protoc" | head -1)
test -x "$protoc" || { echo "no vendored protoc $version in the registry" >&2; exit 1; }
echo "PROTOC=$protoc" >> "$GITHUB_ENV"
- name: Build the vector engine
run: |
cd seaweed-vector
cargo build --release -p weed-vector-server --target ${{ matrix.target }}
- name: Package binary
run: |
cp seaweed-vector/target/${{ matrix.target }}/release/weed-vector weed-vector
tar czf weed-vector_${{ matrix.asset_suffix }}.tar.gz weed-vector
rm weed-vector
md5sum weed-vector_${{ matrix.asset_suffix }}.tar.gz > weed-vector_${{ matrix.asset_suffix }}.tar.gz.md5
- name: Upload release assets
if: startsWith(github.ref, 'refs/tags/')
uses: softprops/action-gh-release@v3
with:
files: |
weed-vector_${{ matrix.asset_suffix }}.tar.gz
weed-vector_${{ matrix.asset_suffix }}.tar.gz.md5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Upload artifacts
if: ${{ !startsWith(github.ref, 'refs/tags/') }}
uses: actions/upload-artifact@v7
with:
name: rust-vector-${{ matrix.asset_suffix }}
path: |
weed-vector_${{ matrix.asset_suffix }}.tar.gz
weed-vector_${{ matrix.asset_suffix }}.tar.gz.md5
build-rust-volume-darwin: build-rust-volume-darwin:
permissions: permissions:
contents: write contents: write
@@ -286,7 +230,6 @@ jobs:
targets: ${{ matrix.target }} targets: ${{ matrix.target }}
- name: Cache cargo registry and target - name: Cache cargo registry and target
if: runner.environment == 'github-hosted'
uses: actions/cache@v6 uses: actions/cache@v6
with: with:
path: | path: |
@@ -362,7 +305,6 @@ jobs:
uses: dtolnay/rust-toolchain@stable uses: dtolnay/rust-toolchain@stable
- name: Cache cargo registry and target - name: Cache cargo registry and target
if: runner.environment == 'github-hosted'
uses: actions/cache@v6 uses: actions/cache@v6
with: with:
path: | path: |
+3 -4
View File
@@ -21,8 +21,8 @@ on:
- '.github/workflows/s3-etag-acl-tests.yml' - '.github/workflows/s3-etag-acl-tests.yml'
concurrency: concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || (github.event_name == 'push' && github.ref) || github.run_id }} group: ${{ github.head_ref || github.ref }}/s3-etag-acl-tests
cancel-in-progress: ${{ github.event_name == 'pull_request' || (github.event_name == 'push' && !startsWith(github.ref, 'refs/tags/')) }} cancel-in-progress: true
permissions: permissions:
contents: read contents: read
@@ -30,7 +30,7 @@ permissions:
jobs: jobs:
s3-etag-acl-tests: s3-etag-acl-tests:
name: S3 ETag + ACL Integration Tests name: S3 ETag + ACL Integration Tests
runs-on: ubuntu-24.04 runs-on: ubuntu-22.04
timeout-minutes: 15 timeout-minutes: 15
steps: steps:
- name: Check out code - name: Check out code
@@ -40,7 +40,6 @@ jobs:
uses: actions/setup-go@v7 uses: actions/setup-go@v7
with: with:
go-version-file: 'go.mod' go-version-file: 'go.mod'
cache: ${{ runner.environment == 'github-hosted' }}
- name: Install SeaweedFS - name: Install SeaweedFS
run: | run: |
@@ -13,8 +13,8 @@ on:
- '.github/workflows/s3-example-integration-tests.yml' - '.github/workflows/s3-example-integration-tests.yml'
concurrency: concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || (github.event_name == 'push' && github.ref) || github.run_id }} group: ${{ github.head_ref }}/s3-integration-tests
cancel-in-progress: ${{ github.event_name == 'pull_request' || (github.event_name == 'push' && !startsWith(github.ref, 'refs/tags/')) }} cancel-in-progress: true
permissions: permissions:
contents: read contents: read
@@ -22,7 +22,7 @@ permissions:
jobs: jobs:
tests: tests:
name: S3 Integration Tests name: S3 Integration Tests
runs-on: ubuntu-24.04 runs-on: ubuntu-22.04
timeout-minutes: 30 timeout-minutes: 30
steps: steps:
@@ -33,7 +33,6 @@ jobs:
uses: actions/setup-go@v7 uses: actions/setup-go@v7
with: with:
go-version-file: 'go.mod' go-version-file: 'go.mod'
cache: ${{ runner.environment == 'github-hosted' }}
id: go id: go
- name: Build SeaweedFS - name: Build SeaweedFS
+4 -8
View File
@@ -12,8 +12,8 @@ on:
- '.github/workflows/s3-filer-group-tests.yml' - '.github/workflows/s3-filer-group-tests.yml'
concurrency: concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || (github.event_name == 'push' && github.ref) || github.run_id }} group: ${{ github.head_ref }}/s3-filer-group-tests
cancel-in-progress: ${{ github.event_name == 'pull_request' || (github.event_name == 'push' && !startsWith(github.ref, 'refs/tags/')) }} cancel-in-progress: true
permissions: permissions:
contents: read contents: read
@@ -25,21 +25,17 @@ defaults:
jobs: jobs:
s3-filer-group-tests: s3-filer-group-tests:
name: S3 Filer Group Integration Tests name: S3 Filer Group Integration Tests
runs-on: ubuntu-24.04 runs-on: ubuntu-22.04
timeout-minutes: 20 timeout-minutes: 20
steps: steps:
- name: Check out code - name: Check out code
uses: actions/checkout@v7 uses: actions/checkout@v7
- name: Clean up stale FUSE mounts
uses: ./.github/actions/cleanup-stale-fuse-mounts
- name: Set up Go - name: Set up Go
uses: actions/setup-go@v7 uses: actions/setup-go@v7
with: with:
go-version-file: 'go.mod' go-version-file: 'go.mod'
cache: ${{ runner.environment == 'github-hosted' }}
id: go id: go
- name: Install SeaweedFS - name: Install SeaweedFS
@@ -54,7 +50,7 @@ jobs:
echo "=== System Information ===" echo "=== System Information ==="
uname -a uname -a
free -h free -h
timeout 15 df -h || true df -h
echo "=== Starting Filer Group Tests ===" echo "=== Starting Filer Group Tests ==="
# Run tests with automatic server management # Run tests with automatic server management
+17 -42
View File
@@ -4,7 +4,6 @@ on:
pull_request: pull_request:
paths: paths:
- 'weed/s3api/**' - 'weed/s3api/**'
- 'weed/remote_storage/**'
- 'weed/filer/**' - 'weed/filer/**'
- 'weed/server/**' - 'weed/server/**'
- 'test/s3/**' - 'test/s3/**'
@@ -13,8 +12,8 @@ on:
- '.github/workflows/s3-go-tests.yml' - '.github/workflows/s3-go-tests.yml'
concurrency: concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || (github.event_name == 'push' && github.ref) || github.run_id }} group: ${{ github.head_ref }}/s3-go-tests
cancel-in-progress: ${{ github.event_name == 'pull_request' || (github.event_name == 'push' && !startsWith(github.ref, 'refs/tags/')) }} cancel-in-progress: true
permissions: permissions:
contents: read contents: read
@@ -26,7 +25,7 @@ defaults:
jobs: jobs:
s3-versioning-tests: s3-versioning-tests:
name: S3 Versioning Tests name: S3 Versioning Tests
runs-on: ubuntu-24.04 runs-on: ubuntu-22.04
timeout-minutes: 30 timeout-minutes: 30
strategy: strategy:
matrix: matrix:
@@ -36,14 +35,10 @@ jobs:
- name: Check out code - name: Check out code
uses: actions/checkout@v7 uses: actions/checkout@v7
- name: Clean up stale FUSE mounts
uses: ./.github/actions/cleanup-stale-fuse-mounts
- name: Set up Go - name: Set up Go
uses: actions/setup-go@v7 uses: actions/setup-go@v7
with: with:
go-version-file: 'go.mod' go-version-file: 'go.mod'
cache: ${{ runner.environment == 'github-hosted' }}
id: go id: go
- name: Install SeaweedFS - name: Install SeaweedFS
@@ -58,7 +53,7 @@ jobs:
echo "=== System Information ===" echo "=== System Information ==="
uname -a uname -a
free -h free -h
timeout 15 df -h || true df -h
echo "=== Starting Tests ===" echo "=== Starting Tests ==="
# Run tests with automatic server management # Run tests with automatic server management
@@ -97,7 +92,7 @@ jobs:
s3-versioning-compatibility: s3-versioning-compatibility:
name: S3 Versioning Compatibility Test name: S3 Versioning Compatibility Test
runs-on: ubuntu-24.04 runs-on: ubuntu-22.04
timeout-minutes: 20 timeout-minutes: 20
steps: steps:
@@ -108,7 +103,6 @@ jobs:
uses: actions/setup-go@v7 uses: actions/setup-go@v7
with: with:
go-version-file: 'go.mod' go-version-file: 'go.mod'
cache: ${{ runner.environment == 'github-hosted' }}
id: go id: go
- name: Install SeaweedFS - name: Install SeaweedFS
@@ -146,7 +140,7 @@ jobs:
s3-cors-compatibility: s3-cors-compatibility:
name: S3 CORS Compatibility Test name: S3 CORS Compatibility Test
runs-on: ubuntu-24.04 runs-on: ubuntu-22.04
timeout-minutes: 20 timeout-minutes: 20
steps: steps:
@@ -157,7 +151,6 @@ jobs:
uses: actions/setup-go@v7 uses: actions/setup-go@v7
with: with:
go-version-file: 'go.mod' go-version-file: 'go.mod'
cache: ${{ runner.environment == 'github-hosted' }}
id: go id: go
- name: Install SeaweedFS - name: Install SeaweedFS
@@ -195,7 +188,7 @@ jobs:
s3-retention-tests: s3-retention-tests:
name: S3 Retention Tests name: S3 Retention Tests
runs-on: ubuntu-24.04 runs-on: ubuntu-22.04
timeout-minutes: 30 timeout-minutes: 30
strategy: strategy:
matrix: matrix:
@@ -205,14 +198,10 @@ jobs:
- name: Check out code - name: Check out code
uses: actions/checkout@v7 uses: actions/checkout@v7
- name: Clean up stale FUSE mounts
uses: ./.github/actions/cleanup-stale-fuse-mounts
- name: Set up Go - name: Set up Go
uses: actions/setup-go@v7 uses: actions/setup-go@v7
with: with:
go-version-file: 'go.mod' go-version-file: 'go.mod'
cache: ${{ runner.environment == 'github-hosted' }}
id: go id: go
- name: Install SeaweedFS - name: Install SeaweedFS
@@ -227,7 +216,7 @@ jobs:
echo "=== System Information ===" echo "=== System Information ==="
uname -a uname -a
free -h free -h
timeout 15 df -h || true df -h
echo "=== Starting Tests ===" echo "=== Starting Tests ==="
# Run tests with automatic server management # Run tests with automatic server management
@@ -266,7 +255,7 @@ jobs:
s3-lifecycle-tests: s3-lifecycle-tests:
name: S3 Lifecycle Tests name: S3 Lifecycle Tests
runs-on: ubuntu-24.04 runs-on: ubuntu-22.04
timeout-minutes: 10 timeout-minutes: 10
strategy: strategy:
fail-fast: false fail-fast: false
@@ -294,7 +283,6 @@ jobs:
- TestLifecycleSuspendedVersioningExpiration - TestLifecycleSuspendedVersioningExpiration
- TestLifecycleTagFilter - TestLifecycleTagFilter
- TestLifecycleVersionedBucketCreatesDeleteMarker - TestLifecycleVersionedBucketCreatesDeleteMarker
- TestLifecycleVersionedBucketExpiresOnSecondRun
steps: steps:
- name: Check out code - name: Check out code
@@ -304,7 +292,6 @@ jobs:
uses: actions/setup-go@v7 uses: actions/setup-go@v7
with: with:
go-version-file: 'go.mod' go-version-file: 'go.mod'
cache: ${{ runner.environment == 'github-hosted' }}
id: go id: go
- name: Install SeaweedFS - name: Install SeaweedFS
@@ -339,21 +326,17 @@ jobs:
s3-checksum-tests: s3-checksum-tests:
name: S3 Checksum Tests name: S3 Checksum Tests
runs-on: ubuntu-24.04 runs-on: ubuntu-22.04
timeout-minutes: 20 timeout-minutes: 20
steps: steps:
- name: Check out code - name: Check out code
uses: actions/checkout@v7 uses: actions/checkout@v7
- name: Clean up stale FUSE mounts
uses: ./.github/actions/cleanup-stale-fuse-mounts
- name: Set up Go - name: Set up Go
uses: actions/setup-go@v7 uses: actions/setup-go@v7
with: with:
go-version-file: 'go.mod' go-version-file: 'go.mod'
cache: ${{ runner.environment == 'github-hosted' }}
id: go id: go
- name: Install SeaweedFS - name: Install SeaweedFS
@@ -368,7 +351,7 @@ jobs:
echo "=== System Information ===" echo "=== System Information ==="
uname -a uname -a
free -h free -h
timeout 15 df -h || true df -h
echo "=== Starting Tests ===" echo "=== Starting Tests ==="
make test-with-server make test-with-server
@@ -398,7 +381,7 @@ jobs:
s3-cors-tests: s3-cors-tests:
name: S3 CORS Tests name: S3 CORS Tests
runs-on: ubuntu-24.04 runs-on: ubuntu-22.04
timeout-minutes: 30 timeout-minutes: 30
strategy: strategy:
matrix: matrix:
@@ -408,14 +391,10 @@ jobs:
- name: Check out code - name: Check out code
uses: actions/checkout@v7 uses: actions/checkout@v7
- name: Clean up stale FUSE mounts
uses: ./.github/actions/cleanup-stale-fuse-mounts
- name: Set up Go - name: Set up Go
uses: actions/setup-go@v7 uses: actions/setup-go@v7
with: with:
go-version-file: 'go.mod' go-version-file: 'go.mod'
cache: ${{ runner.environment == 'github-hosted' }}
id: go id: go
- name: Install SeaweedFS - name: Install SeaweedFS
@@ -430,7 +409,7 @@ jobs:
echo "=== System Information ===" echo "=== System Information ==="
uname -a uname -a
free -h free -h
timeout 15 df -h || true df -h
echo "=== Starting Tests ===" echo "=== Starting Tests ==="
# Run tests with automatic server management # Run tests with automatic server management
@@ -469,7 +448,7 @@ jobs:
s3-retention-worm: s3-retention-worm:
name: S3 Retention WORM Integration Test name: S3 Retention WORM Integration Test
runs-on: ubuntu-24.04 runs-on: ubuntu-22.04
timeout-minutes: 20 timeout-minutes: 20
steps: steps:
@@ -480,7 +459,6 @@ jobs:
uses: actions/setup-go@v7 uses: actions/setup-go@v7
with: with:
go-version-file: 'go.mod' go-version-file: 'go.mod'
cache: ${{ runner.environment == 'github-hosted' }}
id: go id: go
- name: Install SeaweedFS - name: Install SeaweedFS
@@ -519,7 +497,7 @@ jobs:
s3-versioning-stress: s3-versioning-stress:
name: S3 Versioning Stress Test name: S3 Versioning Stress Test
runs-on: ubuntu-24.04 runs-on: ubuntu-22.04
timeout-minutes: 35 timeout-minutes: 35
steps: steps:
@@ -530,7 +508,6 @@ jobs:
uses: actions/setup-go@v7 uses: actions/setup-go@v7
with: with:
go-version-file: 'go.mod' go-version-file: 'go.mod'
cache: ${{ runner.environment == 'github-hosted' }}
id: go id: go
- name: Install SeaweedFS - name: Install SeaweedFS
@@ -588,7 +565,7 @@ jobs:
s3-tagging-tests: s3-tagging-tests:
# CI job for S3 object tagging tests # CI job for S3 object tagging tests
name: S3 Tagging Tests name: S3 Tagging Tests
runs-on: ubuntu-24.04 runs-on: ubuntu-22.04
timeout-minutes: 20 timeout-minutes: 20
steps: steps:
@@ -599,7 +576,6 @@ jobs:
uses: actions/setup-go@v7 uses: actions/setup-go@v7
with: with:
go-version-file: 'go.mod' go-version-file: 'go.mod'
cache: ${{ runner.environment == 'github-hosted' }}
id: go id: go
- name: Install SeaweedFS - name: Install SeaweedFS
@@ -644,7 +620,7 @@ jobs:
s3-remote-cache-tests: s3-remote-cache-tests:
name: S3 Remote Cache Tests name: S3 Remote Cache Tests
runs-on: ubuntu-24.04 runs-on: ubuntu-22.04
timeout-minutes: 20 timeout-minutes: 20
steps: steps:
@@ -655,7 +631,6 @@ jobs:
uses: actions/setup-go@v7 uses: actions/setup-go@v7
with: with:
go-version-file: 'go.mod' go-version-file: 'go.mod'
cache: ${{ runner.environment == 'github-hosted' }}
id: go id: go
- name: Install SeaweedFS - name: Install SeaweedFS
+7 -14
View File
@@ -20,8 +20,8 @@ on:
- '.github/workflows/s3-iam-tests.yml' - '.github/workflows/s3-iam-tests.yml'
concurrency: concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || (github.event_name == 'push' && github.ref) || github.run_id }} group: ${{ github.head_ref }}/s3-iam-tests
cancel-in-progress: ${{ github.event_name == 'pull_request' || (github.event_name == 'push' && !startsWith(github.ref, 'refs/tags/')) }} cancel-in-progress: true
permissions: permissions:
contents: read contents: read
@@ -34,7 +34,7 @@ jobs:
# Unit tests for IAM components # Unit tests for IAM components
iam-unit-tests: iam-unit-tests:
name: IAM Unit Tests name: IAM Unit Tests
runs-on: ubuntu-24.04 runs-on: ubuntu-22.04
timeout-minutes: 15 timeout-minutes: 15
steps: steps:
@@ -45,7 +45,6 @@ jobs:
uses: actions/setup-go@v7 uses: actions/setup-go@v7
with: with:
go-version-file: 'go.mod' go-version-file: 'go.mod'
cache: ${{ runner.environment == 'github-hosted' }}
id: go id: go
- name: Get dependencies - name: Get dependencies
@@ -81,7 +80,7 @@ jobs:
# S3 IAM integration tests with SeaweedFS services # S3 IAM integration tests with SeaweedFS services
s3-iam-integration-tests: s3-iam-integration-tests:
name: S3 IAM Integration Tests name: S3 IAM Integration Tests
runs-on: ubuntu-24.04 runs-on: ubuntu-22.04
timeout-minutes: 25 timeout-minutes: 25
strategy: strategy:
matrix: matrix:
@@ -91,14 +90,10 @@ jobs:
- name: Check out code - name: Check out code
uses: actions/checkout@v7 uses: actions/checkout@v7
- name: Clean up stale FUSE mounts
uses: ./.github/actions/cleanup-stale-fuse-mounts
- name: Set up Go - name: Set up Go
uses: actions/setup-go@v7 uses: actions/setup-go@v7
with: with:
go-version-file: 'go.mod' go-version-file: 'go.mod'
cache: ${{ runner.environment == 'github-hosted' }}
id: go id: go
- name: Install SeaweedFS - name: Install SeaweedFS
@@ -114,7 +109,7 @@ jobs:
echo "=== System Information ===" echo "=== System Information ==="
uname -a uname -a
free -h free -h
timeout 15 df -h || true df -h
echo "=== Starting S3 IAM Integration Tests (${{ matrix.test-type }}) ===" echo "=== Starting S3 IAM Integration Tests (${{ matrix.test-type }}) ==="
# Set WEED_BINARY to use the installed version # Set WEED_BINARY to use the installed version
@@ -202,7 +197,7 @@ jobs:
# Distributed IAM tests # Distributed IAM tests
s3-iam-distributed-tests: s3-iam-distributed-tests:
name: S3 IAM Distributed Tests name: S3 IAM Distributed Tests
runs-on: ubuntu-24.04 runs-on: ubuntu-22.04
timeout-minutes: 25 timeout-minutes: 25
steps: steps:
@@ -213,7 +208,6 @@ jobs:
uses: actions/setup-go@v7 uses: actions/setup-go@v7
with: with:
go-version-file: 'go.mod' go-version-file: 'go.mod'
cache: ${{ runner.environment == 'github-hosted' }}
id: go id: go
- name: Install SeaweedFS - name: Install SeaweedFS
@@ -263,7 +257,7 @@ jobs:
# Performance and stress tests # Performance and stress tests
s3-iam-performance-tests: s3-iam-performance-tests:
name: S3 IAM Performance Tests name: S3 IAM Performance Tests
runs-on: ubuntu-24.04 runs-on: ubuntu-22.04
timeout-minutes: 30 timeout-minutes: 30
steps: steps:
@@ -274,7 +268,6 @@ jobs:
uses: actions/setup-go@v7 uses: actions/setup-go@v7
with: with:
go-version-file: 'go.mod' go-version-file: 'go.mod'
cache: ${{ runner.environment == 'github-hosted' }}
id: go id: go
- name: Install SeaweedFS - name: Install SeaweedFS
+4 -8
View File
@@ -16,8 +16,8 @@ on:
- '.github/workflows/s3-keycloak-tests.yml' - '.github/workflows/s3-keycloak-tests.yml'
concurrency: concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || (github.event_name == 'push' && github.ref) || github.run_id }} group: ${{ github.head_ref }}/s3-keycloak-tests
cancel-in-progress: ${{ github.event_name == 'pull_request' || (github.event_name == 'push' && !startsWith(github.ref, 'refs/tags/')) }} cancel-in-progress: true
permissions: permissions:
contents: read contents: read
@@ -30,21 +30,17 @@ jobs:
# Dedicated job for Keycloak integration tests # Dedicated job for Keycloak integration tests
s3-keycloak-integration-tests: s3-keycloak-integration-tests:
name: S3 Keycloak Integration Tests name: S3 Keycloak Integration Tests
runs-on: ubuntu-24.04 runs-on: ubuntu-22.04
timeout-minutes: 30 timeout-minutes: 30
steps: steps:
- name: Check out code - name: Check out code
uses: actions/checkout@v7 uses: actions/checkout@v7
- name: Clean up stale FUSE mounts
uses: ./.github/actions/cleanup-stale-fuse-mounts
- name: Set up Go - name: Set up Go
uses: actions/setup-go@v7 uses: actions/setup-go@v7
with: with:
go-version-file: 'go.mod' go-version-file: 'go.mod'
cache: ${{ runner.environment == 'github-hosted' }}
id: go id: go
- name: Install SeaweedFS - name: Install SeaweedFS
@@ -60,7 +56,7 @@ jobs:
echo "=== System Information ===" echo "=== System Information ==="
uname -a uname -a
free -h free -h
timeout 15 df -h || true df -h
echo "=== Starting S3 Keycloak Integration Tests ===" echo "=== Starting S3 Keycloak Integration Tests ==="
# Set WEED_BINARY to use the installed version # Set WEED_BINARY to use the installed version
@@ -6,15 +6,14 @@ on:
- 'weed/s3api/**' - 'weed/s3api/**'
- 'test/s3/delete/**' - 'test/s3/delete/**'
- 'test/s3/distributed_lock/**' - 'test/s3/distributed_lock/**'
- 'test/s3/sqlite_cbs/**'
- 'test/s3/versioning/**' - 'test/s3/versioning/**'
- 'test/volume_server/framework/**' - 'test/volume_server/framework/**'
- 'docker/compose/s3.json' - 'docker/compose/s3.json'
- '.github/workflows/s3-mutation-regression-tests.yml' - '.github/workflows/s3-mutation-regression-tests.yml'
concurrency: concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || (github.event_name == 'push' && github.ref) || github.run_id }} group: ${{ github.head_ref }}/s3-mutation-regression-tests
cancel-in-progress: ${{ github.event_name == 'pull_request' || (github.event_name == 'push' && !startsWith(github.ref, 'refs/tags/')) }} cancel-in-progress: true
permissions: permissions:
contents: read contents: read
@@ -22,7 +21,7 @@ permissions:
jobs: jobs:
s3-versioning-regressions: s3-versioning-regressions:
name: S3 Versioning Regression Tests name: S3 Versioning Regression Tests
runs-on: ubuntu-24.04 runs-on: ubuntu-22.04
timeout-minutes: 25 timeout-minutes: 25
steps: steps:
@@ -33,7 +32,6 @@ jobs:
uses: actions/setup-go@v7 uses: actions/setup-go@v7
with: with:
go-version-file: 'go.mod' go-version-file: 'go.mod'
cache: ${{ runner.environment == 'github-hosted' }}
- name: Run S3 versioning regression tests - name: Run S3 versioning regression tests
timeout-minutes: 20 timeout-minutes: 20
@@ -76,7 +74,7 @@ jobs:
s3-delete-regressions: s3-delete-regressions:
name: S3 Delete Regression Tests name: S3 Delete Regression Tests
runs-on: ubuntu-24.04 runs-on: ubuntu-22.04
timeout-minutes: 20 timeout-minutes: 20
steps: steps:
@@ -87,7 +85,6 @@ jobs:
uses: actions/setup-go@v7 uses: actions/setup-go@v7
with: with:
go-version-file: 'go.mod' go-version-file: 'go.mod'
cache: ${{ runner.environment == 'github-hosted' }}
- name: Run S3 delete regression tests - name: Run S3 delete regression tests
timeout-minutes: 15 timeout-minutes: 15
@@ -115,7 +112,7 @@ jobs:
s3-distributed-lock-regressions: s3-distributed-lock-regressions:
name: S3 Distributed Lock Regression Tests name: S3 Distributed Lock Regression Tests
runs-on: ubuntu-24.04 runs-on: ubuntu-22.04
timeout-minutes: 30 timeout-minutes: 30
steps: steps:
@@ -126,7 +123,6 @@ jobs:
uses: actions/setup-go@v7 uses: actions/setup-go@v7
with: with:
go-version-file: 'go.mod' go-version-file: 'go.mod'
cache: ${{ runner.environment == 'github-hosted' }}
- name: Build SeaweedFS - name: Build SeaweedFS
run: | run: |
@@ -150,41 +146,3 @@ jobs:
name: s3-distributed-lock-regression-logs name: s3-distributed-lock-regression-logs
path: test/s3/distributed_lock/tmp/seaweedfs_s3_distributed_lock_* path: test/s3/distributed_lock/tmp/seaweedfs_s3_distributed_lock_*
retention-days: 3 retention-days: 3
s3-sqlite-cbs-regressions:
name: S3 SQLite CBS Regression Tests
runs-on: ubuntu-24.04
timeout-minutes: 20
steps:
- name: Check out code
uses: actions/checkout@v7
- name: Set up Go
uses: actions/setup-go@v7
with:
go-version-file: 'go.mod'
cache: ${{ runner.environment == 'github-hosted' }}
- name: Build SeaweedFS
run: |
go build -o weed/weed -buildvcs=false ./weed
- name: Run sqlite cbs regressions
timeout-minutes: 15
env:
TMPDIR: ${{ github.workspace }}/test/s3/sqlite_cbs/tmp
S3_SQLITE_CBS_KEEP_LOGS: "1"
WEED_BINARY: ${{ github.workspace }}/weed/weed
run: |
set -x
mkdir -p "$TMPDIR"
go test -v -count=1 -timeout=12m ./test/s3/sqlite_cbs
- name: Upload sqlite cbs logs on failure
if: failure()
uses: actions/upload-artifact@v7
with:
name: s3-sqlite-cbs-regression-logs
path: test/s3/sqlite_cbs/tmp/seaweedfs_sqlite_cbs_*
retention-days: 3
+3 -7
View File
@@ -23,10 +23,6 @@ env:
S3_ENDPOINT_URL: http://localhost:8333 S3_ENDPOINT_URL: http://localhost:8333
BUCKET_NAME: test-parquet-bucket BUCKET_NAME: test-parquet-bucket
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || (github.event_name == 'push' && github.ref) || github.run_id }}
cancel-in-progress: ${{ github.event_name == 'pull_request' || (github.event_name == 'push' && !startsWith(github.ref, 'refs/tags/')) }}
jobs: jobs:
parquet-integration-tests: parquet-integration-tests:
name: PyArrow Parquet Tests (Python ${{ matrix.python-version }}) name: PyArrow Parquet Tests (Python ${{ matrix.python-version }})
@@ -46,13 +42,13 @@ jobs:
uses: actions/setup-go@v7 uses: actions/setup-go@v7
with: with:
go-version: ^1.26 go-version: ^1.26
cache: ${{ runner.environment == 'github-hosted' }} cache: true
- name: Set up Python ${{ matrix.python-version }} - name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v7 uses: actions/setup-python@v7
with: with:
python-version: ${{ matrix.python-version }} python-version: ${{ matrix.python-version }}
cache: ${{ runner.environment == 'github-hosted' && 'pip' || '' }} cache: 'pip'
cache-dependency-path: 'test/s3/parquet/requirements.txt' cache-dependency-path: 'test/s3/parquet/requirements.txt'
- name: Install system dependencies - name: Install system dependencies
@@ -154,7 +150,7 @@ jobs:
uses: actions/setup-go@v7 uses: actions/setup-go@v7
with: with:
go-version: ^1.26 go-version: ^1.26
cache: ${{ runner.environment == 'github-hosted' }} cache: true
- name: Run Go unit tests - name: Run Go unit tests
run: | run: |
+9 -20
View File
@@ -24,8 +24,8 @@ on:
- '.github/workflows/s3-policy-tests.yml' - '.github/workflows/s3-policy-tests.yml'
concurrency: concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || (github.event_name == 'push' && github.ref) || github.run_id }} group: ${{ github.head_ref }}/s3-policy-tests
cancel-in-progress: ${{ github.event_name == 'pull_request' || (github.event_name == 'push' && !startsWith(github.ref, 'refs/tags/')) }} cancel-in-progress: true
permissions: permissions:
contents: read contents: read
@@ -38,7 +38,7 @@ jobs:
# Unit tests for policy components # Unit tests for policy components
policy-unit-tests: policy-unit-tests:
name: S3 Policy Unit Tests name: S3 Policy Unit Tests
runs-on: ubuntu-24.04 runs-on: ubuntu-22.04
timeout-minutes: 15 timeout-minutes: 15
steps: steps:
@@ -49,7 +49,6 @@ jobs:
uses: actions/setup-go@v7 uses: actions/setup-go@v7
with: with:
go-version-file: 'go.mod' go-version-file: 'go.mod'
cache: ${{ runner.environment == 'github-hosted' }}
id: go id: go
- name: Get dependencies - name: Get dependencies
@@ -82,21 +81,17 @@ jobs:
# S3 Policy Variables Integration Tests # S3 Policy Variables Integration Tests
s3-policy-variables-tests: s3-policy-variables-tests:
name: S3 Policy Variables Integration Tests name: S3 Policy Variables Integration Tests
runs-on: ubuntu-24.04 runs-on: ubuntu-22.04
timeout-minutes: 25 timeout-minutes: 25
steps: steps:
- name: Check out code - name: Check out code
uses: actions/checkout@v7 uses: actions/checkout@v7
- name: Clean up stale FUSE mounts
uses: ./.github/actions/cleanup-stale-fuse-mounts
- name: Set up Go - name: Set up Go
uses: actions/setup-go@v7 uses: actions/setup-go@v7
with: with:
go-version-file: 'go.mod' go-version-file: 'go.mod'
cache: ${{ runner.environment == 'github-hosted' }}
id: go id: go
- name: Install SeaweedFS - name: Install SeaweedFS
@@ -111,7 +106,7 @@ jobs:
echo "=== System Information ===" echo "=== System Information ==="
uname -a uname -a
free -h free -h
timeout 15 df -h || true df -h
echo "=== Starting S3 Policy Variables Integration Tests ===" echo "=== Starting S3 Policy Variables Integration Tests ==="
@@ -192,7 +187,7 @@ jobs:
# S3 Policy Enforcement Integration Tests # S3 Policy Enforcement Integration Tests
s3-policy-enforcement-tests: s3-policy-enforcement-tests:
name: S3 Policy Enforcement Integration Tests name: S3 Policy Enforcement Integration Tests
runs-on: ubuntu-24.04 runs-on: ubuntu-22.04
timeout-minutes: 30 timeout-minutes: 30
strategy: strategy:
matrix: matrix:
@@ -202,14 +197,10 @@ jobs:
- name: Check out code - name: Check out code
uses: actions/checkout@v7 uses: actions/checkout@v7
- name: Clean up stale FUSE mounts
uses: ./.github/actions/cleanup-stale-fuse-mounts
- name: Set up Go - name: Set up Go
uses: actions/setup-go@v7 uses: actions/setup-go@v7
with: with:
go-version-file: 'go.mod' go-version-file: 'go.mod'
cache: ${{ runner.environment == 'github-hosted' }}
id: go id: go
- name: Install SeaweedFS - name: Install SeaweedFS
@@ -224,7 +215,7 @@ jobs:
echo "=== System Information ===" echo "=== System Information ==="
uname -a uname -a
free -h free -h
timeout 15 df -h || true df -h
echo "=== Starting S3 Policy Enforcement Tests (${{ matrix.test-case }}) ===" echo "=== Starting S3 Policy Enforcement Tests (${{ matrix.test-case }}) ==="
@@ -317,7 +308,7 @@ jobs:
# Trusted Proxy Detection Tests # Trusted Proxy Detection Tests
trusted-proxy-tests: trusted-proxy-tests:
name: Trusted Proxy Detection Tests name: Trusted Proxy Detection Tests
runs-on: ubuntu-24.04 runs-on: ubuntu-22.04
timeout-minutes: 20 timeout-minutes: 20
steps: steps:
@@ -328,7 +319,6 @@ jobs:
uses: actions/setup-go@v7 uses: actions/setup-go@v7
with: with:
go-version-file: 'go.mod' go-version-file: 'go.mod'
cache: ${{ runner.environment == 'github-hosted' }}
id: go id: go
- name: Install SeaweedFS - name: Install SeaweedFS
@@ -405,7 +395,7 @@ jobs:
# S3 Policy Shell Integration Tests # S3 Policy Shell Integration Tests
s3-policy-shell-tests: s3-policy-shell-tests:
name: S3 Policy Shell Integration Tests name: S3 Policy Shell Integration Tests
runs-on: ubuntu-24.04 runs-on: ubuntu-22.04
timeout-minutes: 15 timeout-minutes: 15
steps: steps:
@@ -416,7 +406,6 @@ jobs:
uses: actions/setup-go@v7 uses: actions/setup-go@v7
with: with:
go-version-file: 'go.mod' go-version-file: 'go.mod'
cache: ${{ runner.environment == 'github-hosted' }}
id: go id: go
- name: Install SeaweedFS - name: Install SeaweedFS
@@ -21,8 +21,8 @@ on:
- '.github/workflows/s3-proxy-signature-tests.yml' - '.github/workflows/s3-proxy-signature-tests.yml'
concurrency: concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || (github.event_name == 'push' && github.ref) || github.run_id }} group: ${{ github.head_ref || github.ref }}/s3-proxy-signature-tests
cancel-in-progress: ${{ github.event_name == 'pull_request' || (github.event_name == 'push' && !startsWith(github.ref, 'refs/tags/')) }} cancel-in-progress: true
permissions: permissions:
contents: read contents: read
@@ -30,7 +30,7 @@ permissions:
jobs: jobs:
proxy-signature-tests: proxy-signature-tests:
name: S3 Proxy Signature Verification Tests name: S3 Proxy Signature Verification Tests
runs-on: ubuntu-24.04 runs-on: ubuntu-22.04
timeout-minutes: 15 timeout-minutes: 15
steps: steps:
- name: Check out code into the Go module directory - name: Check out code into the Go module directory
@@ -40,7 +40,6 @@ jobs:
uses: actions/setup-go@v7 uses: actions/setup-go@v7
with: with:
go-version-file: 'go.mod' go-version-file: 'go.mod'
cache: ${{ runner.environment == 'github-hosted' }}
id: go id: go
- name: Configure Docker Hub mirror - name: Configure Docker Hub mirror
@@ -15,8 +15,8 @@ on:
- '.github/workflows/s3-sdk-v2-routing-tests.yml' - '.github/workflows/s3-sdk-v2-routing-tests.yml'
concurrency: concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || (github.event_name == 'push' && github.ref) || github.run_id }} group: ${{ github.head_ref || github.ref }}/s3-sdk-v2-routing-tests
cancel-in-progress: ${{ github.event_name == 'pull_request' || (github.event_name == 'push' && !startsWith(github.ref, 'refs/tags/')) }} cancel-in-progress: true
permissions: permissions:
contents: read contents: read
@@ -24,7 +24,7 @@ permissions:
jobs: jobs:
s3-sdk-v2-routing-tests: s3-sdk-v2-routing-tests:
name: S3 SDK V2 Routing Tests name: S3 SDK V2 Routing Tests
runs-on: ubuntu-24.04 runs-on: ubuntu-22.04
timeout-minutes: 10 timeout-minutes: 10
steps: steps:
- name: Check out code - name: Check out code
@@ -34,7 +34,6 @@ jobs:
uses: actions/setup-go@v7 uses: actions/setup-go@v7
with: with:
go-version-file: 'go.mod' go-version-file: 'go.mod'
cache: ${{ runner.environment == 'github-hosted' }}
- name: Install SeaweedFS - name: Install SeaweedFS
run: | run: |
+2 -3
View File
@@ -46,7 +46,7 @@ permissions:
jobs: jobs:
snowflake-s3compat-tests: snowflake-s3compat-tests:
name: Snowflake S3Compat API tests name: Snowflake S3Compat API tests
runs-on: ubuntu-24.04 runs-on: ubuntu-22.04
timeout-minutes: 30 timeout-minutes: 30
env: env:
WORK_DIR: /tmp/seaweedfs-snowflake-tests WORK_DIR: /tmp/seaweedfs-snowflake-tests
@@ -60,7 +60,6 @@ jobs:
uses: actions/setup-go@v7 uses: actions/setup-go@v7
with: with:
go-version-file: 'go.mod' go-version-file: 'go.mod'
cache: ${{ runner.environment == 'github-hosted' }}
id: go id: go
- name: Set up Java - name: Set up Java
@@ -68,7 +67,7 @@ jobs:
with: with:
java-version: '17' java-version: '17'
distribution: 'temurin' distribution: 'temurin'
cache: ${{ runner.environment == 'github-hosted' && 'maven' || '' }} cache: 'maven'
- name: Install SeaweedFS - name: Install SeaweedFS
run: | run: |
+4 -8
View File
@@ -11,8 +11,8 @@ on:
workflow_dispatch: workflow_dispatch:
concurrency: concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || (github.event_name == 'push' && github.ref) || github.run_id }} group: ${{ github.head_ref }}/s3-spark-tests
cancel-in-progress: ${{ github.event_name == 'pull_request' || (github.event_name == 'push' && !startsWith(github.ref, 'refs/tags/')) }} cancel-in-progress: true
permissions: permissions:
contents: read contents: read
@@ -20,21 +20,17 @@ permissions:
jobs: jobs:
s3-spark-issue-repro-tests: s3-spark-issue-repro-tests:
name: S3 Spark Issue Reproduction Tests name: S3 Spark Issue Reproduction Tests
runs-on: ubuntu-24.04 runs-on: ubuntu-22.04
timeout-minutes: 45 timeout-minutes: 45
steps: steps:
- name: Check out code - name: Check out code
uses: actions/checkout@v7 uses: actions/checkout@v7
- name: Clean up stale FUSE mounts
uses: ./.github/actions/cleanup-stale-fuse-mounts
- name: Set up Go - name: Set up Go
uses: actions/setup-go@v7 uses: actions/setup-go@v7
with: with:
go-version-file: 'go.mod' go-version-file: 'go.mod'
cache: ${{ runner.environment == 'github-hosted' }}
id: go id: go
- name: Configure Docker Hub mirror - name: Configure Docker Hub mirror
@@ -60,7 +56,7 @@ jobs:
echo "=== System Information ===" echo "=== System Information ==="
uname -a uname -a
free -h free -h
timeout 15 df -h || true df -h
echo "=== Starting S3 Spark Integration Tests ===" echo "=== Starting S3 Spark Integration Tests ==="
go test -v -timeout 30m . 2>&1 | tee test-output.log || { go test -v -timeout 30m . 2>&1 | tee test-output.log || {
+10 -20
View File
@@ -23,8 +23,8 @@ on:
- 'test/s3/sse/**' - 'test/s3/sse/**'
concurrency: concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || (github.event_name == 'push' && github.ref) || github.run_id }} group: ${{ github.head_ref }}/s3-sse-tests
cancel-in-progress: ${{ github.event_name == 'pull_request' || (github.event_name == 'push' && !startsWith(github.ref, 'refs/tags/')) }} cancel-in-progress: true
permissions: permissions:
contents: read contents: read
@@ -36,7 +36,7 @@ defaults:
jobs: jobs:
s3-sse-integration-tests: s3-sse-integration-tests:
name: S3 SSE Integration Tests name: S3 SSE Integration Tests
runs-on: ubuntu-24.04 runs-on: ubuntu-22.04
timeout-minutes: 30 timeout-minutes: 30
strategy: strategy:
matrix: matrix:
@@ -46,14 +46,10 @@ jobs:
- name: Check out code - name: Check out code
uses: actions/checkout@v7 uses: actions/checkout@v7
- name: Clean up stale FUSE mounts
uses: ./.github/actions/cleanup-stale-fuse-mounts
- name: Set up Go - name: Set up Go
uses: actions/setup-go@v7 uses: actions/setup-go@v7
with: with:
go-version-file: 'go.mod' go-version-file: 'go.mod'
cache: ${{ runner.environment == 'github-hosted' }}
id: go id: go
- name: Install SeaweedFS - name: Install SeaweedFS
@@ -68,7 +64,7 @@ jobs:
echo "=== System Information ===" echo "=== System Information ==="
uname -a uname -a
free -h free -h
timeout 15 df -h || true df -h
echo "=== Starting SSE Tests ===" echo "=== Starting SSE Tests ==="
# Run tests with automatic server management # Run tests with automatic server management
@@ -111,7 +107,7 @@ jobs:
s3-sse-compatibility: s3-sse-compatibility:
name: S3 SSE Compatibility Test name: S3 SSE Compatibility Test
runs-on: ubuntu-24.04 runs-on: ubuntu-22.04
timeout-minutes: 20 timeout-minutes: 20
steps: steps:
@@ -122,7 +118,6 @@ jobs:
uses: actions/setup-go@v7 uses: actions/setup-go@v7
with: with:
go-version-file: 'go.mod' go-version-file: 'go.mod'
cache: ${{ runner.environment == 'github-hosted' }}
id: go id: go
- name: Install SeaweedFS - name: Install SeaweedFS
@@ -160,7 +155,7 @@ jobs:
s3-sse-metadata-persistence: s3-sse-metadata-persistence:
name: S3 SSE Metadata Persistence Test name: S3 SSE Metadata Persistence Test
runs-on: ubuntu-24.04 runs-on: ubuntu-22.04
timeout-minutes: 20 timeout-minutes: 20
steps: steps:
@@ -171,7 +166,6 @@ jobs:
uses: actions/setup-go@v7 uses: actions/setup-go@v7
with: with:
go-version-file: 'go.mod' go-version-file: 'go.mod'
cache: ${{ runner.environment == 'github-hosted' }}
id: go id: go
- name: Install SeaweedFS - name: Install SeaweedFS
@@ -210,7 +204,7 @@ jobs:
s3-sse-copy-operations: s3-sse-copy-operations:
name: S3 SSE Copy Operations Test name: S3 SSE Copy Operations Test
runs-on: ubuntu-24.04 runs-on: ubuntu-22.04
timeout-minutes: 25 timeout-minutes: 25
steps: steps:
@@ -221,7 +215,6 @@ jobs:
uses: actions/setup-go@v7 uses: actions/setup-go@v7
with: with:
go-version-file: 'go.mod' go-version-file: 'go.mod'
cache: ${{ runner.environment == 'github-hosted' }}
id: go id: go
- name: Install SeaweedFS - name: Install SeaweedFS
@@ -260,7 +253,7 @@ jobs:
s3-sse-multipart: s3-sse-multipart:
name: S3 SSE Multipart Upload Test name: S3 SSE Multipart Upload Test
runs-on: ubuntu-24.04 runs-on: ubuntu-22.04
timeout-minutes: 25 timeout-minutes: 25
steps: steps:
@@ -271,7 +264,6 @@ jobs:
uses: actions/setup-go@v7 uses: actions/setup-go@v7
with: with:
go-version-file: 'go.mod' go-version-file: 'go.mod'
cache: ${{ runner.environment == 'github-hosted' }}
id: go id: go
- name: Install SeaweedFS - name: Install SeaweedFS
@@ -310,7 +302,7 @@ jobs:
s3-sse-performance: s3-sse-performance:
name: S3 SSE Performance Test name: S3 SSE Performance Test
runs-on: ubuntu-24.04 runs-on: ubuntu-22.04
timeout-minutes: 35 timeout-minutes: 35
# Only run performance tests on master branch pushes to avoid overloading PR testing # Only run performance tests on master branch pushes to avoid overloading PR testing
if: github.event_name == 'push' && (github.ref == 'refs/heads/master' || github.ref == 'refs/heads/main') if: github.event_name == 'push' && (github.ref == 'refs/heads/master' || github.ref == 'refs/heads/main')
@@ -323,7 +315,6 @@ jobs:
uses: actions/setup-go@v7 uses: actions/setup-go@v7
with: with:
go-version-file: 'go.mod' go-version-file: 'go.mod'
cache: ${{ runner.environment == 'github-hosted' }}
id: go id: go
- name: Install SeaweedFS - name: Install SeaweedFS
@@ -361,7 +352,7 @@ jobs:
s3-volume-encryption: s3-volume-encryption:
name: S3 Volume Encryption Test name: S3 Volume Encryption Test
runs-on: ubuntu-24.04 runs-on: ubuntu-22.04
timeout-minutes: 20 timeout-minutes: 20
steps: steps:
@@ -372,7 +363,6 @@ jobs:
uses: actions/setup-go@v7 uses: actions/setup-go@v7
with: with:
go-version-file: 'go.mod' go-version-file: 'go.mod'
cache: ${{ runner.environment == 'github-hosted' }}
id: go id: go
- name: Install SeaweedFS - name: Install SeaweedFS
+36 -110
View File
@@ -12,10 +12,6 @@ on:
- 'go.sum' - 'go.sum'
- '.github/workflows/s3-tables-tests.yml' - '.github/workflows/s3-tables-tests.yml'
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || (github.event_name == 'push' && github.ref) || github.run_id }}
cancel-in-progress: ${{ github.event_name == 'pull_request' || (github.event_name == 'push' && !startsWith(github.ref, 'refs/tags/')) }}
permissions: permissions:
contents: read contents: read
@@ -23,21 +19,17 @@ permissions:
jobs: jobs:
s3-tables-tests: s3-tables-tests:
name: S3 Tables Integration Tests name: S3 Tables Integration Tests
runs-on: ubuntu-24.04 runs-on: ubuntu-22.04
timeout-minutes: 30 timeout-minutes: 30
steps: steps:
- name: Check out code - name: Check out code
uses: actions/checkout@v7 uses: actions/checkout@v7
- name: Clean up stale FUSE mounts
uses: ./.github/actions/cleanup-stale-fuse-mounts
- name: Set up Go - name: Set up Go
uses: actions/setup-go@v7 uses: actions/setup-go@v7
with: with:
go-version-file: 'go.mod' go-version-file: 'go.mod'
cache: ${{ runner.environment == 'github-hosted' }}
id: go id: go
- name: Run go mod tidy - name: Run go mod tidy
@@ -56,8 +48,7 @@ jobs:
echo "=== System Information ===" echo "=== System Information ==="
uname -a uname -a
free -h free -h
# A stale FUSE mount can hang or fail df; keep diagnostics best effort. df -h
timeout 15 df -h || true
echo "=== Starting S3 Tables Tests ===" echo "=== Starting S3 Tables Tests ==="
# Run S3 Tables integration tests # Run S3 Tables integration tests
@@ -88,21 +79,17 @@ jobs:
iceberg-catalog-tests: iceberg-catalog-tests:
name: Iceberg Catalog Integration Tests name: Iceberg Catalog Integration Tests
runs-on: ubuntu-24.04 runs-on: ubuntu-22.04
timeout-minutes: 30 timeout-minutes: 30
steps: steps:
- name: Check out code - name: Check out code
uses: actions/checkout@v7 uses: actions/checkout@v7
- name: Clean up stale FUSE mounts
uses: ./.github/actions/cleanup-stale-fuse-mounts
- name: Set up Go - name: Set up Go
uses: actions/setup-go@v7 uses: actions/setup-go@v7
with: with:
go-version-file: 'go.mod' go-version-file: 'go.mod'
cache: ${{ runner.environment == 'github-hosted' }}
id: go id: go
- name: Configure Docker Hub mirror - name: Configure Docker Hub mirror
@@ -122,7 +109,7 @@ jobs:
echo "=== System Information ===" echo "=== System Information ==="
uname -a uname -a
free -h free -h
timeout 15 df -h || true df -h
echo "=== Starting Iceberg Catalog Tests ===" echo "=== Starting Iceberg Catalog Tests ==="
# Run Iceberg catalog integration tests using Makefile (handles build) # Run Iceberg catalog integration tests using Makefile (handles build)
@@ -153,21 +140,17 @@ jobs:
trino-iceberg-catalog-tests: trino-iceberg-catalog-tests:
name: Trino Iceberg Catalog Integration Tests name: Trino Iceberg Catalog Integration Tests
runs-on: ubuntu-24.04 runs-on: ubuntu-22.04
timeout-minutes: 30 timeout-minutes: 30
steps: steps:
- name: Check out code - name: Check out code
uses: actions/checkout@v7 uses: actions/checkout@v7
- name: Clean up stale FUSE mounts
uses: ./.github/actions/cleanup-stale-fuse-mounts
- name: Set up Go - name: Set up Go
uses: actions/setup-go@v7 uses: actions/setup-go@v7
with: with:
go-version-file: 'go.mod' go-version-file: 'go.mod'
cache: ${{ runner.environment == 'github-hosted' }}
id: go id: go
- name: Configure Docker Hub mirror - name: Configure Docker Hub mirror
@@ -196,7 +179,7 @@ jobs:
echo "=== System Information ===" echo "=== System Information ==="
uname -a uname -a
free -h free -h
timeout 15 df -h || true df -h
echo "=== Starting Trino Iceberg Catalog Tests ===" echo "=== Starting Trino Iceberg Catalog Tests ==="
# Run Trino + Iceberg catalog integration tests # Run Trino + Iceberg catalog integration tests
@@ -227,21 +210,17 @@ jobs:
dremio-iceberg-catalog-tests: dremio-iceberg-catalog-tests:
name: Dremio Iceberg Catalog Integration Tests name: Dremio Iceberg Catalog Integration Tests
runs-on: ubuntu-24.04 runs-on: ubuntu-22.04
timeout-minutes: 30 timeout-minutes: 30
steps: steps:
- name: Check out code - name: Check out code
uses: actions/checkout@v7 uses: actions/checkout@v7
- name: Clean up stale FUSE mounts
uses: ./.github/actions/cleanup-stale-fuse-mounts
- name: Set up Go - name: Set up Go
uses: actions/setup-go@v7 uses: actions/setup-go@v7
with: with:
go-version-file: 'go.mod' go-version-file: 'go.mod'
cache: ${{ runner.environment == 'github-hosted' }}
id: go id: go
- name: Configure Docker Hub mirror - name: Configure Docker Hub mirror
@@ -271,7 +250,7 @@ jobs:
echo "=== System Information ===" echo "=== System Information ==="
uname -a uname -a
free -h free -h
timeout 15 df -h || true df -h
docker info docker info
echo "=== Starting Dremio Iceberg Catalog Tests ===" echo "=== Starting Dremio Iceberg Catalog Tests ==="
@@ -304,21 +283,17 @@ jobs:
doris-iceberg-catalog-tests: doris-iceberg-catalog-tests:
name: Doris Iceberg Catalog Integration Tests name: Doris Iceberg Catalog Integration Tests
runs-on: ubuntu-24.04 runs-on: ubuntu-22.04
timeout-minutes: 35 timeout-minutes: 35
steps: steps:
- name: Check out code - name: Check out code
uses: actions/checkout@v7 uses: actions/checkout@v7
- name: Clean up stale FUSE mounts
uses: ./.github/actions/cleanup-stale-fuse-mounts
- name: Set up Go - name: Set up Go
uses: actions/setup-go@v7 uses: actions/setup-go@v7
with: with:
go-version-file: 'go.mod' go-version-file: 'go.mod'
cache: ${{ runner.environment == 'github-hosted' }}
id: go id: go
- name: Configure Docker Hub mirror - name: Configure Docker Hub mirror
@@ -348,7 +323,7 @@ jobs:
echo "=== System Information ===" echo "=== System Information ==="
uname -a uname -a
free -h free -h
timeout 15 df -h || true df -h
docker info docker info
echo "=== Starting Doris Iceberg Catalog Tests ===" echo "=== Starting Doris Iceberg Catalog Tests ==="
@@ -381,7 +356,7 @@ jobs:
clickhouse-iceberg-catalog-tests: clickhouse-iceberg-catalog-tests:
name: ClickHouse Iceberg Catalog Integration Tests (${{ matrix.tag }}) name: ClickHouse Iceberg Catalog Integration Tests (${{ matrix.tag }})
runs-on: ubuntu-24.04 runs-on: ubuntu-22.04
timeout-minutes: 30 timeout-minutes: 30
strategy: strategy:
fail-fast: false fail-fast: false
@@ -398,14 +373,10 @@ jobs:
- name: Check out code - name: Check out code
uses: actions/checkout@v7 uses: actions/checkout@v7
- name: Clean up stale FUSE mounts
uses: ./.github/actions/cleanup-stale-fuse-mounts
- name: Set up Go - name: Set up Go
uses: actions/setup-go@v7 uses: actions/setup-go@v7
with: with:
go-version-file: 'go.mod' go-version-file: 'go.mod'
cache: ${{ runner.environment == 'github-hosted' }}
id: go id: go
- name: Configure Docker Hub mirror - name: Configure Docker Hub mirror
@@ -437,7 +408,7 @@ jobs:
echo "=== System Information ===" echo "=== System Information ==="
uname -a uname -a
free -h free -h
timeout 15 df -h || true df -h
docker info docker info
echo "=== Starting ClickHouse Iceberg Catalog Tests ===" echo "=== Starting ClickHouse Iceberg Catalog Tests ==="
@@ -470,7 +441,7 @@ jobs:
olake-iceberg-catalog-tests: olake-iceberg-catalog-tests:
name: OLake Iceberg Catalog Integration Tests (${{ matrix.tag }}) name: OLake Iceberg Catalog Integration Tests (${{ matrix.tag }})
runs-on: ubuntu-24.04 runs-on: ubuntu-22.04
timeout-minutes: 30 timeout-minutes: 30
strategy: strategy:
fail-fast: false fail-fast: false
@@ -489,14 +460,10 @@ jobs:
- name: Check out code - name: Check out code
uses: actions/checkout@v7 uses: actions/checkout@v7
- name: Clean up stale FUSE mounts
uses: ./.github/actions/cleanup-stale-fuse-mounts
- name: Set up Go - name: Set up Go
uses: actions/setup-go@v7 uses: actions/setup-go@v7
with: with:
go-version-file: 'go.mod' go-version-file: 'go.mod'
cache: ${{ runner.environment == 'github-hosted' }}
id: go id: go
- name: Configure Docker Hub mirror - name: Configure Docker Hub mirror
@@ -529,7 +496,7 @@ jobs:
echo "=== System Information ===" echo "=== System Information ==="
uname -a uname -a
free -h free -h
timeout 15 df -h || true df -h
docker info docker info
echo "=== Starting OLake Iceberg Catalog Tests ===" echo "=== Starting OLake Iceberg Catalog Tests ==="
@@ -585,21 +552,17 @@ jobs:
polaris-integration-tests: polaris-integration-tests:
name: Polaris Integration Tests name: Polaris Integration Tests
runs-on: ubuntu-24.04 runs-on: ubuntu-22.04
timeout-minutes: 30 timeout-minutes: 30
steps: steps:
- name: Check out code - name: Check out code
uses: actions/checkout@v7 uses: actions/checkout@v7
- name: Clean up stale FUSE mounts
uses: ./.github/actions/cleanup-stale-fuse-mounts
- name: Set up Go - name: Set up Go
uses: actions/setup-go@v7 uses: actions/setup-go@v7
with: with:
go-version-file: 'go.mod' go-version-file: 'go.mod'
cache: ${{ runner.environment == 'github-hosted' }}
id: go id: go
- name: Run go mod tidy - name: Run go mod tidy
@@ -627,7 +590,7 @@ jobs:
echo "=== System Information ===" echo "=== System Information ==="
uname -a uname -a
free -h free -h
timeout 15 df -h || true df -h
echo "=== Starting Polaris Tests ===" echo "=== Starting Polaris Tests ==="
go test -v -timeout 20m ./test/s3tables/polaris 2>&1 | tee test/s3tables/polaris/test-output.log || { go test -v -timeout 20m ./test/s3tables/polaris 2>&1 | tee test/s3tables/polaris/test-output.log || {
@@ -657,21 +620,17 @@ jobs:
spark-iceberg-catalog-tests: spark-iceberg-catalog-tests:
name: Spark Iceberg Catalog Integration Tests name: Spark Iceberg Catalog Integration Tests
runs-on: ubuntu-24.04 runs-on: ubuntu-22.04
timeout-minutes: 30 timeout-minutes: 30
steps: steps:
- name: Check out code - name: Check out code
uses: actions/checkout@v7 uses: actions/checkout@v7
- name: Clean up stale FUSE mounts
uses: ./.github/actions/cleanup-stale-fuse-mounts
- name: Set up Go - name: Set up Go
uses: actions/setup-go@v7 uses: actions/setup-go@v7
with: with:
go-version-file: 'go.mod' go-version-file: 'go.mod'
cache: ${{ runner.environment == 'github-hosted' }}
id: go id: go
- name: Configure Docker Hub mirror - name: Configure Docker Hub mirror
@@ -700,7 +659,7 @@ jobs:
echo "=== System Information ===" echo "=== System Information ==="
uname -a uname -a
free -h free -h
timeout 15 df -h || true df -h
echo "=== Starting Spark Iceberg Catalog Tests ===" echo "=== Starting Spark Iceberg Catalog Tests ==="
# Run Spark + Iceberg catalog integration tests # Run Spark + Iceberg catalog integration tests
@@ -731,21 +690,17 @@ jobs:
risingwave-catalog-tests: risingwave-catalog-tests:
name: RisingWave Catalog Integration Tests name: RisingWave Catalog Integration Tests
runs-on: ubuntu-24.04 runs-on: ubuntu-22.04
timeout-minutes: 30 timeout-minutes: 30
steps: steps:
- name: Check out code - name: Check out code
uses: actions/checkout@v7 uses: actions/checkout@v7
- name: Clean up stale FUSE mounts
uses: ./.github/actions/cleanup-stale-fuse-mounts
- name: Set up Go - name: Set up Go
uses: actions/setup-go@v7 uses: actions/setup-go@v7
with: with:
go-version-file: 'go.mod' go-version-file: 'go.mod'
cache: ${{ runner.environment == 'github-hosted' }}
id: go id: go
- name: Configure Docker Hub mirror - name: Configure Docker Hub mirror
@@ -775,7 +730,7 @@ jobs:
echo "=== System Information ===" echo "=== System Information ==="
uname -a uname -a
free -h free -h
timeout 15 df -h || true df -h
echo "=== Starting RisingWave Catalog Tests ===" echo "=== Starting RisingWave Catalog Tests ==="
# Run RisingWave catalog integration tests # Run RisingWave catalog integration tests
@@ -806,21 +761,17 @@ jobs:
sts-integration-tests: sts-integration-tests:
name: STS Integration Tests name: STS Integration Tests
runs-on: ubuntu-24.04 runs-on: ubuntu-22.04
timeout-minutes: 30 timeout-minutes: 30
steps: steps:
- name: Check out code - name: Check out code
uses: actions/checkout@v7 uses: actions/checkout@v7
- name: Clean up stale FUSE mounts
uses: ./.github/actions/cleanup-stale-fuse-mounts
- name: Set up Go - name: Set up Go
uses: actions/setup-go@v7 uses: actions/setup-go@v7
with: with:
go-version-file: 'go.mod' go-version-file: 'go.mod'
cache: ${{ runner.environment == 'github-hosted' }}
id: go id: go
- name: Configure Docker Hub mirror - name: Configure Docker Hub mirror
@@ -834,7 +785,6 @@ jobs:
- name: Restore python:3 image cache - name: Restore python:3 image cache
id: python-image id: python-image
if: runner.environment == 'github-hosted'
uses: actions/cache@v6 uses: actions/cache@v6
with: with:
path: /tmp/python3-image.tar path: /tmp/python3-image.tar
@@ -874,7 +824,7 @@ jobs:
echo "=== System Information ===" echo "=== System Information ==="
uname -a uname -a
free -h free -h
timeout 15 df -h || true df -h
echo "=== Starting STS Integration Tests ===" echo "=== Starting STS Integration Tests ==="
# Run STS integration tests # Run STS integration tests
@@ -905,21 +855,17 @@ jobs:
lakekeeper-integration-tests: lakekeeper-integration-tests:
name: Lakekeeper Integration Tests name: Lakekeeper Integration Tests
runs-on: ubuntu-24.04 runs-on: ubuntu-22.04
timeout-minutes: 30 timeout-minutes: 30
steps: steps:
- name: Check out code - name: Check out code
uses: actions/checkout@v7 uses: actions/checkout@v7
- name: Clean up stale FUSE mounts
uses: ./.github/actions/cleanup-stale-fuse-mounts
- name: Set up Go - name: Set up Go
uses: actions/setup-go@v7 uses: actions/setup-go@v7
with: with:
go-version-file: 'go.mod' go-version-file: 'go.mod'
cache: ${{ runner.environment == 'github-hosted' }}
id: go id: go
- name: Run go mod tidy - name: Run go mod tidy
@@ -938,7 +884,7 @@ jobs:
echo "=== System Information ===" echo "=== System Information ==="
uname -a uname -a
free -h free -h
timeout 15 df -h || true df -h
echo "=== Starting Lakekeeper Integration Tests ===" echo "=== Starting Lakekeeper Integration Tests ==="
# Run Lakekeeper integration tests # Run Lakekeeper integration tests
@@ -969,21 +915,17 @@ jobs:
unity-catalog-integration-tests: unity-catalog-integration-tests:
name: Unity Catalog Integration Tests name: Unity Catalog Integration Tests
runs-on: ubuntu-24.04 runs-on: ubuntu-22.04
timeout-minutes: 30 timeout-minutes: 30
steps: steps:
- name: Check out code - name: Check out code
uses: actions/checkout@v7 uses: actions/checkout@v7
- name: Clean up stale FUSE mounts
uses: ./.github/actions/cleanup-stale-fuse-mounts
- name: Set up Go - name: Set up Go
uses: actions/setup-go@v7 uses: actions/setup-go@v7
with: with:
go-version-file: 'go.mod' go-version-file: 'go.mod'
cache: ${{ runner.environment == 'github-hosted' }}
id: go id: go
- name: Configure Docker Hub mirror - name: Configure Docker Hub mirror
@@ -1013,7 +955,7 @@ jobs:
echo "=== System Information ===" echo "=== System Information ==="
uname -a uname -a
free -h free -h
timeout 15 df -h || true df -h
docker info docker info
echo "=== Starting Unity Catalog Tests ===" echo "=== Starting Unity Catalog Tests ==="
@@ -1046,21 +988,17 @@ jobs:
lancedb-namespace-tests: lancedb-namespace-tests:
name: LanceDB Namespace Integration Tests name: LanceDB Namespace Integration Tests
runs-on: ubuntu-24.04 runs-on: ubuntu-22.04
timeout-minutes: 30 timeout-minutes: 30
steps: steps:
- name: Check out code - name: Check out code
uses: actions/checkout@v7 uses: actions/checkout@v7
- name: Clean up stale FUSE mounts
uses: ./.github/actions/cleanup-stale-fuse-mounts
- name: Set up Go - name: Set up Go
uses: actions/setup-go@v7 uses: actions/setup-go@v7
with: with:
go-version-file: 'go.mod' go-version-file: 'go.mod'
cache: ${{ runner.environment == 'github-hosted' }}
id: go id: go
- name: Configure Docker Hub mirror - name: Configure Docker Hub mirror
@@ -1089,7 +1027,7 @@ jobs:
echo "=== System Information ===" echo "=== System Information ==="
uname -a uname -a
free -h free -h
timeout 15 df -h || true df -h
docker info docker info
echo "=== Starting LanceDB Namespace Tests ===" echo "=== Starting LanceDB Namespace Tests ==="
@@ -1120,7 +1058,7 @@ jobs:
table-lifecycle-tests: table-lifecycle-tests:
name: Table Lifecycle Integration Tests name: Table Lifecycle Integration Tests
runs-on: ubuntu-24.04 runs-on: ubuntu-22.04
timeout-minutes: 40 timeout-minutes: 40
steps: steps:
@@ -1131,7 +1069,6 @@ jobs:
uses: actions/setup-go@v7 uses: actions/setup-go@v7
with: with:
go-version-file: 'go.mod' go-version-file: 'go.mod'
cache: ${{ runner.environment == 'github-hosted' }}
id: go id: go
- name: Configure Docker Hub mirror - name: Configure Docker Hub mirror
@@ -1189,7 +1126,7 @@ jobs:
duckdb-lance-tests: duckdb-lance-tests:
name: DuckDB Lance Integration Tests name: DuckDB Lance Integration Tests
runs-on: ubuntu-24.04 runs-on: ubuntu-22.04
timeout-minutes: 30 timeout-minutes: 30
steps: steps:
@@ -1200,14 +1137,10 @@ jobs:
# so do not leave a token in the checkout for it to pick up. # so do not leave a token in the checkout for it to pick up.
persist-credentials: false persist-credentials: false
- name: Clean up stale FUSE mounts
uses: ./.github/actions/cleanup-stale-fuse-mounts
- name: Set up Go - name: Set up Go
uses: actions/setup-go@v7 uses: actions/setup-go@v7
with: with:
go-version-file: 'go.mod' go-version-file: 'go.mod'
cache: ${{ runner.environment == 'github-hosted' }}
id: go id: go
- name: Configure Docker Hub mirror - name: Configure Docker Hub mirror
@@ -1237,7 +1170,7 @@ jobs:
echo "=== System Information ===" echo "=== System Information ==="
uname -a uname -a
free -h free -h
timeout 15 df -h || true df -h
docker info docker info
echo "=== Starting DuckDB Lance Tests ===" echo "=== Starting DuckDB Lance Tests ==="
@@ -1268,7 +1201,7 @@ jobs:
spark-lance-namespace-tests: spark-lance-namespace-tests:
name: Spark Lance Namespace Integration Tests name: Spark Lance Namespace Integration Tests
runs-on: ubuntu-24.04 runs-on: ubuntu-22.04
timeout-minutes: 40 timeout-minutes: 40
steps: steps:
@@ -1279,14 +1212,10 @@ jobs:
# so do not leave a token in the checkout for it to pick up. # so do not leave a token in the checkout for it to pick up.
persist-credentials: false persist-credentials: false
- name: Clean up stale FUSE mounts
uses: ./.github/actions/cleanup-stale-fuse-mounts
- name: Set up Go - name: Set up Go
uses: actions/setup-go@v7 uses: actions/setup-go@v7
with: with:
go-version-file: 'go.mod' go-version-file: 'go.mod'
cache: ${{ runner.environment == 'github-hosted' }}
id: go id: go
- name: Configure Docker Hub mirror - name: Configure Docker Hub mirror
@@ -1315,7 +1244,7 @@ jobs:
echo "=== System Information ===" echo "=== System Information ==="
uname -a uname -a
free -h free -h
timeout 15 df -h || true df -h
docker info docker info
echo "=== Starting Spark Lance Namespace Tests ===" echo "=== Starting Spark Lance Namespace Tests ==="
@@ -1346,7 +1275,7 @@ jobs:
s3-tables-build-verification: s3-tables-build-verification:
name: S3 Tables Build Verification name: S3 Tables Build Verification
runs-on: ubuntu-24.04 runs-on: ubuntu-22.04
timeout-minutes: 15 timeout-minutes: 15
steps: steps:
@@ -1357,7 +1286,6 @@ jobs:
uses: actions/setup-go@v7 uses: actions/setup-go@v7
with: with:
go-version-file: 'go.mod' go-version-file: 'go.mod'
cache: ${{ runner.environment == 'github-hosted' }}
id: go id: go
- name: Verify S3 Tables Package Builds - name: Verify S3 Tables Package Builds
@@ -1412,7 +1340,7 @@ jobs:
s3-tables-fmt-check: s3-tables-fmt-check:
name: S3 Tables Format Check name: S3 Tables Format Check
runs-on: ubuntu-24.04 runs-on: ubuntu-22.04
timeout-minutes: 10 timeout-minutes: 10
steps: steps:
@@ -1423,7 +1351,6 @@ jobs:
uses: actions/setup-go@v7 uses: actions/setup-go@v7
with: with:
go-version-file: 'go.mod' go-version-file: 'go.mod'
cache: ${{ runner.environment == 'github-hosted' }}
id: go id: go
- name: Check Go Format - name: Check Go Format
@@ -1464,7 +1391,7 @@ jobs:
s3-tables-vet: s3-tables-vet:
name: S3 Tables Go Vet Check name: S3 Tables Go Vet Check
runs-on: ubuntu-24.04 runs-on: ubuntu-22.04
timeout-minutes: 10 timeout-minutes: 10
steps: steps:
@@ -1475,7 +1402,6 @@ jobs:
uses: actions/setup-go@v7 uses: actions/setup-go@v7
with: with:
go-version-file: 'go.mod' go-version-file: 'go.mod'
cache: ${{ runner.environment == 'github-hosted' }}
id: go id: go
- name: Run Go Vet - name: Run Go Vet
+25 -44
View File
@@ -25,8 +25,8 @@ on:
- '.github/workflows/s3tests.yml' - '.github/workflows/s3tests.yml'
concurrency: concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || (github.event_name == 'push' && github.ref) || github.run_id }} group: ${{ github.head_ref }}/s3tests
cancel-in-progress: ${{ github.event_name == 'pull_request' || (github.event_name == 'push' && !startsWith(github.ref, 'refs/tags/')) }} cancel-in-progress: true
permissions: permissions:
contents: read contents: read
@@ -34,7 +34,7 @@ permissions:
jobs: jobs:
basic-s3-tests: basic-s3-tests:
name: Basic S3 tests (KV store) name: Basic S3 tests (KV store)
runs-on: ubuntu-24.04 runs-on: ubuntu-22.04
timeout-minutes: 15 timeout-minutes: 15
steps: steps:
- name: Check out code into the Go module directory - name: Check out code into the Go module directory
@@ -44,7 +44,6 @@ jobs:
uses: actions/setup-go@v7 uses: actions/setup-go@v7
with: with:
go-version-file: 'go.mod' go-version-file: 'go.mod'
cache: ${{ runner.environment == 'github-hosted' }}
id: go id: go
- name: Set up Python - name: Set up Python
@@ -58,9 +57,9 @@ jobs:
cd s3-tests cd s3-tests
sudo apt-get update -qq sudo apt-get update -qq
sudo apt-get install -y -qq libxml2-dev libxslt1-dev zlib1g-dev sudo apt-get install -y -qq libxml2-dev libxslt1-dev zlib1g-dev
python3 -m pip install -r requirements.txt pip install -r requirements.txt
python3 -m pip install tox pip install tox
python3 -m pip install -e . pip install -e .
- name: Fix S3 tests bucket creation conflicts - name: Fix S3 tests bucket creation conflicts
run: | run: |
@@ -380,21 +379,14 @@ jobs:
s3tests/functional/test_s3.py::test_copy_object_ifnonematch_good \ s3tests/functional/test_s3.py::test_copy_object_ifnonematch_good \
s3tests/functional/test_s3.py::test_lifecycle_set \ s3tests/functional/test_s3.py::test_lifecycle_set \
s3tests/functional/test_s3.py::test_lifecycle_get \ s3tests/functional/test_s3.py::test_lifecycle_get \
s3tests/functional/test_s3.py::test_lifecycle_set_filter s3tests/functional/test_s3.py::test_lifecycle_set_filter \
s3tests/functional/test_s3.py::test_lifecycle_expiration \
# The expiration tests race the lifecycle worker's meta-log replay; s3tests/functional/test_s3.py::test_lifecyclev2_expiration
# under the suite's write flood a shard can trail an object's PUT
# event past the test's fixed sleep window. One retry absorbs it.
lifecycle_expiration() {
tox -- s3tests/functional/test_s3.py::test_lifecycle_expiration \
s3tests/functional/test_s3.py::test_lifecyclev2_expiration
}
lifecycle_expiration || { echo "lifecycle expiration tests flaked; retry 1"; lifecycle_expiration; } || { echo "lifecycle expiration tests flaked; retry 2"; lifecycle_expiration; }
# cleanup() trap handles worker/server kill + data dir wipe. # cleanup() trap handles worker/server kill + data dir wipe.
versioning-tests: versioning-tests:
name: S3 Versioning & Object Lock tests name: S3 Versioning & Object Lock tests
runs-on: ubuntu-24.04 runs-on: ubuntu-22.04
timeout-minutes: 15 timeout-minutes: 15
steps: steps:
- name: Check out code into the Go module directory - name: Check out code into the Go module directory
@@ -404,7 +396,6 @@ jobs:
uses: actions/setup-go@v7 uses: actions/setup-go@v7
with: with:
go-version-file: 'go.mod' go-version-file: 'go.mod'
cache: ${{ runner.environment == 'github-hosted' }}
id: go id: go
- name: Set up Python - name: Set up Python
@@ -418,9 +409,9 @@ jobs:
cd s3-tests cd s3-tests
sudo apt-get update -qq sudo apt-get update -qq
sudo apt-get install -y -qq libxml2-dev libxslt1-dev zlib1g-dev sudo apt-get install -y -qq libxml2-dev libxslt1-dev zlib1g-dev
python3 -m pip install -r requirements.txt pip install -r requirements.txt
python3 -m pip install tox pip install tox
python3 -m pip install -e . pip install -e .
- name: Fix S3 tests bucket creation conflicts - name: Fix S3 tests bucket creation conflicts
run: | run: |
@@ -565,7 +556,7 @@ jobs:
cors-tests: cors-tests:
name: S3 CORS tests name: S3 CORS tests
runs-on: ubuntu-24.04 runs-on: ubuntu-22.04
timeout-minutes: 10 timeout-minutes: 10
steps: steps:
- name: Check out code into the Go module directory - name: Check out code into the Go module directory
@@ -575,7 +566,6 @@ jobs:
uses: actions/setup-go@v7 uses: actions/setup-go@v7
with: with:
go-version-file: 'go.mod' go-version-file: 'go.mod'
cache: ${{ runner.environment == 'github-hosted' }}
id: go id: go
- name: Set up Python - name: Set up Python
@@ -589,9 +579,9 @@ jobs:
cd s3-tests cd s3-tests
sudo apt-get update -qq sudo apt-get update -qq
sudo apt-get install -y -qq libxml2-dev libxslt1-dev zlib1g-dev sudo apt-get install -y -qq libxml2-dev libxslt1-dev zlib1g-dev
python3 -m pip install -r requirements.txt pip install -r requirements.txt
python3 -m pip install tox pip install tox
python3 -m pip install -e . pip install -e .
- name: Run S3 CORS tests - name: Run S3 CORS tests
timeout-minutes: 10 timeout-minutes: 10
@@ -691,7 +681,7 @@ jobs:
copy-tests: copy-tests:
name: SeaweedFS Custom S3 Copy tests name: SeaweedFS Custom S3 Copy tests
runs-on: ubuntu-24.04 runs-on: ubuntu-22.04
timeout-minutes: 10 timeout-minutes: 10
steps: steps:
- name: Check out code into the Go module directory - name: Check out code into the Go module directory
@@ -701,7 +691,6 @@ jobs:
uses: actions/setup-go@v7 uses: actions/setup-go@v7
with: with:
go-version-file: 'go.mod' go-version-file: 'go.mod'
cache: ${{ runner.environment == 'github-hosted' }}
id: go id: go
- name: Run SeaweedFS Custom S3 Copy tests - name: Run SeaweedFS Custom S3 Copy tests
@@ -794,7 +783,7 @@ jobs:
sql-store-tests: sql-store-tests:
name: Basic S3 tests (SQL store) name: Basic S3 tests (SQL store)
runs-on: ubuntu-24.04 runs-on: ubuntu-22.04
timeout-minutes: 15 timeout-minutes: 15
steps: steps:
- name: Check out code into the Go module directory - name: Check out code into the Go module directory
@@ -804,7 +793,6 @@ jobs:
uses: actions/setup-go@v7 uses: actions/setup-go@v7
with: with:
go-version-file: 'go.mod' go-version-file: 'go.mod'
cache: ${{ runner.environment == 'github-hosted' }}
id: go id: go
- name: Set up Python - name: Set up Python
@@ -818,9 +806,9 @@ jobs:
cd s3-tests cd s3-tests
sudo apt-get update -qq sudo apt-get update -qq
sudo apt-get install -y -qq libxml2-dev libxslt1-dev zlib1g-dev sudo apt-get install -y -qq libxml2-dev libxslt1-dev zlib1g-dev
python3 -m pip install -r requirements.txt pip install -r requirements.txt
python3 -m pip install tox pip install tox
python3 -m pip install -e . pip install -e .
- name: Run Ceph S3 tests with SQL store - name: Run Ceph S3 tests with SQL store
timeout-minutes: 15 timeout-minutes: 15
@@ -1257,16 +1245,9 @@ jobs:
s3tests/functional/test_s3.py::test_copy_object_ifnonematch_good \ s3tests/functional/test_s3.py::test_copy_object_ifnonematch_good \
s3tests/functional/test_s3.py::test_lifecycle_set \ s3tests/functional/test_s3.py::test_lifecycle_set \
s3tests/functional/test_s3.py::test_lifecycle_get \ s3tests/functional/test_s3.py::test_lifecycle_get \
s3tests/functional/test_s3.py::test_lifecycle_set_filter s3tests/functional/test_s3.py::test_lifecycle_set_filter \
s3tests/functional/test_s3.py::test_lifecycle_expiration \
# The expiration tests race the lifecycle worker's meta-log replay; s3tests/functional/test_s3.py::test_lifecyclev2_expiration
# under the suite's write flood a shard can trail an object's PUT
# event past the test's fixed sleep window. One retry absorbs it.
lifecycle_expiration() {
tox -- s3tests/functional/test_s3.py::test_lifecycle_expiration \
s3tests/functional/test_s3.py::test_lifecyclev2_expiration
}
lifecycle_expiration || { echo "lifecycle expiration tests flaked; retry 1"; lifecycle_expiration; } || { echo "lifecycle expiration tests flaked; retry 2"; lifecycle_expiration; }
# cleanup() trap handles worker/server kill + data dir wipe. # cleanup() trap handles worker/server kill + data dir wipe.
+2 -10
View File
@@ -29,7 +29,7 @@ permissions:
jobs: jobs:
samba-integration: samba-integration:
name: samba-integration name: samba-integration
runs-on: ubuntu-24.04 runs-on: ubuntu-22.04
timeout-minutes: 45 timeout-minutes: 45
steps: steps:
@@ -40,23 +40,15 @@ jobs:
uses: actions/setup-go@v7 uses: actions/setup-go@v7
with: with:
go-version-file: 'go.mod' go-version-file: 'go.mod'
cache: ${{ runner.environment == 'github-hosted' }}
- name: Start local Docker registry - name: Start local Docker registry
run: | run: docker run -d --restart=always -p 5000:5000 --name registry registry:2
if ! docker start registry 2>/dev/null; then
docker rm -f registry >/dev/null 2>&1 || true
docker run -d --restart=always -p 5000:5000 --name registry registry:2
fi
- name: Set up Docker Buildx - name: Set up Docker Buildx
uses: docker/setup-buildx-action@v4 uses: docker/setup-buildx-action@v4
with: with:
driver-opts: network=host driver-opts: network=host
- name: Set up Docker Compose
uses: docker/setup-compose-action@v2
- name: Build weed race binary - name: Build weed race binary
run: | run: |
cd docker cd docker
+3 -4
View File
@@ -17,8 +17,8 @@ on:
- '.github/workflows/sftp-tests.yml' - '.github/workflows/sftp-tests.yml'
concurrency: concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || (github.event_name == 'push' && github.ref) || github.run_id }} group: ${{ github.head_ref }}/sftp-tests
cancel-in-progress: ${{ github.event_name == 'pull_request' || (github.event_name == 'push' && !startsWith(github.ref, 'refs/tags/')) }} cancel-in-progress: true
permissions: permissions:
contents: read contents: read
@@ -29,7 +29,7 @@ env:
jobs: jobs:
sftp-integration: sftp-integration:
name: SFTP Integration Testing name: SFTP Integration Testing
runs-on: ubuntu-24.04 runs-on: ubuntu-22.04
timeout-minutes: 20 timeout-minutes: 20
steps: steps:
@@ -40,7 +40,6 @@ jobs:
uses: actions/setup-go@v7 uses: actions/setup-go@v7
with: with:
go-version-file: 'go.mod' go-version-file: 'go.mod'
cache: ${{ runner.environment == 'github-hosted' }}
- name: Install dependencies - name: Install dependencies
run: | run: |
@@ -15,10 +15,6 @@ on:
- '.github/workflows/spark-integration-tests.yml' - '.github/workflows/spark-integration-tests.yml'
workflow_dispatch: workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || (github.event_name == 'push' && github.ref) || github.run_id }}
cancel-in-progress: ${{ github.event_name == 'pull_request' || (github.event_name == 'push' && !startsWith(github.ref, 'refs/tags/')) }}
permissions: permissions:
contents: read contents: read
checks: write checks: write
@@ -42,13 +38,12 @@ jobs:
with: with:
java-version: '11' java-version: '11'
distribution: 'temurin' distribution: 'temurin'
cache: ${{ runner.environment == 'github-hosted' && 'maven' || '' }} cache: maven
- name: Set up Go - name: Set up Go
uses: actions/setup-go@v7 uses: actions/setup-go@v7
with: with:
go-version-file: 'go.mod' go-version-file: 'go.mod'
cache: ${{ runner.environment == 'github-hosted' }}
- name: Build SeaweedFS binary - name: Build SeaweedFS binary
run: | run: |
+6 -5
View File
@@ -10,11 +10,12 @@ permissions:
contents: write contents: write
concurrency: concurrency:
# Only one chart regeneration per branch at a time so overlapping runs never # Only one chart regeneration per branch at a time; a newer run on the same
# conflict on note/star_history.svg during rebase. Scoped by ref so a manual # branch cancels an in-flight one so overlapping runs never conflict on
# run on another branch can't cancel the daily master update. # note/star_history.svg during rebase. Scoped by ref so a manual run on
# another branch can't cancel the daily master update.
group: star-history-${{ github.ref }} group: star-history-${{ github.ref }}
cancel-in-progress: ${{ github.event_name == 'pull_request' || (github.event_name == 'push' && !startsWith(github.ref, 'refs/tags/')) }} cancel-in-progress: true
jobs: jobs:
render: render:
@@ -32,7 +33,7 @@ jobs:
uses: actions/setup-python@v7 uses: actions/setup-python@v7
with: with:
python-version: "3.x" python-version: "3.x"
cache: ${{ runner.environment == 'github-hosted' && 'pip' || '' }} cache: pip
cache-dependency-path: .github/scripts/star_history.py cache-dependency-path: .github/scripts/star_history.py
- name: Install matplotlib - name: Install matplotlib
@@ -14,10 +14,6 @@ on:
- 'weed/telemetry/**' - 'weed/telemetry/**'
- '.github/workflows/telemetry-integration.yml' - '.github/workflows/telemetry-integration.yml'
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || (github.event_name == 'push' && github.ref) || github.run_id }}
cancel-in-progress: ${{ github.event_name == 'pull_request' || (github.event_name == 'push' && !startsWith(github.ref, 'refs/tags/')) }}
permissions: permissions:
contents: read contents: read
@@ -34,7 +30,6 @@ jobs:
uses: actions/setup-go@v7 uses: actions/setup-go@v7
with: with:
go-version-file: 'go.mod' go-version-file: 'go.mod'
cache: ${{ runner.environment == 'github-hosted' }}
- name: Build telemetry server - name: Build telemetry server
run: cd telemetry/server && go build -o telemetry-server . run: cd telemetry/server && go build -o telemetry-server .
-5
View File
@@ -8,10 +8,6 @@ on:
branches: [ master ] branches: [ master ]
paths: ['terraform/**', '.github/workflows/terraform_ci.yml'] paths: ['terraform/**', '.github/workflows/terraform_ci.yml']
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || (github.event_name == 'push' && github.ref) || github.run_id }}
cancel-in-progress: ${{ github.event_name == 'pull_request' || (github.event_name == 'push' && !startsWith(github.ref, 'refs/tags/')) }}
permissions: permissions:
contents: read contents: read
@@ -66,7 +62,6 @@ jobs:
uses: actions/setup-go@v7 uses: actions/setup-go@v7
with: with:
go-version-file: go.mod go-version-file: go.mod
cache: ${{ runner.environment == 'github-hosted' }}
- name: Build weed - name: Build weed
run: go build -o "$RUNNER_TEMP/weed" ./weed run: go build -o "$RUNNER_TEMP/weed" ./weed
@@ -27,10 +27,6 @@ defaults:
run: run:
working-directory: weed working-directory: weed
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || (github.event_name == 'push' && github.ref) || github.run_id }}
cancel-in-progress: ${{ github.event_name == 'pull_request' || (github.event_name == 'push' && !startsWith(github.ref, 'refs/tags/')) }}
jobs: jobs:
awscli-tests: awscli-tests:
runs-on: ubuntu-latest runs-on: ubuntu-latest
@@ -41,7 +37,6 @@ jobs:
- uses: actions/setup-go@v7 - uses: actions/setup-go@v7
with: with:
go-version: ^1.26 go-version: ^1.26
cache: ${{ runner.environment == 'github-hosted' }}
- name: Build SeaweedFS - name: Build SeaweedFS
run: | run: |
+1 -6
View File
@@ -18,23 +18,18 @@ on:
- 'go.sum' - 'go.sum'
- '.github/workflows/tls-rotation-tests.yml' - '.github/workflows/tls-rotation-tests.yml'
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || (github.event_name == 'push' && github.ref) || github.run_id }}
cancel-in-progress: ${{ github.event_name == 'pull_request' || (github.event_name == 'push' && !startsWith(github.ref, 'refs/tags/')) }}
permissions: permissions:
contents: read contents: read
jobs: jobs:
tls-rotation-tests: tls-rotation-tests:
name: TLS Rotation Integration Tests name: TLS Rotation Integration Tests
runs-on: ubuntu-24.04 runs-on: ubuntu-22.04
timeout-minutes: 10 timeout-minutes: 10
steps: steps:
- name: Set up Go 1.x - name: Set up Go 1.x
uses: actions/setup-go@v7 uses: actions/setup-go@v7
with: with:
cache: ${{ runner.environment == 'github-hosted' }}
go-version: ^1.26 go-version: ^1.26
id: go id: go
+4 -8
View File
@@ -11,8 +11,8 @@ on:
- '.github/workflows/tus-tests.yml' - '.github/workflows/tus-tests.yml'
concurrency: concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || (github.event_name == 'push' && github.ref) || github.run_id }} group: ${{ github.head_ref || github.ref }}/tus-tests
cancel-in-progress: ${{ github.event_name == 'pull_request' || (github.event_name == 'push' && !startsWith(github.ref, 'refs/tags/')) }} cancel-in-progress: true
permissions: permissions:
contents: read contents: read
@@ -24,21 +24,17 @@ defaults:
jobs: jobs:
tus-integration-tests: tus-integration-tests:
name: TUS Protocol Integration Tests name: TUS Protocol Integration Tests
runs-on: ubuntu-24.04 runs-on: ubuntu-22.04
timeout-minutes: 20 timeout-minutes: 20
steps: steps:
- name: Check out code - name: Check out code
uses: actions/checkout@v7 uses: actions/checkout@v7
- name: Clean up stale FUSE mounts
uses: ./.github/actions/cleanup-stale-fuse-mounts
- name: Set up Go - name: Set up Go
uses: actions/setup-go@v7 uses: actions/setup-go@v7
with: with:
go-version-file: 'go.mod' go-version-file: 'go.mod'
cache: ${{ runner.environment == 'github-hosted' }}
id: go id: go
- name: Install SeaweedFS - name: Install SeaweedFS
@@ -53,7 +49,7 @@ jobs:
echo "=== System Information ===" echo "=== System Information ==="
uname -a uname -a
free -h free -h
timeout 15 df -h || true df -h
echo "=== Starting TUS Tests ===" echo "=== Starting TUS Tests ==="
# Run tests with automatic server management # Run tests with automatic server management
@@ -18,23 +18,18 @@ on:
- 'go.sum' - 'go.sum'
- '.github/workflows/vacuum-integration-tests.yml' - '.github/workflows/vacuum-integration-tests.yml'
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || (github.event_name == 'push' && github.ref) || github.run_id }}
cancel-in-progress: ${{ github.event_name == 'pull_request' || (github.event_name == 'push' && !startsWith(github.ref, 'refs/tags/')) }}
permissions: permissions:
contents: read contents: read
jobs: jobs:
vacuum-integration-tests: vacuum-integration-tests:
name: Vacuum Integration Tests name: Vacuum Integration Tests
runs-on: ubuntu-24.04 runs-on: ubuntu-22.04
timeout-minutes: 15 timeout-minutes: 15
steps: steps:
- name: Set up Go 1.x - name: Set up Go 1.x
uses: actions/setup-go@v7 uses: actions/setup-go@v7
with: with:
cache: ${{ runner.environment == 'github-hosted' }}
go-version: ^1.26 go-version: ^1.26
id: go id: go
@@ -21,8 +21,8 @@ on:
- '.github/workflows/volume-server-integration-tests.yml' - '.github/workflows/volume-server-integration-tests.yml'
concurrency: concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || (github.event_name == 'push' && github.ref) || github.run_id }} group: ${{ github.head_ref || github.ref }}/volume-server-integration-tests
cancel-in-progress: ${{ github.event_name == 'pull_request' || (github.event_name == 'push' && !startsWith(github.ref, 'refs/tags/')) }} cancel-in-progress: true
permissions: permissions:
contents: read contents: read
@@ -33,44 +33,10 @@ env:
SHARD_COUNT: 3 SHARD_COUNT: 3
jobs: jobs:
build-weed:
name: Build SeaweedFS Binary
runs-on: ubuntu-24.04
timeout-minutes: 15
steps:
- name: Checkout code
uses: actions/checkout@v7
- name: Set up Go
uses: actions/setup-go@v7
with:
go-version-file: 'go.mod'
cache: ${{ runner.environment == 'github-hosted' }}
- name: Build SeaweedFS binary
run: |
cd weed
go build -o weed .
chmod +x weed
./weed version
- name: Package binary
run: tar cf weed-binary.tar weed/weed
- name: Upload binary
uses: actions/upload-artifact@v7
with:
name: weed-binary
if-no-files-found: error
retention-days: 1
path: weed-binary.tar
volume-server-integration-tests: volume-server-integration-tests:
name: Volume Server Integration Tests (${{ matrix.test-type }} - Shard ${{ matrix.shard }}) name: Volume Server Integration Tests (${{ matrix.test-type }} - Shard ${{ matrix.shard }})
runs-on: ubuntu-24.04 runs-on: ubuntu-22.04
timeout-minutes: 45 timeout-minutes: 45
needs: [build-weed]
strategy: strategy:
fail-fast: false fail-fast: false
matrix: matrix:
@@ -85,18 +51,13 @@ jobs:
uses: actions/setup-go@v7 uses: actions/setup-go@v7
with: with:
go-version-file: 'go.mod' go-version-file: 'go.mod'
cache: ${{ runner.environment == 'github-hosted' }}
- name: Download binary - name: Build SeaweedFS binary
uses: actions/download-artifact@v8
with:
name: weed-binary
- name: Restore binary
run: | run: |
tar xf weed-binary.tar cd weed
chmod +x weed/weed go build -o weed .
./weed/weed version chmod +x weed
./weed version
# Dealing the listed tests out one by one keeps the shards even. Bucketing # Dealing the listed tests out one by one keeps the shards even. Bucketing
# them by first letter did not: names cluster, so ^Test[I-S] drew 50 of # them by first letter did not: names cluster, so ^Test[I-S] drew 50 of
-6
View File
@@ -144,9 +144,3 @@ weed_bin
telemetry/server/telemetry-server telemetry/server/telemetry-server
.aider* .aider*
/seaweed-volume/docs /seaweed-volume/docs
__pycache__/
/test/s3vectors/weed
/test/s3vectors/weed-vector
/test/s3vectors/weed-vector-worker
/test/s3vectors/weed-volume
.pytest_cache/
+1 -12
View File
@@ -33,7 +33,6 @@ ARG TARGETARCH
ARG TAGS ARG TAGS
COPY weed-volume-prebuilt/ /prebuilt/ COPY weed-volume-prebuilt/ /prebuilt/
COPY weed-worker-prebuilt/ /prebuilt-worker/ COPY weed-worker-prebuilt/ /prebuilt-worker/
COPY weed-vector-prebuilt/ /prebuilt-vector/
COPY --from=builder /go/src/github.com/seaweedfs/seaweedfs/seaweed-volume /build/seaweed-volume COPY --from=builder /go/src/github.com/seaweedfs/seaweedfs/seaweed-volume /build/seaweed-volume
# seaweed-common is a path dependency of seaweed-volume that lives beside it, # seaweed-common is a path dependency of seaweed-volume that lives beside it,
# so the source build below needs it in the same relative position. # so the source build below needs it in the same relative position.
@@ -66,19 +65,11 @@ RUN if [ -f "/prebuilt-worker/weed-worker-${TARGETARCH}" ]; then \
echo "No pre-built Rust worker for ${TARGETARCH}" && \ echo "No pre-built Rust worker for ${TARGETARCH}" && \
touch /weed-worker; \ touch /weed-worker; \
fi fi
# The vector engine carries the same lance tree, so it is pre-built or absent too.
RUN if [ -f "/prebuilt-vector/weed-vector-${TARGETARCH}" ]; then \
echo "Using pre-built vector engine for ${TARGETARCH}" && \
cp "/prebuilt-vector/weed-vector-${TARGETARCH}" /weed-vector; \
else \
echo "No pre-built vector engine for ${TARGETARCH}" && \
touch /weed-vector; \
fi
# Pre-built binaries arrive via GitHub Actions artifacts, which drop the # Pre-built binaries arrive via GitHub Actions artifacts, which drop the
# executable bit, so the copied file is 0644 and exec fails with "Permission # executable bit, so the copied file is 0644 and exec fails with "Permission
# denied". Restore it (no-op for the empty placeholders, which stay size 0). # denied". Restore it (no-op for the empty placeholders, which stay size 0).
RUN chmod 0755 /weed-volume /weed-worker /weed-vector RUN chmod 0755 /weed-volume /weed-worker
FROM alpine AS final FROM alpine AS final
LABEL author="Chris Lu" LABEL author="Chris Lu"
@@ -87,8 +78,6 @@ COPY --from=builder /go/bin/weed /usr/bin/
COPY --from=rust_builder /weed-volume /usr/bin/weed-volume COPY --from=rust_builder /weed-volume /usr/bin/weed-volume
# Same for the Rust maintenance worker, which serves Lance table buckets # Same for the Rust maintenance worker, which serves Lance table buckets
COPY --from=rust_builder /weed-worker /usr/bin/weed-worker COPY --from=rust_builder /weed-worker /usr/bin/weed-worker
# And the vector engine behind the S3 Vectors API
COPY --from=rust_builder /weed-vector /usr/bin/weed-vector
RUN mkdir -p /etc/seaweedfs RUN mkdir -p /etc/seaweedfs
COPY --from=builder /go/src/github.com/seaweedfs/seaweedfs/docker/filer.toml /etc/seaweedfs/filer.toml COPY --from=builder /go/src/github.com/seaweedfs/seaweedfs/docker/filer.toml /etc/seaweedfs/filer.toml
COPY --from=builder /go/src/github.com/seaweedfs/seaweedfs/docker/entrypoint.sh /entrypoint.sh COPY --from=builder /go/src/github.com/seaweedfs/seaweedfs/docker/entrypoint.sh /entrypoint.sh
+1 -1
View File
@@ -3,7 +3,7 @@ FROM golang:1.26 AS builder
RUN apt-get update RUN apt-get update
RUN apt-get install -y build-essential libsnappy-dev zlib1g-dev libbz2-dev libgflags-dev liblz4-dev libzstd-dev RUN apt-get install -y build-essential libsnappy-dev zlib1g-dev libbz2-dev libgflags-dev liblz4-dev libzstd-dev
ARG ROCKSDB_VERSION=v11.1.2 ARG ROCKSDB_VERSION=v10.10.1
ENV ROCKSDB_VERSION=${ROCKSDB_VERSION} ENV ROCKSDB_VERSION=${ROCKSDB_VERSION}
# build RocksDB # build RocksDB
+1 -1
View File
@@ -3,7 +3,7 @@ FROM golang:1.26 AS builder
RUN apt-get update RUN apt-get update
RUN apt-get install -y build-essential libsnappy-dev zlib1g-dev libbz2-dev libgflags-dev liblz4-dev libzstd-dev RUN apt-get install -y build-essential libsnappy-dev zlib1g-dev libbz2-dev libgflags-dev liblz4-dev libzstd-dev
ARG ROCKSDB_VERSION=v11.1.2 ARG ROCKSDB_VERSION=v10.10.1
ENV ROCKSDB_VERSION=${ROCKSDB_VERSION} ENV ROCKSDB_VERSION=${ROCKSDB_VERSION}
# build RocksDB # build RocksDB
-13
View File
@@ -100,19 +100,6 @@ case "$1" in
exec /usr/bin/weed-worker "$@" exec /usr/bin/weed-worker "$@"
;; ;;
'vector')
shift
if [ ! -s /usr/bin/weed-vector ]; then
echo "Error: the vector engine is not available on this platform ($(uname -m))." >&2
exit 1
fi
# The gateway dials the engine from another container, so not loopback.
if [ -z "$WEED_VECTOR_LISTEN" ] && ! isArgPassed "-listen" "$@"; then
set -- --listen 0.0.0.0:8090 "$@"
fi
exec /usr/bin/weed-vector "$@"
;;
'server') 'server')
ARGS="-dir=/data -volume.max=0 -master.volumeSizeLimitMB=1024" ARGS="-dir=/data -volume.max=0 -master.volumeSizeLimitMB=1024"
if isArgPassed "-volume.max" "$@"; then if isArgPassed "-volume.max" "$@"; then
Whitespace-only changes.
+19 -19
View File
@@ -65,7 +65,7 @@ require (
github.com/rcrowley/go-metrics v0.0.0-20201227073835-cf1acfcdf475 // indirect github.com/rcrowley/go-metrics v0.0.0-20201227073835-cf1acfcdf475 // indirect
github.com/remyoudompheng/bigfft v0.0.0-20230129092748-24d4a6f8daec // indirect github.com/remyoudompheng/bigfft v0.0.0-20230129092748-24d4a6f8daec // indirect
github.com/seaweedfs/goexif v1.0.3 github.com/seaweedfs/goexif v1.0.3
github.com/seaweedfs/raft v1.2.3 github.com/seaweedfs/raft v1.2.2
github.com/sirupsen/logrus v1.9.4 // indirect github.com/sirupsen/logrus v1.9.4 // indirect
github.com/spf13/afero v1.15.0 // indirect github.com/spf13/afero v1.15.0 // indirect
github.com/spf13/cast v1.10.0 // indirect github.com/spf13/cast v1.10.0 // indirect
@@ -101,7 +101,7 @@ require (
golang.org/x/xerrors v0.0.0-20240903120638-7835f813f4da // indirect golang.org/x/xerrors v0.0.0-20240903120638-7835f813f4da // indirect
google.golang.org/api v0.297.0 google.golang.org/api v0.297.0
google.golang.org/genproto v0.0.0-20260904194346-d0f1323225a4 // indirect google.golang.org/genproto v0.0.0-20260904194346-d0f1323225a4 // indirect
google.golang.org/grpc v1.86.0-dev.0.20261027044109-d619b5d02089 google.golang.org/grpc v1.85.0-dev.0.20260915183914-4e49413dcab7
google.golang.org/protobuf v1.36.12 google.golang.org/protobuf v1.36.12
gopkg.in/inf.v0 v0.9.1 // indirect gopkg.in/inf.v0 v0.9.1 // indirect
modernc.org/b v1.0.0 // indirect modernc.org/b v1.0.0 // indirect
@@ -115,9 +115,8 @@ require (
github.com/Azure/azure-sdk-for-go/sdk/keyvault/azkeys v0.10.0 github.com/Azure/azure-sdk-for-go/sdk/keyvault/azkeys v0.10.0
github.com/DATA-DOG/go-sqlmock v1.5.2 github.com/DATA-DOG/go-sqlmock v1.5.2
github.com/Jille/raft-grpc-transport v1.6.1 github.com/Jille/raft-grpc-transport v1.6.1
github.com/ThreeDotsLabs/watermill v1.5.3 github.com/ThreeDotsLabs/watermill v1.5.2
github.com/a-h/templ v0.3.1100 github.com/a-h/templ v0.3.1070
github.com/apache/arrow-go/v18 v18.8.0
github.com/apache/cassandra-gocql-driver/v2 v2.1.2 github.com/apache/cassandra-gocql-driver/v2 v2.1.2
github.com/apache/iceberg-go v0.7.0 github.com/apache/iceberg-go v0.7.0
github.com/apple/foundationdb/bindings/go v0.0.0-20250911184653-27f7192f47c3 github.com/apple/foundationdb/bindings/go v0.0.0-20250911184653-27f7192f47c3
@@ -130,7 +129,7 @@ require (
github.com/cespare/xxhash/v2 v2.3.0 github.com/cespare/xxhash/v2 v2.3.0
github.com/cognusion/imaging v1.0.4 github.com/cognusion/imaging v1.0.4
github.com/fluent/fluent-logger-golang v1.10.1 github.com/fluent/fluent-logger-golang v1.10.1
github.com/getsentry/sentry-go v0.50.0 github.com/getsentry/sentry-go v0.49.0
github.com/go-ldap/ldap/v3 v3.4.14 github.com/go-ldap/ldap/v3 v3.4.14
github.com/golang-jwt/jwt/v5 v5.3.1 github.com/golang-jwt/jwt/v5 v5.3.1
github.com/google/flatbuffers/go v0.0.0-20230108230133-3b8644d32c50 github.com/google/flatbuffers/go v0.0.0-20230108230133-3b8644d32c50
@@ -143,11 +142,11 @@ require (
github.com/minio/crc64nvme v1.1.1 github.com/minio/crc64nvme v1.1.1
github.com/orcaman/concurrent-map/v2 v2.0.1 github.com/orcaman/concurrent-map/v2 v2.0.1
github.com/parquet-go/parquet-go v0.32.0 github.com/parquet-go/parquet-go v0.32.0
github.com/pkg/sftp v1.13.12 github.com/pkg/sftp v1.13.11
github.com/rabbitmq/amqp091-go v1.15.0 github.com/rabbitmq/amqp091-go v1.15.0
github.com/rclone/rclone v1.75.1 github.com/rclone/rclone v1.75.1
github.com/rdleal/intervalst v1.5.0 github.com/rdleal/intervalst v1.5.0
github.com/redis/go-redis/v9 v9.23.0 github.com/redis/go-redis/v9 v9.22.0
github.com/schollz/progressbar/v3 v3.19.1 github.com/schollz/progressbar/v3 v3.19.1
github.com/seaweedfs/go-fuse/v2 v2.9.4 github.com/seaweedfs/go-fuse/v2 v2.9.4
github.com/shirou/gopsutil/v4 v4.26.7 github.com/shirou/gopsutil/v4 v4.26.7
@@ -182,6 +181,7 @@ require (
github.com/adrg/xdg v0.5.3 // indirect github.com/adrg/xdg v0.5.3 // indirect
github.com/anchore/go-lzo v0.1.1 // indirect github.com/anchore/go-lzo v0.1.1 // indirect
github.com/antlr4-go/antlr/v4 v4.13.1 // indirect github.com/antlr4-go/antlr/v4 v4.13.1 // indirect
github.com/apache/arrow-go/v18 v18.8.0 // indirect
github.com/apache/thrift v0.24.0 // indirect github.com/apache/thrift v0.24.0 // indirect
github.com/aws/aws-sdk-go-v2/service/signin v1.10.1 // indirect github.com/aws/aws-sdk-go-v2/service/signin v1.10.1 // indirect
github.com/bahlo/generic-list-go v0.2.0 // indirect github.com/bahlo/generic-list-go v0.2.0 // indirect
@@ -290,19 +290,19 @@ require (
cel.dev/expr v0.25.3 // indirect cel.dev/expr v0.25.3 // indirect
cloud.google.com/go/auth v0.23.2 // indirect cloud.google.com/go/auth v0.23.2 // indirect
cloud.google.com/go/auth/oauth2adapt v0.2.8 // indirect cloud.google.com/go/auth/oauth2adapt v0.2.8 // indirect
cloud.google.com/go/compute/metadata v0.10.0 // indirect cloud.google.com/go/compute/metadata v0.9.0 // indirect
cloud.google.com/go/iam v1.13.0 // indirect cloud.google.com/go/iam v1.13.0 // indirect
cloud.google.com/go/monitoring v1.30.0 // indirect cloud.google.com/go/monitoring v1.30.0 // indirect
filippo.io/edwards25519 v1.2.0 // indirect filippo.io/edwards25519 v1.2.0 // indirect
github.com/Azure/azure-sdk-for-go/sdk/azcore v1.23.3 github.com/Azure/azure-sdk-for-go/sdk/azcore v1.23.2
github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.14.1 github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.14.1
github.com/Azure/azure-sdk-for-go/sdk/internal v1.13.0 // indirect github.com/Azure/azure-sdk-for-go/sdk/internal v1.12.0 // indirect
github.com/Azure/azure-sdk-for-go/sdk/storage/azblob v1.8.2 github.com/Azure/azure-sdk-for-go/sdk/storage/azblob v1.8.2
github.com/Azure/azure-sdk-for-go/sdk/storage/azfile v1.7.0 // indirect github.com/Azure/azure-sdk-for-go/sdk/storage/azfile v1.7.0 // indirect
github.com/Azure/go-ntlmssp v0.1.1 // indirect github.com/Azure/go-ntlmssp v0.1.1 // indirect
github.com/AzureAD/microsoft-authentication-library-for-go v1.9.0 // indirect github.com/AzureAD/microsoft-authentication-library-for-go v1.9.0 // indirect
github.com/Files-com/files-sdk-go/v3 v3.3.194 // indirect github.com/Files-com/files-sdk-go/v3 v3.3.194 // indirect
github.com/GoogleCloudPlatform/opentelemetry-operations-go/detectors/gcp v1.38.0 // indirect github.com/GoogleCloudPlatform/opentelemetry-operations-go/detectors/gcp v1.37.0 // indirect
github.com/GoogleCloudPlatform/opentelemetry-operations-go/exporter/metric v0.61.0 // indirect github.com/GoogleCloudPlatform/opentelemetry-operations-go/exporter/metric v0.61.0 // indirect
github.com/GoogleCloudPlatform/opentelemetry-operations-go/internal/resourcemapping v0.61.0 // indirect github.com/GoogleCloudPlatform/opentelemetry-operations-go/internal/resourcemapping v0.61.0 // indirect
github.com/IBM/go-sdk-core/v5 v5.23.1 // indirect github.com/IBM/go-sdk-core/v5 v5.23.1 // indirect
@@ -314,7 +314,7 @@ require (
github.com/ProtonMail/go-srp v0.0.7 // indirect github.com/ProtonMail/go-srp v0.0.7 // indirect
github.com/PuerkitoBio/goquery v1.12.0 // indirect github.com/PuerkitoBio/goquery v1.12.0 // indirect
github.com/abbot/go-http-auth v0.4.0 // indirect github.com/abbot/go-http-auth v0.4.0 // indirect
github.com/andybalholm/brotli v1.2.7 // indirect github.com/andybalholm/brotli v1.2.6 // indirect
github.com/andybalholm/cascadia v1.3.4 // indirect github.com/andybalholm/cascadia v1.3.4 // indirect
github.com/appscode/go-querystring v0.0.0-20170504095604-0126cfb3f1dc // indirect github.com/appscode/go-querystring v0.0.0-20170504095604-0126cfb3f1dc // indirect
github.com/arangodb/go-velocypack v0.0.0-20200318135517-5af53c29c67e // indirect github.com/arangodb/go-velocypack v0.0.0-20200318135517-5af53c29c67e // indirect
@@ -355,16 +355,16 @@ require (
github.com/elastic/gosigar v0.14.3 // indirect github.com/elastic/gosigar v0.14.3 // indirect
github.com/emersion/go-message v0.18.2 // indirect github.com/emersion/go-message v0.18.2 // indirect
github.com/emersion/go-vcard v0.0.0-20260618161152-d854b7e0e2d3 // indirect github.com/emersion/go-vcard v0.0.0-20260618161152-d854b7e0e2d3 // indirect
github.com/envoyproxy/go-control-plane/envoy v1.40.1-0.20261014170222-9c4befd3c419 // indirect github.com/envoyproxy/go-control-plane/envoy v1.39.1-0.20260819172001-e6e3fd93e4be // indirect
github.com/envoyproxy/protoc-gen-validate v1.3.3 // indirect github.com/envoyproxy/protoc-gen-validate v1.3.3 // indirect
github.com/fatih/color v1.19.0 // indirect github.com/fatih/color v1.19.0 // indirect
github.com/felixge/httpsnoop v1.1.0 // indirect github.com/felixge/httpsnoop v1.1.0 // indirect
github.com/flynn/noise v1.1.0 // indirect github.com/flynn/noise v1.1.0 // indirect
github.com/gabriel-vasile/mimetype v1.4.13 // indirect github.com/gabriel-vasile/mimetype v1.4.13 // indirect
github.com/geoffgarside/ber v1.2.0 // indirect github.com/geoffgarside/ber v1.2.0 // indirect
github.com/go-chi/chi/v5 v5.4.0 // indirect github.com/go-chi/chi/v5 v5.3.1 // indirect
github.com/go-darwin/apfs v0.0.0-20211011131704-f84b94dbf348 // indirect github.com/go-darwin/apfs v0.0.0-20211011131704-f84b94dbf348 // indirect
github.com/go-jose/go-jose/v4 v4.1.6 // indirect github.com/go-jose/go-jose/v4 v4.1.5 // indirect
github.com/go-logr/logr v1.4.4 // indirect github.com/go-logr/logr v1.4.4 // indirect
github.com/go-logr/stdr v1.2.2 // indirect github.com/go-logr/stdr v1.2.2 // indirect
github.com/go-ole/go-ole v1.3.0 // indirect github.com/go-ole/go-ole v1.3.0 // indirect
@@ -455,7 +455,7 @@ require (
github.com/sourcegraph/conc v0.3.1-0.20240121214520-5f936abd7ae8 // indirect github.com/sourcegraph/conc v0.3.1-0.20240121214520-5f936abd7ae8 // indirect
github.com/spacemonkeygo/monkit/v3 v3.0.25-0.20251022131615-eb24eb109368 // indirect github.com/spacemonkeygo/monkit/v3 v3.0.25-0.20251022131615-eb24eb109368 // indirect
github.com/spf13/pflag v1.0.10 // indirect github.com/spf13/pflag v1.0.10 // indirect
github.com/spiffe/go-spiffe/v2 v2.8.2 // indirect github.com/spiffe/go-spiffe/v2 v2.8.1 // indirect
github.com/subosito/gotenv v1.6.0 // indirect github.com/subosito/gotenv v1.6.0 // indirect
github.com/t3rm1n4l/go-mega v0.0.0-20260717075258-c6acd6a5bd04 // indirect github.com/t3rm1n4l/go-mega v0.0.0-20260717075258-c6acd6a5bd04 // indirect
github.com/tarantool/go-iproto v1.1.0 // indirect github.com/tarantool/go-iproto v1.1.0 // indirect
@@ -493,8 +493,8 @@ require (
go.uber.org/zap v1.28.0 // indirect go.uber.org/zap v1.28.0 // indirect
golang.org/x/term v0.47.0 golang.org/x/term v0.47.0
golang.org/x/time v0.16.0 golang.org/x/time v0.16.0
google.golang.org/genproto/googleapis/api v0.0.0-20260921155816-b14227669459 // indirect google.golang.org/genproto/googleapis/api v0.0.0-20260904194346-d0f1323225a4 // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20260921155816-b14227669459 // indirect google.golang.org/genproto/googleapis/rpc v0.0.0-20260904194346-d0f1323225a4 // indirect
gopkg.in/natefinch/lumberjack.v2 v2.2.1 // indirect gopkg.in/natefinch/lumberjack.v2 v2.2.1 // indirect
gopkg.in/validator.v2 v2.0.1 // indirect gopkg.in/validator.v2 v2.0.1 // indirect
gopkg.in/yaml.v2 v2.4.0 // indirect gopkg.in/yaml.v2 v2.4.0 // indirect
+36 -36
View File
@@ -8,8 +8,8 @@ cloud.google.com/go/auth v0.23.2 h1:pxSCpfiji41hpzpPdMCftEUCezpgpqmmDdYiAjCKXxo=
cloud.google.com/go/auth v0.23.2/go.mod h1:4DhBRcqvtljQN3dJ57qtqbib5ZGCYE5f2crfiiC2EM0= cloud.google.com/go/auth v0.23.2/go.mod h1:4DhBRcqvtljQN3dJ57qtqbib5ZGCYE5f2crfiiC2EM0=
cloud.google.com/go/auth/oauth2adapt v0.2.8 h1:keo8NaayQZ6wimpNSmW5OPc283g65QNIiLpZnkHRbnc= cloud.google.com/go/auth/oauth2adapt v0.2.8 h1:keo8NaayQZ6wimpNSmW5OPc283g65QNIiLpZnkHRbnc=
cloud.google.com/go/auth/oauth2adapt v0.2.8/go.mod h1:XQ9y31RkqZCcwJWNSx2Xvric3RrU88hAYYbjDWYDL+c= cloud.google.com/go/auth/oauth2adapt v0.2.8/go.mod h1:XQ9y31RkqZCcwJWNSx2Xvric3RrU88hAYYbjDWYDL+c=
cloud.google.com/go/compute/metadata v0.10.0 h1:pyKMUQSwchgkIBBJGdILqQbs/BNJXqwSA7Ej6LAvvtY= cloud.google.com/go/compute/metadata v0.9.0 h1:pDUj4QMoPejqq20dK0Pg2N4yG9zIkYGdBtwLoEkH9Zs=
cloud.google.com/go/compute/metadata v0.10.0/go.mod h1:rGFHRrIif570kSibjFTMbt6/4/tzgJWFGI/HVol4GIk= cloud.google.com/go/compute/metadata v0.9.0/go.mod h1:E0bWwX5wTnLPedCKqk3pJmVgCBSM6qQI1yTBdEb3C10=
cloud.google.com/go/iam v1.13.0 h1:ufT3FPT5rFFXu6UtLkNoxaOaV5EuA1dsSkmemCSTo6U= cloud.google.com/go/iam v1.13.0 h1:ufT3FPT5rFFXu6UtLkNoxaOaV5EuA1dsSkmemCSTo6U=
cloud.google.com/go/iam v1.13.0/go.mod h1:gHXdDEiPDvqd1q1KwBDGQlgZY/BwY760zU2LhOZS5w0= cloud.google.com/go/iam v1.13.0/go.mod h1:gHXdDEiPDvqd1q1KwBDGQlgZY/BwY760zU2LhOZS5w0=
cloud.google.com/go/kms v1.35.0 h1:nJ/ktaqspx1nPM9vIcO0SHbhqCAm8nvAxL1siuVgKm0= cloud.google.com/go/kms v1.35.0 h1:nJ/ktaqspx1nPM9vIcO0SHbhqCAm8nvAxL1siuVgKm0=
@@ -34,14 +34,14 @@ filippo.io/edwards25519 v1.2.0 h1:crnVqOiS4jqYleHd9vaKZ+HKtHfllngJIiOpNpoJsjo=
filippo.io/edwards25519 v1.2.0/go.mod h1:xzAOLCNug/yB62zG1bQ8uziwrIqIuxhctzJT18Q77mc= filippo.io/edwards25519 v1.2.0/go.mod h1:xzAOLCNug/yB62zG1bQ8uziwrIqIuxhctzJT18Q77mc=
github.com/AdaLogics/go-fuzz-headers v0.0.0-20240806141605-e8a1dd7889d6 h1:He8afgbRMd7mFxO99hRNu+6tazq8nFF9lIwo9JFroBk= github.com/AdaLogics/go-fuzz-headers v0.0.0-20240806141605-e8a1dd7889d6 h1:He8afgbRMd7mFxO99hRNu+6tazq8nFF9lIwo9JFroBk=
github.com/AdaLogics/go-fuzz-headers v0.0.0-20240806141605-e8a1dd7889d6/go.mod h1:8o94RPi1/7XTJvwPpRSzSUedZrtlirdB3r9Z20bi2f8= github.com/AdaLogics/go-fuzz-headers v0.0.0-20240806141605-e8a1dd7889d6/go.mod h1:8o94RPi1/7XTJvwPpRSzSUedZrtlirdB3r9Z20bi2f8=
github.com/Azure/azure-sdk-for-go/sdk/azcore v1.23.3 h1:qgnWTiWs1G7AqcKZegFvkJD1bmXJcaDU3uC0ELSgZ5U= github.com/Azure/azure-sdk-for-go/sdk/azcore v1.23.2 h1:utpeoEeZjd+A8J41zvoLsOOrqXHhX1Kx/X/tCW9dEYQ=
github.com/Azure/azure-sdk-for-go/sdk/azcore v1.23.3/go.mod h1:XtxD48QPInqoj+GMlcRlXHEYsoOxFnP6w2JgIZ9rDS4= github.com/Azure/azure-sdk-for-go/sdk/azcore v1.23.2/go.mod h1:iptorS+VYKFL2N6PnebpS91dubG35eAOEERnT4PJbQU=
github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.14.1 h1:u93s+zU2JD62im61Bm5CZIc1ZrOJaIAWEg0WOrMVkEo= github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.14.1 h1:u93s+zU2JD62im61Bm5CZIc1ZrOJaIAWEg0WOrMVkEo=
github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.14.1/go.mod h1:oXtinPO4OLj9d1DOTrqrL1oRwGhcqadvAmrl6wTeGlk= github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.14.1/go.mod h1:oXtinPO4OLj9d1DOTrqrL1oRwGhcqadvAmrl6wTeGlk=
github.com/Azure/azure-sdk-for-go/sdk/azidentity/cache v0.4.0 h1:xFaZZ+IubdftrDHnGGwZ6QvQ3KHTtWl2MCK+GMt2vxs= github.com/Azure/azure-sdk-for-go/sdk/azidentity/cache v0.4.0 h1:xFaZZ+IubdftrDHnGGwZ6QvQ3KHTtWl2MCK+GMt2vxs=
github.com/Azure/azure-sdk-for-go/sdk/azidentity/cache v0.4.0/go.mod h1:mCBhUhlMjLLJKr5aqw2TNS/VqJOie8MzWq3DAMJeKso= github.com/Azure/azure-sdk-for-go/sdk/azidentity/cache v0.4.0/go.mod h1:mCBhUhlMjLLJKr5aqw2TNS/VqJOie8MzWq3DAMJeKso=
github.com/Azure/azure-sdk-for-go/sdk/internal v1.13.0 h1:Terj1CMW4+NY5CpWjSRkqLoxh2DkYDdv/FH2z0897Uc= github.com/Azure/azure-sdk-for-go/sdk/internal v1.12.0 h1:fhqpLE3UEXi9lPaBRpQ6XuRW0nU7hgg4zlmZZa+a9q4=
github.com/Azure/azure-sdk-for-go/sdk/internal v1.13.0/go.mod h1:7Ut2Qw9vcwpLW5Q4MBy43uSxXS7tK2yjs94OJ6j5thE= github.com/Azure/azure-sdk-for-go/sdk/internal v1.12.0/go.mod h1:7dCRMLwisfRH3dBupKeNCioWYUZ4SS09Z14H+7i8ZoY=
github.com/Azure/azure-sdk-for-go/sdk/keyvault/azkeys v0.10.0 h1:m/sWOGCREuSBqg2htVQTBY8nOZpyajYztF0vUvSZTuM= github.com/Azure/azure-sdk-for-go/sdk/keyvault/azkeys v0.10.0 h1:m/sWOGCREuSBqg2htVQTBY8nOZpyajYztF0vUvSZTuM=
github.com/Azure/azure-sdk-for-go/sdk/keyvault/azkeys v0.10.0/go.mod h1:Pu5Zksi2KrU7LPbZbNINx6fuVrUp/ffvpxdDj+i8LeE= github.com/Azure/azure-sdk-for-go/sdk/keyvault/azkeys v0.10.0/go.mod h1:Pu5Zksi2KrU7LPbZbNINx6fuVrUp/ffvpxdDj+i8LeE=
github.com/Azure/azure-sdk-for-go/sdk/keyvault/internal v0.7.1 h1:FbH3BbSb4bvGluTesZZ+ttN/MDsnMmQP36OSnDuSXqw= github.com/Azure/azure-sdk-for-go/sdk/keyvault/internal v0.7.1 h1:FbH3BbSb4bvGluTesZZ+ttN/MDsnMmQP36OSnDuSXqw=
@@ -75,8 +75,8 @@ github.com/FilenCloudDienste/filen-sdk-go v0.0.39 h1:tgV5jYL6dsXop9TpDTIQU6UwJjw
github.com/FilenCloudDienste/filen-sdk-go v0.0.39/go.mod h1:0cBhKXQg49XbKZZfk5TCDa3sVLP+xMxZTWL+7KY0XR0= github.com/FilenCloudDienste/filen-sdk-go v0.0.39/go.mod h1:0cBhKXQg49XbKZZfk5TCDa3sVLP+xMxZTWL+7KY0XR0=
github.com/Files-com/files-sdk-go/v3 v3.3.194 h1:dtOFxSTWWRpkmvXa6ycNiw8dVDu1wkgzcXyVV1VafNc= github.com/Files-com/files-sdk-go/v3 v3.3.194 h1:dtOFxSTWWRpkmvXa6ycNiw8dVDu1wkgzcXyVV1VafNc=
github.com/Files-com/files-sdk-go/v3 v3.3.194/go.mod h1:rl0WumSN9gSo775DgvQv+wMQ8rlb0ES/1hU5jkMtLXg= github.com/Files-com/files-sdk-go/v3 v3.3.194/go.mod h1:rl0WumSN9gSo775DgvQv+wMQ8rlb0ES/1hU5jkMtLXg=
github.com/GoogleCloudPlatform/opentelemetry-operations-go/detectors/gcp v1.38.0 h1:rmzbFS2CkHq0y2L5LkMVWm+QXjjNEXxjmhrJqga/QGk= github.com/GoogleCloudPlatform/opentelemetry-operations-go/detectors/gcp v1.37.0 h1:edOuLWehuDlQ68roBF900Y09jvBoJP5W5d/wusz9nWY=
github.com/GoogleCloudPlatform/opentelemetry-operations-go/detectors/gcp v1.38.0/go.mod h1:iIyrdhveU5Ow84ipRlxtjCOQnIM0DiqSMxuxm50xwZY= github.com/GoogleCloudPlatform/opentelemetry-operations-go/detectors/gcp v1.37.0/go.mod h1:iIyrdhveU5Ow84ipRlxtjCOQnIM0DiqSMxuxm50xwZY=
github.com/GoogleCloudPlatform/opentelemetry-operations-go/exporter/metric v0.61.0 h1:BeC1Bub7Ttk33TF8v3ZeQ2L8acvz4ZLqtQuLyJAZquc= github.com/GoogleCloudPlatform/opentelemetry-operations-go/exporter/metric v0.61.0 h1:BeC1Bub7Ttk33TF8v3ZeQ2L8acvz4ZLqtQuLyJAZquc=
github.com/GoogleCloudPlatform/opentelemetry-operations-go/exporter/metric v0.61.0/go.mod h1:UgG/Xn9+NXb1/ueSczIFxyuya3hs3srFDiZG2JrpJwY= github.com/GoogleCloudPlatform/opentelemetry-operations-go/exporter/metric v0.61.0/go.mod h1:UgG/Xn9+NXb1/ueSczIFxyuya3hs3srFDiZG2JrpJwY=
github.com/GoogleCloudPlatform/opentelemetry-operations-go/internal/cloudmock v0.61.0 h1:eSgSuKdcpY7RTN1oXSzC6S39rPBImn03ubLMsWK4RRg= github.com/GoogleCloudPlatform/opentelemetry-operations-go/internal/cloudmock v0.61.0 h1:eSgSuKdcpY7RTN1oXSzC6S39rPBImn03ubLMsWK4RRg=
@@ -116,12 +116,12 @@ github.com/Shopify/sarama v1.38.1 h1:lqqPUPQZ7zPqYlWpTh+LQ9bhYNu2xJL6k1SJN4WVe2A
github.com/Shopify/sarama v1.38.1/go.mod h1:iwv9a67Ha8VNa+TifujYoWGxWnu2kNVAQdSdZ4X2o5g= github.com/Shopify/sarama v1.38.1/go.mod h1:iwv9a67Ha8VNa+TifujYoWGxWnu2kNVAQdSdZ4X2o5g=
github.com/Shopify/toxiproxy/v2 v2.5.0 h1:i4LPT+qrSlKNtQf5QliVjdP08GyAH8+BUIc9gT0eahc= github.com/Shopify/toxiproxy/v2 v2.5.0 h1:i4LPT+qrSlKNtQf5QliVjdP08GyAH8+BUIc9gT0eahc=
github.com/Shopify/toxiproxy/v2 v2.5.0/go.mod h1:yhM2epWtAmel9CB8r2+L+PCmhH6yH2pITaPAo7jxJl0= github.com/Shopify/toxiproxy/v2 v2.5.0/go.mod h1:yhM2epWtAmel9CB8r2+L+PCmhH6yH2pITaPAo7jxJl0=
github.com/ThreeDotsLabs/watermill v1.5.3 h1:GoTR7fW1ZT+itzUv/w3VB6Um1B7oTBrOWjJ8sOA9XqU= github.com/ThreeDotsLabs/watermill v1.5.2 h1:0ES33Eq1jEsP/pWvtE4n8bE0bs+9Jq7boT7wGBCVY6Q=
github.com/ThreeDotsLabs/watermill v1.5.3/go.mod h1:i9/968UriGphWfEbfMuYSD1qFbYRjb0mE0r+rV0FPp4= github.com/ThreeDotsLabs/watermill v1.5.2/go.mod h1:i9/968UriGphWfEbfMuYSD1qFbYRjb0mE0r+rV0FPp4=
github.com/TomiHiltunen/geohash-golang v0.0.0-20150112065804-b3e4e625abfb h1:wumPkzt4zaxO4rHPBrjDK8iZMR41C1qs7njNqlacwQg= github.com/TomiHiltunen/geohash-golang v0.0.0-20150112065804-b3e4e625abfb h1:wumPkzt4zaxO4rHPBrjDK8iZMR41C1qs7njNqlacwQg=
github.com/TomiHiltunen/geohash-golang v0.0.0-20150112065804-b3e4e625abfb/go.mod h1:QiYsIBRQEO+Z4Rz7GoI+dsHVneZNONvhczuA+llOZNM= github.com/TomiHiltunen/geohash-golang v0.0.0-20150112065804-b3e4e625abfb/go.mod h1:QiYsIBRQEO+Z4Rz7GoI+dsHVneZNONvhczuA+llOZNM=
github.com/a-h/templ v0.3.1100 h1:lQhjVs1IL+M6QWUvojaFBd21+kzwATppSyWkWB9oHoM= github.com/a-h/templ v0.3.1070 h1:3iCOXHXqFXa99OQzgkUOLJbNzv/QjFGLwKZkBAg+ADA=
github.com/a-h/templ v0.3.1100/go.mod h1:j1WAOR7749mlo1AxFLQ7qbDFW5VwyoqszRTlKqEHN9M= github.com/a-h/templ v0.3.1070/go.mod h1:iIqB3g2RHBe/WlnPwa+Bvhh1TKXHWLRnBD9NWHOLm78=
github.com/a1ex3/zstd-seekable-format-go/pkg v0.10.0 h1:iLDOF0rdGTrol/q8OfPIIs5kLD8XvA2q75o6Uq/tgak= github.com/a1ex3/zstd-seekable-format-go/pkg v0.10.0 h1:iLDOF0rdGTrol/q8OfPIIs5kLD8XvA2q75o6Uq/tgak=
github.com/a1ex3/zstd-seekable-format-go/pkg v0.10.0/go.mod h1:DrEWcQJjz7t5iF2duaiyhg4jyoF0kxOD6LtECNGkZ/Q= github.com/a1ex3/zstd-seekable-format-go/pkg v0.10.0/go.mod h1:DrEWcQJjz7t5iF2duaiyhg4jyoF0kxOD6LtECNGkZ/Q=
github.com/aalpar/deheap v1.1.2 h1:MABHLcnjqsffb8GLkUFDigqpBBxOMz0DoKM9QfELeTw= github.com/aalpar/deheap v1.1.2 h1:MABHLcnjqsffb8GLkUFDigqpBBxOMz0DoKM9QfELeTw=
@@ -144,8 +144,8 @@ github.com/alexbrainman/sspi v0.0.0-20250919150558-7d374ff0d59e h1:4dAU9FXIyQktp
github.com/alexbrainman/sspi v0.0.0-20250919150558-7d374ff0d59e/go.mod h1:cEWa1LVoE5KvSD9ONXsZrj0z6KqySlCCNKHlLzbqAt4= github.com/alexbrainman/sspi v0.0.0-20250919150558-7d374ff0d59e/go.mod h1:cEWa1LVoE5KvSD9ONXsZrj0z6KqySlCCNKHlLzbqAt4=
github.com/anchore/go-lzo v0.1.1 h1:IwL/fvkdtlIrYIXck6WxZ3nb8WjjHziYYmGxlooyOnM= github.com/anchore/go-lzo v0.1.1 h1:IwL/fvkdtlIrYIXck6WxZ3nb8WjjHziYYmGxlooyOnM=
github.com/anchore/go-lzo v0.1.1/go.mod h1:3kLx0bve2oN1iDwgM1U5zGku1Tfbdb0No5qp1eL1fIk= github.com/anchore/go-lzo v0.1.1/go.mod h1:3kLx0bve2oN1iDwgM1U5zGku1Tfbdb0No5qp1eL1fIk=
github.com/andybalholm/brotli v1.2.7 h1:UgafRPGMam5ySHfRkhthMqOFA6IFoeF3D7mWIDLjG5A= github.com/andybalholm/brotli v1.2.6 h1:ftYnfj6usCp+UGV5kSJ3+chpMQgU+gJf/AxsUQ52REI=
github.com/andybalholm/brotli v1.2.7/go.mod h1:rzTDkvFWvIrjDXZHkuS16NPggd91W3kUSvPlQ1pLaKY= github.com/andybalholm/brotli v1.2.6/go.mod h1:rzTDkvFWvIrjDXZHkuS16NPggd91W3kUSvPlQ1pLaKY=
github.com/andybalholm/cascadia v1.3.4 h1:vM2lgh0Vru9Vwyfm4cQqWP2HHMW0u0+2PAW7Q38Qufg= github.com/andybalholm/cascadia v1.3.4 h1:vM2lgh0Vru9Vwyfm4cQqWP2HHMW0u0+2PAW7Q38Qufg=
github.com/andybalholm/cascadia v1.3.4/go.mod h1:BLRmbRjpEtNKieZOCCvYj4RqN+KRA41GBe/5O+G93kM= github.com/andybalholm/cascadia v1.3.4/go.mod h1:BLRmbRjpEtNKieZOCCvYj4RqN+KRA41GBe/5O+G93kM=
github.com/antihax/optional v1.0.0/go.mod h1:uupD/76wgC+ih3iEmQUL+0Ugr19nfwCT1kdvxnR2qWY= github.com/antihax/optional v1.0.0/go.mod h1:uupD/76wgC+ih3iEmQUL+0Ugr19nfwCT1kdvxnR2qWY=
@@ -428,8 +428,8 @@ github.com/envoyproxy/go-control-plane v0.9.9-0.20210512163311-63b5d3c536b0/go.m
github.com/envoyproxy/go-control-plane v0.10.2-0.20220325020618-49ff273808a1/go.mod h1:KJwIaB5Mv44NWtYuAOFCVOjcI94vtpEz2JU/D2v6IjE= github.com/envoyproxy/go-control-plane v0.10.2-0.20220325020618-49ff273808a1/go.mod h1:KJwIaB5Mv44NWtYuAOFCVOjcI94vtpEz2JU/D2v6IjE=
github.com/envoyproxy/go-control-plane v0.14.0 h1:hbG2kr4RuFj222B6+7T83thSPqLjwBIfQawTkC++2HA= github.com/envoyproxy/go-control-plane v0.14.0 h1:hbG2kr4RuFj222B6+7T83thSPqLjwBIfQawTkC++2HA=
github.com/envoyproxy/go-control-plane v0.14.0/go.mod h1:NcS5X47pLl/hfqxU70yPwL9ZMkUlwlKxtAohpi2wBEU= github.com/envoyproxy/go-control-plane v0.14.0/go.mod h1:NcS5X47pLl/hfqxU70yPwL9ZMkUlwlKxtAohpi2wBEU=
github.com/envoyproxy/go-control-plane/envoy v1.40.1-0.20261014170222-9c4befd3c419 h1:DybMDTfb3z9UZasQ2vRKnt7VmhjR7HDaOdflhJt7SDI= github.com/envoyproxy/go-control-plane/envoy v1.39.1-0.20260819172001-e6e3fd93e4be h1:SWe0x6yfglnxuvOiYgTTnNq7QD/yvqthOh1RBI8Bj8w=
github.com/envoyproxy/go-control-plane/envoy v1.40.1-0.20261014170222-9c4befd3c419/go.mod h1:UZVGjwWu2QV8PkGSlXmqWiSgqCGZe16TgIu4jDl3T5w= github.com/envoyproxy/go-control-plane/envoy v1.39.1-0.20260819172001-e6e3fd93e4be/go.mod h1:PYEOlng9XcrulfyWpm49jECTPV0LT4q8cO7fLW/xwgk=
github.com/envoyproxy/go-control-plane/ratelimit v0.1.0 h1:/G9QYbddjL25KvtKTv3an9lx6VBE2cnb8wp1vEGNYGI= github.com/envoyproxy/go-control-plane/ratelimit v0.1.0 h1:/G9QYbddjL25KvtKTv3an9lx6VBE2cnb8wp1vEGNYGI=
github.com/envoyproxy/go-control-plane/ratelimit v0.1.0/go.mod h1:Wk+tMFAFbCXaJPzVVHnPgRKdUdwW/KdbRt94AzgRee4= github.com/envoyproxy/go-control-plane/ratelimit v0.1.0/go.mod h1:Wk+tMFAFbCXaJPzVVHnPgRKdUdwW/KdbRt94AzgRee4=
github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c= github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c=
@@ -474,8 +474,8 @@ github.com/geoarrow/geoarrow-go v0.0.0-20260403143023-f54751c3e3a1 h1:8VcjuP5pKZ
github.com/geoarrow/geoarrow-go v0.0.0-20260403143023-f54751c3e3a1/go.mod h1:XMOIOA5J96jEzAOpBROPyz0n14sHsooeF+y2FtGdrCY= github.com/geoarrow/geoarrow-go v0.0.0-20260403143023-f54751c3e3a1/go.mod h1:XMOIOA5J96jEzAOpBROPyz0n14sHsooeF+y2FtGdrCY=
github.com/geoffgarside/ber v1.2.0 h1:/loowoRcs/MWLYmGX9QtIAbA+V/FrnVLsMMPhwiRm64= github.com/geoffgarside/ber v1.2.0 h1:/loowoRcs/MWLYmGX9QtIAbA+V/FrnVLsMMPhwiRm64=
github.com/geoffgarside/ber v1.2.0/go.mod h1:jVPKeCbj6MvQZhwLYsGwaGI52oUorHoHKNecGT85ZCc= github.com/geoffgarside/ber v1.2.0/go.mod h1:jVPKeCbj6MvQZhwLYsGwaGI52oUorHoHKNecGT85ZCc=
github.com/getsentry/sentry-go v0.50.0 h1:gkO59rn/i0RCAXUUTflC5QVbTQGPXbaFabs2olVzc9g= github.com/getsentry/sentry-go v0.49.0 h1:Ehejknu1l023Ub7QoRBVLAI7g3Jnhqku4oWx4B4Sh5s=
github.com/getsentry/sentry-go v0.50.0/go.mod h1:+xsDuN+SoRN/xfs1hdq78wnrE3omIZf+FCuh9FOW1C8= github.com/getsentry/sentry-go v0.49.0/go.mod h1:nuMJAoCfe1u0Bts2ocyNI+TW8HT84vRMqwA5Qq/SKUI=
github.com/ghodss/yaml v1.0.0/go.mod h1:4dBDuWmgqj2HViK6kFavaiC9ZROes6MMH2rRYeMEF04= github.com/ghodss/yaml v1.0.0/go.mod h1:4dBDuWmgqj2HViK6kFavaiC9ZROes6MMH2rRYeMEF04=
github.com/gin-contrib/sse v1.1.0 h1:n0w2GMuUpWDVp7qSpvze6fAu9iRxJY4Hmj6AmBOU05w= github.com/gin-contrib/sse v1.1.0 h1:n0w2GMuUpWDVp7qSpvze6fAu9iRxJY4Hmj6AmBOU05w=
github.com/gin-contrib/sse v1.1.0/go.mod h1:hxRZ5gVpWMT7Z0B0gSNYqqsSCNIJMjzvm6fqCz9vjwM= github.com/gin-contrib/sse v1.1.0/go.mod h1:hxRZ5gVpWMT7Z0B0gSNYqqsSCNIJMjzvm6fqCz9vjwM=
@@ -483,16 +483,16 @@ github.com/gin-gonic/gin v1.11.0 h1:OW/6PLjyusp2PPXtyxKHU0RbX6I/l28FTdDlae5ueWk=
github.com/gin-gonic/gin v1.11.0/go.mod h1:+iq/FyxlGzII0KHiBGjuNn4UNENUlKbGlNmc+W50Dls= github.com/gin-gonic/gin v1.11.0/go.mod h1:+iq/FyxlGzII0KHiBGjuNn4UNENUlKbGlNmc+W50Dls=
github.com/go-asn1-ber/asn1-ber v1.5.8 h1:H9AZkK22UOmfX8J84ubyaZxKJZ3FMHVwn8swoMML7iQ= github.com/go-asn1-ber/asn1-ber v1.5.8 h1:H9AZkK22UOmfX8J84ubyaZxKJZ3FMHVwn8swoMML7iQ=
github.com/go-asn1-ber/asn1-ber v1.5.8/go.mod h1:hEBeB/ic+5LoWskz+yKT7vGhhPYkProFKoKdwZRWMe0= github.com/go-asn1-ber/asn1-ber v1.5.8/go.mod h1:hEBeB/ic+5LoWskz+yKT7vGhhPYkProFKoKdwZRWMe0=
github.com/go-chi/chi/v5 v5.4.0 h1:+ufzvFTGKyin26Or5DLrlIDq4ygIDBVcj7oVNeeaYFE= github.com/go-chi/chi/v5 v5.3.1 h1:3j4HZLGZQ3JpMCrPJF/Jl3mYJfWLKBfNJ6quurUGCf8=
github.com/go-chi/chi/v5 v5.4.0/go.mod h1:d1IG7GtKPSjPyBP365PH8sAGVHk3qfB/IhjFNRH1wWM= github.com/go-chi/chi/v5 v5.3.1/go.mod h1:R+tYY2hNuVUUjxoPtqUdgBqevM9s9njzkTLutVsOCto=
github.com/go-darwin/apfs v0.0.0-20211011131704-f84b94dbf348 h1:JnrjqG5iR07/8k7NqrLNilRsl3s1EPRQEGvbPyOce68= github.com/go-darwin/apfs v0.0.0-20211011131704-f84b94dbf348 h1:JnrjqG5iR07/8k7NqrLNilRsl3s1EPRQEGvbPyOce68=
github.com/go-darwin/apfs v0.0.0-20211011131704-f84b94dbf348/go.mod h1:Czxo/d1g948LtrALAZdL04TL/HnkopquAjxYUuI02bo= github.com/go-darwin/apfs v0.0.0-20211011131704-f84b94dbf348/go.mod h1:Czxo/d1g948LtrALAZdL04TL/HnkopquAjxYUuI02bo=
github.com/go-errors/errors v1.5.1 h1:ZwEMSLRCapFLflTpT7NKaAc7ukJ8ZPEjzlxt8rPN8bk= github.com/go-errors/errors v1.5.1 h1:ZwEMSLRCapFLflTpT7NKaAc7ukJ8ZPEjzlxt8rPN8bk=
github.com/go-errors/errors v1.5.1/go.mod h1:sIVyrIiJhuEF+Pj9Ebtd6P/rEYROXFi3BopGUQ5a5Og= github.com/go-errors/errors v1.5.1/go.mod h1:sIVyrIiJhuEF+Pj9Ebtd6P/rEYROXFi3BopGUQ5a5Og=
github.com/go-git/go-billy/v5 v5.9.0 h1:jItGXszUDRtR/AlferWPTMN4j38BQ88XnXKbilmmBPA= github.com/go-git/go-billy/v5 v5.9.0 h1:jItGXszUDRtR/AlferWPTMN4j38BQ88XnXKbilmmBPA=
github.com/go-git/go-billy/v5 v5.9.0/go.mod h1:jCnQMLj9eUgGU7+ludSTYoZL/GGmii14RxKFj7ROgHw= github.com/go-git/go-billy/v5 v5.9.0/go.mod h1:jCnQMLj9eUgGU7+ludSTYoZL/GGmii14RxKFj7ROgHw=
github.com/go-jose/go-jose/v4 v4.1.6 h1:sNRkftxFJxwsILiQukqp5z83QBSmntVwmgRY7AqBDO4= github.com/go-jose/go-jose/v4 v4.1.5 h1:RjgjO2LOtWOJKUC5wpwY9LR3B3vwVAz6JS2YHfYU6eA=
github.com/go-jose/go-jose/v4 v4.1.6/go.mod h1:x4oUasVrzR7071A4TnHLGSPpNOm2a21K9Kf04k1rs08= github.com/go-jose/go-jose/v4 v4.1.5/go.mod h1:x4oUasVrzR7071A4TnHLGSPpNOm2a21K9Kf04k1rs08=
github.com/go-kit/kit v0.8.0/go.mod h1:xBxKIO96dXMWWy0MnWVtmwkA9/13aqxPnvrjFYMA2as= github.com/go-kit/kit v0.8.0/go.mod h1:xBxKIO96dXMWWy0MnWVtmwkA9/13aqxPnvrjFYMA2as=
github.com/go-kit/kit v0.9.0/go.mod h1:xBxKIO96dXMWWy0MnWVtmwkA9/13aqxPnvrjFYMA2as= github.com/go-kit/kit v0.9.0/go.mod h1:xBxKIO96dXMWWy0MnWVtmwkA9/13aqxPnvrjFYMA2as=
github.com/go-kit/log v0.1.0/go.mod h1:zbhenjAZHb184qTLMA9ZjW7ThYL0H2mk7Q6pNt4vbaY= github.com/go-kit/log v0.1.0/go.mod h1:zbhenjAZHb184qTLMA9ZjW7ThYL0H2mk7Q6pNt4vbaY=
@@ -1005,8 +1005,8 @@ github.com/pkg/errors v0.8.0/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINE
github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4= github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4=
github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
github.com/pkg/sftp v1.13.12 h1:Myhzy/ZzLPnCtE2F2WtDHsgs8RfgMnH2gfbHuCJhkMU= github.com/pkg/sftp v1.13.11 h1:0N92SLTB8JqASJB14ZLHHzFnBV8mG9zw4K7jghEFWuE=
github.com/pkg/sftp v1.13.12/go.mod h1:uNkH9roSXglNJqM+glJJi+TQXQUm0fXFWqCFmT8hsN0= github.com/pkg/sftp v1.13.11/go.mod h1:uNkH9roSXglNJqM+glJJi+TQXQUm0fXFWqCFmT8hsN0=
github.com/pkg/xattr v0.4.12 h1:rRTkSyFNTRElv6pkA3zpjHpQ90p/OdHQC1GmGh1aTjM= github.com/pkg/xattr v0.4.12 h1:rRTkSyFNTRElv6pkA3zpjHpQ90p/OdHQC1GmGh1aTjM=
github.com/pkg/xattr v0.4.12/go.mod h1:di8WF84zAKk8jzR1UBTEWh9AUlIZZ7M/JNt8e9B6ktU= github.com/pkg/xattr v0.4.12/go.mod h1:di8WF84zAKk8jzR1UBTEWh9AUlIZZ7M/JNt8e9B6ktU=
github.com/planetscale/vtprotobuf v0.6.1-0.20240319094008-0393e58bdf10 h1:GFCKgmp0tecUJ0sJuv4pzYCqS9+RGSn52M3FUwPs+uo= github.com/planetscale/vtprotobuf v0.6.1-0.20240319094008-0393e58bdf10 h1:GFCKgmp0tecUJ0sJuv4pzYCqS9+RGSn52M3FUwPs+uo=
@@ -1063,8 +1063,8 @@ github.com/rcrowley/go-metrics v0.0.0-20201227073835-cf1acfcdf475 h1:N/ElC8H3+5X
github.com/rcrowley/go-metrics v0.0.0-20201227073835-cf1acfcdf475/go.mod h1:bCqnVzQkZxMG4s8nGwiZ5l3QUCyqpo9Y+/ZMZ9VjZe4= github.com/rcrowley/go-metrics v0.0.0-20201227073835-cf1acfcdf475/go.mod h1:bCqnVzQkZxMG4s8nGwiZ5l3QUCyqpo9Y+/ZMZ9VjZe4=
github.com/rdleal/intervalst v1.5.0 h1:SEB9bCFz5IqD1yhfH1Wv8IBnY/JQxDplwkxHjT6hamU= github.com/rdleal/intervalst v1.5.0 h1:SEB9bCFz5IqD1yhfH1Wv8IBnY/JQxDplwkxHjT6hamU=
github.com/rdleal/intervalst v1.5.0/go.mod h1:xO89Z6BC+LQDH+IPQQw/OESt5UADgFD41tYMUINGpxQ= github.com/rdleal/intervalst v1.5.0/go.mod h1:xO89Z6BC+LQDH+IPQQw/OESt5UADgFD41tYMUINGpxQ=
github.com/redis/go-redis/v9 v9.23.0 h1:/TTVdJa8BRNsybwwGGnmiYktHNlUXtbOQxlWpHBPL3s= github.com/redis/go-redis/v9 v9.22.0 h1:laDvpYXTJtZLloinw1fA5Kqd6HAEH2XKxOkG/PDq2F0=
github.com/redis/go-redis/v9 v9.23.0/go.mod h1:EWP2UUk+XDaI1s5nQB5mablZN6vccXlmBQTyfnF87D0= github.com/redis/go-redis/v9 v9.22.0/go.mod h1:y2g0Wj8rQvuK0ELM+oxSudcLtC09JScs98I/X9gRWY4=
github.com/redis/rueidis v1.0.77 h1:ZR41bgJcm7oRFb3aSDPrRhC0eonDSrPzjvvZvHIlNjM= github.com/redis/rueidis v1.0.77 h1:ZR41bgJcm7oRFb3aSDPrRhC0eonDSrPzjvvZvHIlNjM=
github.com/redis/rueidis v1.0.77/go.mod h1:L8mnCQJJaSNL6I4pIR6Rz732HTGS9vmuXm0yT9dRvjo= github.com/redis/rueidis v1.0.77/go.mod h1:L8mnCQJJaSNL6I4pIR6Rz732HTGS9vmuXm0yT9dRvjo=
github.com/redis/rueidis/rueidiscompat v1.0.77 h1:S1xiLQsFv8XQ46e0LelC8ihGqbDzVRocXXZLzVAeh64= github.com/redis/rueidis/rueidiscompat v1.0.77 h1:S1xiLQsFv8XQ46e0LelC8ihGqbDzVRocXXZLzVAeh64=
@@ -1106,8 +1106,8 @@ github.com/seaweedfs/go-fuse/v2 v2.9.4 h1:ACyloiuopdhRSjdLLeSWbsVaemMPskORaRF01T
github.com/seaweedfs/go-fuse/v2 v2.9.4/go.mod h1:zABdmWEa6A0bwaBeEOBUeUkGIZlxUhcdv+V1Dcc/U/I= github.com/seaweedfs/go-fuse/v2 v2.9.4/go.mod h1:zABdmWEa6A0bwaBeEOBUeUkGIZlxUhcdv+V1Dcc/U/I=
github.com/seaweedfs/goexif v1.0.3 h1:ve/OjI7dxPW8X9YQsv3JuVMaxEyF9Rvfd04ouL+Bz30= github.com/seaweedfs/goexif v1.0.3 h1:ve/OjI7dxPW8X9YQsv3JuVMaxEyF9Rvfd04ouL+Bz30=
github.com/seaweedfs/goexif v1.0.3/go.mod h1:Oni780Z236sXpIQzk1XoJlTwqrJ02smEin9zQeff7Fk= github.com/seaweedfs/goexif v1.0.3/go.mod h1:Oni780Z236sXpIQzk1XoJlTwqrJ02smEin9zQeff7Fk=
github.com/seaweedfs/raft v1.2.3 h1:/NMrdhztjx8ojeu+aAPa2GmuVShQXp8YwmNmsMPU63E= github.com/seaweedfs/raft v1.2.2 h1:5OiCQbia7J83WE0whlRGj5oBCEfixqfoOTOeY1IQDXM=
github.com/seaweedfs/raft v1.2.3/go.mod h1:fgs/rAVEzjQ7e04XMzG3eJhwZZRmBW+2uRtjakeCGeU= github.com/seaweedfs/raft v1.2.2/go.mod h1:fgs/rAVEzjQ7e04XMzG3eJhwZZRmBW+2uRtjakeCGeU=
github.com/secure-systems-lab/go-securesystemslib v0.11.0 h1:iuCR9kcMFD4QurdKrGvPLoKZLv9YvwPYVr0473BdtFs= github.com/secure-systems-lab/go-securesystemslib v0.11.0 h1:iuCR9kcMFD4QurdKrGvPLoKZLv9YvwPYVr0473BdtFs=
github.com/secure-systems-lab/go-securesystemslib v0.11.0/go.mod h1:+PMOTjUGwHj2vcZ+TFKlb1tXRbrdWE1LYDT5i9JC80Q= github.com/secure-systems-lab/go-securesystemslib v0.11.0/go.mod h1:+PMOTjUGwHj2vcZ+TFKlb1tXRbrdWE1LYDT5i9JC80Q=
github.com/sergi/go-diff v1.0.0/go.mod h1:0CfEIISq7TuYL3j771MWULgwwjU+GofnZX9QAmXWZgo= github.com/sergi/go-diff v1.0.0/go.mod h1:0CfEIISq7TuYL3j771MWULgwwjU+GofnZX9QAmXWZgo=
@@ -1155,8 +1155,8 @@ github.com/spf13/pflag v1.0.10 h1:4EBh2KAYBwaONj6b2Ye1GiHfwjqyROoF4RwYO+vPwFk=
github.com/spf13/pflag v1.0.10/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg= github.com/spf13/pflag v1.0.10/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg=
github.com/spf13/viper v1.21.0 h1:x5S+0EU27Lbphp4UKm1C+1oQO+rKx36vfCoaVebLFSU= github.com/spf13/viper v1.21.0 h1:x5S+0EU27Lbphp4UKm1C+1oQO+rKx36vfCoaVebLFSU=
github.com/spf13/viper v1.21.0/go.mod h1:P0lhsswPGWD/1lZJ9ny3fYnVqxiegrlNrEmgLjbTCAY= github.com/spf13/viper v1.21.0/go.mod h1:P0lhsswPGWD/1lZJ9ny3fYnVqxiegrlNrEmgLjbTCAY=
github.com/spiffe/go-spiffe/v2 v2.8.2 h1:jUEsvCMD6fH25J8K/w3q/XnIx8W1lb8+YLaEEHIjHmc= github.com/spiffe/go-spiffe/v2 v2.8.1 h1:eXZMLsu+3MLEPJyGJkolqtVrteZfQdUpOWj6LTiDl/E=
github.com/spiffe/go-spiffe/v2 v2.8.2/go.mod h1:w2CLWKLMTX/PPYUEUPv3ltH0RXsw5S8suwNF46w9/Aw= github.com/spiffe/go-spiffe/v2 v2.8.1/go.mod h1:47Q0Q9/AqGha8QLHp+kxpH4Wca7X7EnOtlIJy3mxZ3U=
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
github.com/stretchr/objx v0.1.1/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= github.com/stretchr/objx v0.1.1/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
github.com/stretchr/objx v0.4.0/go.mod h1:YvHI0jy2hoMjB+UWwv71VJQ9isScKT/TqJzVSSt89Yw= github.com/stretchr/objx v0.4.0/go.mod h1:YvHI0jy2hoMjB+UWwv71VJQ9isScKT/TqJzVSSt89Yw=
@@ -1633,10 +1633,10 @@ google.golang.org/genproto v0.0.0-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEY
google.golang.org/genproto v0.0.0-20210903162649-d08c68adba83/go.mod h1:eFjDcFEctNawg4eG61bRv87N7iHBWyVhJu7u1kqDUXY= google.golang.org/genproto v0.0.0-20210903162649-d08c68adba83/go.mod h1:eFjDcFEctNawg4eG61bRv87N7iHBWyVhJu7u1kqDUXY=
google.golang.org/genproto v0.0.0-20260904194346-d0f1323225a4 h1:6QRNo34FxJcE1LG6XfnmaQ17m6w21oXaKlKoBaF+UqE= google.golang.org/genproto v0.0.0-20260904194346-d0f1323225a4 h1:6QRNo34FxJcE1LG6XfnmaQ17m6w21oXaKlKoBaF+UqE=
google.golang.org/genproto v0.0.0-20260904194346-d0f1323225a4/go.mod h1:eifJ91nefXnfP/bMkZsACVGm14ZtEL4eUXRLTryfbY4= google.golang.org/genproto v0.0.0-20260904194346-d0f1323225a4/go.mod h1:eifJ91nefXnfP/bMkZsACVGm14ZtEL4eUXRLTryfbY4=
google.golang.org/genproto/googleapis/api v0.0.0-20260921155816-b14227669459 h1:GS9OIt/j7c8bvBjYNgnKQysVfmV7e4jM0H8ZK95G4t8= google.golang.org/genproto/googleapis/api v0.0.0-20260904194346-d0f1323225a4 h1:NCe/UiklGd/9xjT+ROBVhJ1kf6TRQaFedsR+z7u1gvo=
google.golang.org/genproto/googleapis/api v0.0.0-20260921155816-b14227669459/go.mod h1:PX5/4vemwVoXtwEcRDWwcR1/r0qrosfx3qoVADMwnVE= google.golang.org/genproto/googleapis/api v0.0.0-20260904194346-d0f1323225a4/go.mod h1:fJ2lYaWjqNknJyQBOCd0fA3HnEElJqGplH71a2txi+g=
google.golang.org/genproto/googleapis/rpc v0.0.0-20260921155816-b14227669459 h1:b0xCahf3FK2m2Cv0p4vTozGPWncCvLfwV86UNg8xWU8= google.golang.org/genproto/googleapis/rpc v0.0.0-20260904194346-d0f1323225a4 h1:5t+ZydAFj5kGVLrgCvLmpmCf9ylGRd64hpEronfRaws=
google.golang.org/genproto/googleapis/rpc v0.0.0-20260921155816-b14227669459/go.mod h1:OaIUM3+LpYcK2GXM4FTmhWoIq371Owdr+Cc7/BsYHHc= google.golang.org/genproto/googleapis/rpc v0.0.0-20260904194346-d0f1323225a4/go.mod h1:DjtHYE8FKJLivXcBEjGwndXfIC23G0VpXiXKqG179uA=
google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c=
google.golang.org/grpc v1.23.0/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg= google.golang.org/grpc v1.23.0/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg=
google.golang.org/grpc v1.25.1/go.mod h1:c3i+UQWmh7LiEpx4sFZnkU36qjEYZ0imhYfXVyQciAY= google.golang.org/grpc v1.25.1/go.mod h1:c3i+UQWmh7LiEpx4sFZnkU36qjEYZ0imhYfXVyQciAY=
@@ -1647,8 +1647,8 @@ google.golang.org/grpc v1.33.2/go.mod h1:JMHMWHQWaTccqQQlmk3MJZS+GWXOdAesneDmEnv
google.golang.org/grpc v1.36.0/go.mod h1:qjiiYl8FncCW8feJPdyg3v6XW24KsRHe+dy9BAGRRjU= google.golang.org/grpc v1.36.0/go.mod h1:qjiiYl8FncCW8feJPdyg3v6XW24KsRHe+dy9BAGRRjU=
google.golang.org/grpc v1.40.0/go.mod h1:ogyxbiOoUXAkP+4+xa6PZSE9DZgIHtSpzjDTB9KAK34= google.golang.org/grpc v1.40.0/go.mod h1:ogyxbiOoUXAkP+4+xa6PZSE9DZgIHtSpzjDTB9KAK34=
google.golang.org/grpc v1.47.0/go.mod h1:vN9eftEi1UMyUsIF80+uQXhHjbXYbm0uXoFCACuMGWk= google.golang.org/grpc v1.47.0/go.mod h1:vN9eftEi1UMyUsIF80+uQXhHjbXYbm0uXoFCACuMGWk=
google.golang.org/grpc v1.86.0-dev.0.20261027044109-d619b5d02089 h1:8300TIaXaOq+IoVmVzsZKUP3z4PpTsxu0ArPkPV/4Ts= google.golang.org/grpc v1.85.0-dev.0.20260915183914-4e49413dcab7 h1:5+EEM1fC0yjOZID0NUZVrE2+8M/+1TclNrSz/l1xMYs=
google.golang.org/grpc v1.86.0-dev.0.20261027044109-d619b5d02089/go.mod h1:Zr6uoNHvZlKOMmDEULT/cdZrN8qcSkXRXPkw4ybjoxI= google.golang.org/grpc v1.85.0-dev.0.20260915183914-4e49413dcab7/go.mod h1:Ovl0ECo4xx5r4kn/6d4BPSNB7OIFuu6EAjOzjtVAKaM=
google.golang.org/grpc/examples v0.0.0-20250407062114-b368379ef8f6 h1:ExN12ndbJ608cboPYflpTny6mXSzPrDLh0iTaVrRrds= google.golang.org/grpc/examples v0.0.0-20250407062114-b368379ef8f6 h1:ExN12ndbJ608cboPYflpTny6mXSzPrDLh0iTaVrRrds=
google.golang.org/grpc/examples v0.0.0-20250407062114-b368379ef8f6/go.mod h1:6ytKWczdvnpnO+m+JiG9NjEDzR1FJfsnmJdG7B8QVZ8= google.golang.org/grpc/examples v0.0.0-20250407062114-b368379ef8f6/go.mod h1:6ytKWczdvnpnO+m+JiG9NjEDzR1FJfsnmJdG7B8QVZ8=
google.golang.org/grpc/security/advancedtls v1.0.0 h1:/KQ7VP/1bs53/aopk9QhuPyFAp9Dm9Ejix3lzYkCrDA= google.golang.org/grpc/security/advancedtls v1.0.0 h1:/KQ7VP/1bs53/aopk9QhuPyFAp9Dm9Ejix3lzYkCrDA=
+2 -52
View File
@@ -9,7 +9,7 @@
# curl -fsSL ... | bash -s -- --version 4.34 --dir /usr/local/bin # curl -fsSL ... | bash -s -- --version 4.34 --dir /usr/local/bin
# #
# Options: # Options:
# --component COMP Which binary to install: weed, volume-rust, worker-rust, vector, all (default: weed) # --component COMP Which binary to install: weed, volume-rust, worker-rust, all (default: weed)
# --version VER Release version tag (default: latest) # --version VER Release version tag (default: latest)
# --large-disk Use large disk variant (5-byte offset, 8TB max volume) # --large-disk Use large disk variant (5-byte offset, 8TB max volume)
# --dir DIR Installation directory (default: /usr/local/bin) # --dir DIR Installation directory (default: /usr/local/bin)
@@ -23,7 +23,6 @@ VERSION=""
LARGE_DISK=false LARGE_DISK=false
INSTALL_DIR="/usr/local/bin" INSTALL_DIR="/usr/local/bin"
WORKER_INSTALLED=false WORKER_INSTALLED=false
VECTOR_INSTALLED=false
# Colors (if terminal supports them) # Colors (if terminal supports them)
if [ -t 1 ]; then if [ -t 1 ]; then
@@ -157,12 +156,6 @@ worker_asset_name() {
echo "weed-worker_${os}_${arch}.tar.gz" echo "weed-worker_${os}_${arch}.tar.gz"
} }
# The vector engine behind the S3 Vectors API, built like the worker.
vector_asset_name() {
local os="$1" arch="$2"
echo "weed-vector_${os}_${arch}.tar.gz"
}
# Install a single component # Install a single component
install_component() { install_component() {
local component="$1" os="$2" arch="$3" local component="$1" os="$2" arch="$3"
@@ -271,38 +264,8 @@ install_component() {
ok "Installed weed-worker to ${INSTALL_DIR}/weed-worker" ok "Installed weed-worker to ${INSTALL_DIR}/weed-worker"
;; ;;
vector)
# Published for linux amd64/arm64 only, like the worker.
case "$os" in
linux) ;;
*) error "The vector engine is not available for ${os}. Supported: linux" ;;
esac
case "$arch" in
amd64|arm64) ;;
*) error "The vector engine is not available for ${arch}. Supported: amd64, arm64" ;;
esac
asset_name="$(vector_asset_name "$os" "$arch")"
download_url="https://github.com/${REPO}/releases/download/${VERSION}/${asset_name}"
download "$download_url" "${tmpdir}/${asset_name}"
info "Extracting ${asset_name}..."
tar xzf "${tmpdir}/${asset_name}" -C "$tmpdir"
local vector_bin
vector_bin="$(find "$tmpdir" -name 'weed-vector' -type f | head -1)"
if [ -z "$vector_bin" ]; then
error "Could not find weed-vector binary in archive"
fi
chmod +x "$vector_bin"
install_binary "$vector_bin" "weed-vector"
VECTOR_INSTALLED=true
ok "Installed weed-vector to ${INSTALL_DIR}/weed-vector"
;;
*) *)
error "Unknown component: ${component}. Use: weed, volume-rust, worker-rust, vector, all" error "Unknown component: ${component}. Use: weed, volume-rust, worker-rust, all"
;; ;;
esac esac
@@ -364,13 +327,6 @@ main() {
else else
install_component "worker-rust" "$os" "$arch" install_component "worker-rust" "$os" "$arch"
fi fi
if [ "$os" != "linux" ] || { [ "$arch" != "amd64" ] && [ "$arch" != "arm64" ]; }; then
warn "Skipping the vector engine: no build for ${os}/${arch}"
elif ! asset_exists "https://github.com/${REPO}/releases/download/${VERSION}/$(vector_asset_name "$os" "$arch")"; then
warn "Skipping the vector engine: ${VERSION} does not carry one"
else
install_component "vector" "$os" "$arch"
fi
;; ;;
*) *)
install_component "$COMPONENT" "$os" "$arch" install_component "$COMPONENT" "$os" "$arch"
@@ -388,9 +344,6 @@ main() {
if [ "$WORKER_INSTALLED" = true ]; then if [ "$WORKER_INSTALLED" = true ]; then
info " weed-worker: ${INSTALL_DIR}/weed-worker" info " weed-worker: ${INSTALL_DIR}/weed-worker"
fi fi
if [ "$VECTOR_INSTALLED" = true ]; then
info " weed-vector: ${INSTALL_DIR}/weed-vector"
fi
echo "" echo ""
info "Quick start:" info "Quick start:"
info " weed master # Start master server" info " weed master # Start master server"
@@ -399,9 +352,6 @@ main() {
if [ "$WORKER_INSTALLED" = true ]; then if [ "$WORKER_INSTALLED" = true ]; then
info " weed-worker --admin localhost:12535 # Start the Rust maintenance worker" info " weed-worker --admin localhost:12535 # Start the Rust maintenance worker"
fi fi
if [ "$VECTOR_INSTALLED" = true ]; then
info " weed-vector --help # The vector engine for S3 vector buckets"
fi
} }
main main
+2 -2
View File
@@ -1,6 +1,6 @@
apiVersion: v1 apiVersion: v1
description: SeaweedFS description: SeaweedFS
name: seaweedfs name: seaweedfs
appVersion: "4.52" appVersion: "4.48"
# Dev note: Trigger a helm chart release by `git tag -a helm-<version>` # Dev note: Trigger a helm chart release by `git tag -a helm-<version>`
version: 4.52.0 version: 4.48.2
+1 -9
View File
@@ -23,7 +23,7 @@ helm install --values=values.yaml seaweedfs seaweedfs/seaweedfs
* master/filer/volume are stateful sets with anti-affinity on the hostname, * master/filer/volume are stateful sets with anti-affinity on the hostname,
so your deployment will be spread/HA. so your deployment will be spread/HA.
* leveldb2 is the default filer backend; a mysql-compatible database (memsql, ...) enables HA (multiple filer instances) and the backup/HA it can provide. * leveldb2 is the default filer backend; a mysql-compatible database (memsql, ...) enables HA (multiple filer instances) and the backup/HA it can provide.
* with `filer.extraEnvironmentVars.WEED_MYSQL_ENABLED` set to `"true"`, mysql user/password are created in a k8s secret (default: `<release>-seaweedfs-db-secret`) and injected to the filer with ENV. The secret is kept on `helm uninstall`, and a later install reuses the user and password in it, including ones you edited in. On any other store neither the secret nor the `WEED_MYSQL_*` env, plain or secret-backed, is rendered. * with `filer.extraEnvironmentVars.WEED_MYSQL_ENABLED` set to `"true"`, mysql user/password are created in a k8s secret (default: `<release>-seaweedfs-db-secret`) and injected to the filer with ENV. On any other store neither the secret nor the `WEED_MYSQL_*` env, plain or secret-backed, is rendered.
* cert config exists and can be enabled, but not been tested, requires cert-manager to be installed. * cert config exists and can be enabled, but not been tested, requires cert-manager to be installed.
## Prerequisites ## Prerequisites
@@ -545,10 +545,6 @@ helm install seaweedfs-worker-vacuum seaweedfs/seaweedfs -f values-worker-vacuum
helm install seaweedfs-worker-balance seaweedfs/seaweedfs -f values-worker-balance.yaml helm install seaweedfs-worker-balance seaweedfs/seaweedfs -f values-worker-balance.yaml
``` ```
## Deploying into another namespace
`namespaceOverride` deploys every namespaced object into an existing namespace other than the release namespace, for instance when the chart is a subchart. In-cluster addresses follow it. Set it before the first install: changing it later moves regular namespaced objects only — claims and their data do not move, hook resources such as the resize hook's ServiceAccount, Role, RoleBinding, and NetworkPolicy stay behind in the old namespace, and generated Secrets are not recreated in the new one. Migrate claims by hand and clean up the old hook resources. If the release uses generated S3 credentials, copy `<fullname>-s3-secret`, including its key fields, into the new namespace before the upgrade — otherwise the chart generates new keys and clients on the old ones fail authentication (explicit `s3.credentials` and `credentials.*.existingSecret` values do not use this generation path). With the default MySQL setup, also copy `<fullname>-db-secret` — a `pre-install` hook only, so it never reaches the new namespace — or pass `WEED_MYSQL_USERNAME` and `WEED_MYSQL_PASSWORD` through `filer.extraEnvironmentVars`. With the default `hostPath` storage the data is node-local too: stop the old workloads and plan the hostPath migration first, or the new pods can come up empty on other nodes or share the same directories concurrently.
## Gateway API ## Gateway API
Every component with an `ingress` block (master, volume, filer, s3 and admin) can also be exposed through a [Gateway API](https://gateway-api.sigs.k8s.io/) `HTTPRoute`, for clusters that route through a Gateway instead of an Ingress controller. `<component>.httpRoute` sits next to `<component>.ingress` and is disabled by default. The chart does not create the Gateway, so point `parentRefs` at one that already exists, and the `gateway.networking.k8s.io/v1` CRDs must be installed. Every component with an `ingress` block (master, volume, filer, s3 and admin) can also be exposed through a [Gateway API](https://gateway-api.sigs.k8s.io/) `HTTPRoute`, for clusters that route through a Gateway instead of an Ingress controller. `<component>.httpRoute` sits next to `<component>.ingress` and is disabled by default. The chart does not create the Gateway, so point `parentRefs` at one that already exists, and the `gateway.networking.k8s.io/v1` CRDs must be installed.
@@ -610,10 +606,6 @@ Two things worth knowing before you turn this on:
The DNS selectors default to CoreDNS as kubeadm, kind and the managed offerings from AWS, Google and Azure install it. On OpenShift, override `egress.dnsNamespaceSelector` and `egress.dnsPodSelector` to match `openshift-dns`; see the comment in `values.yaml`. The DNS selectors default to CoreDNS as kubeadm, kind and the managed offerings from AWS, Google and Azure install it. On OpenShift, override `egress.dnsNamespaceSelector` and `egress.dnsPodSelector` to match `openshift-dns`; see the comment in `values.yaml`.
## Common labels
`commonLabels` adds labels to the metadata of every object the chart creates. It may be a map or a template string rendering to one. The chart's own labels cannot be overridden, and pods (see `podLabels`) and `volumeClaimTemplates` are left unchanged.
## Pod and container security contexts ## Pod and container security contexts
Pod and container security contexts are configurable independently for every built-in workload and remain empty by default for backwards compatibility. The examples in `values.yaml` show how to enable a `RuntimeDefault` seccomp profile, disable privilege escalation and privileged mode, drop all Linux capabilities, and use a read-only root filesystem. Pod and container security contexts are configurable independently for every built-in workload and remain empty by default for backwards compatibility. The examples in `values.yaml` show how to enable a `RuntimeDefault` seccomp profile, disable privilege escalation and privileged mode, drop all Linux capabilities, and use a read-only root filesystem.
@@ -3,7 +3,7 @@ apiVersion: gateway.networking.k8s.io/v1
kind: HTTPRoute kind: HTTPRoute
metadata: metadata:
name: {{ include "seaweedfs.componentName" (list . "admin") }} name: {{ include "seaweedfs.componentName" (list . "admin") }}
namespace: {{ include "seaweedfs.namespace" . | quote }} namespace: {{ .Release.Namespace }}
{{- with .Values.admin.httpRoute.annotations }} {{- with .Values.admin.httpRoute.annotations }}
annotations: annotations:
{{- toYaml . | nindent 4 }} {{- toYaml . | nindent 4 }}
@@ -17,7 +17,6 @@ metadata:
{{- with .Values.admin.httpRoute.labels }} {{- with .Values.admin.httpRoute.labels }}
{{- toYaml . | nindent 4 }} {{- toYaml . | nindent 4 }}
{{- end }} {{- end }}
{{- with include "seaweedfs.commonLabels" (dict "context" $ "exclude" $.Values.admin.httpRoute.labels) }}{{ . | nindent 4 }}{{ end }}
spec: spec:
{{- with .Values.admin.httpRoute.parentRefs }} {{- with .Values.admin.httpRoute.parentRefs }}
parentRefs: parentRefs:
@@ -36,7 +35,7 @@ spec:
- group: "" - group: ""
kind: Service kind: Service
name: {{ include "seaweedfs.componentName" (list $ "admin") }} name: {{ include "seaweedfs.componentName" (list $ "admin") }}
namespace: {{ include "seaweedfs.namespace" $ | quote }} namespace: {{ $.Release.Namespace }}
port: {{ $.Values.admin.port }} port: {{ $.Values.admin.port }}
weight: 1 weight: 1
{{- end }} {{- end }}
@@ -9,7 +9,7 @@ apiVersion: extensions/v1beta1
kind: Ingress kind: Ingress
metadata: metadata:
name: ingress-{{ include "seaweedfs.fullname" . }}-admin name: ingress-{{ include "seaweedfs.fullname" . }}-admin
namespace: {{ include "seaweedfs.namespace" . | quote }} namespace: {{ .Release.Namespace }}
annotations: annotations:
{{- if and (not (semverCompare ">=1.18-0" .Capabilities.KubeVersion.GitVersion)) .Values.admin.ingress.className }} {{- if and (not (semverCompare ">=1.18-0" .Capabilities.KubeVersion.GitVersion)) .Values.admin.ingress.className }}
kubernetes.io/ingress.class: {{ .Values.admin.ingress.className }} kubernetes.io/ingress.class: {{ .Values.admin.ingress.className }}
@@ -26,7 +26,6 @@ metadata:
{{- with .Values.admin.ingress.labels }} {{- with .Values.admin.ingress.labels }}
{{- toYaml . | nindent 4 }} {{- toYaml . | nindent 4 }}
{{- end }} {{- end }}
{{- with include "seaweedfs.commonLabels" (dict "context" $ "exclude" $.Values.admin.ingress.labels) }}{{ . | nindent 4 }}{{ end }}
spec: spec:
{{- if and (semverCompare ">=1.18-0" .Capabilities.KubeVersion.GitVersion) .Values.admin.ingress.className }} {{- if and (semverCompare ">=1.18-0" .Capabilities.KubeVersion.GitVersion) .Values.admin.ingress.className }}
ingressClassName: {{ .Values.admin.ingress.className | quote }} ingressClassName: {{ .Values.admin.ingress.className | quote }}
@@ -4,7 +4,7 @@ kind: Secret
type: Opaque type: Opaque
metadata: metadata:
name: {{ include "seaweedfs.fullname" . }}-admin-secret name: {{ include "seaweedfs.fullname" . }}-admin-secret
namespace: {{ include "seaweedfs.namespace" . | quote }} namespace: {{ .Release.Namespace }}
annotations: annotations:
"helm.sh/resource-policy": keep "helm.sh/resource-policy": keep
"helm.sh/hook": "pre-install,pre-upgrade" "helm.sh/hook": "pre-install,pre-upgrade"
@@ -14,7 +14,6 @@ metadata:
app.kubernetes.io/managed-by: {{ .Release.Service }} app.kubernetes.io/managed-by: {{ .Release.Service }}
app.kubernetes.io/instance: {{ .Release.Name }} app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/component: admin app.kubernetes.io/component: admin
{{- with include "seaweedfs.commonLabels" $ }}{{ . | nindent 4 }}{{ end }}
data: data:
adminUser: {{ .Values.admin.secret.adminUser | b64enc }} adminUser: {{ .Values.admin.secret.adminUser | b64enc }}
adminPassword: {{ .Values.admin.secret.adminPassword | b64enc }} adminPassword: {{ .Values.admin.secret.adminPassword | b64enc }}
@@ -3,14 +3,13 @@ apiVersion: v1
kind: Service kind: Service
metadata: metadata:
name: {{ include "seaweedfs.componentName" (list . "admin") }} name: {{ include "seaweedfs.componentName" (list . "admin") }}
namespace: {{ include "seaweedfs.namespace" . | quote }} namespace: {{ .Release.Namespace }}
labels: labels:
app.kubernetes.io/name: {{ template "seaweedfs.name" . }} app.kubernetes.io/name: {{ template "seaweedfs.name" . }}
helm.sh/chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }} helm.sh/chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
app.kubernetes.io/managed-by: {{ .Release.Service }} app.kubernetes.io/managed-by: {{ .Release.Service }}
app.kubernetes.io/instance: {{ .Release.Name }} app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/component: admin app.kubernetes.io/component: admin
{{- with include "seaweedfs.commonLabels" $ }}{{ . | nindent 4 }}{{ end }}
{{- if .Values.admin.service.annotations }} {{- if .Values.admin.service.annotations }}
annotations: annotations:
{{- toYaml .Values.admin.service.annotations | nindent 4 }} {{- toYaml .Values.admin.service.annotations | nindent 4 }}
@@ -5,7 +5,7 @@ apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor kind: ServiceMonitor
metadata: metadata:
name: {{ include "seaweedfs.fullname" . }}-admin name: {{ include "seaweedfs.fullname" . }}-admin
namespace: {{ include "seaweedfs.namespace" . | quote }} namespace: {{ .Release.Namespace }}
labels: labels:
app.kubernetes.io/name: {{ template "seaweedfs.name" . }} app.kubernetes.io/name: {{ template "seaweedfs.name" . }}
helm.sh/chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }} helm.sh/chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
@@ -15,7 +15,6 @@ metadata:
{{- with .Values.global.seaweedfs.monitoring.additionalLabels }} {{- with .Values.global.seaweedfs.monitoring.additionalLabels }}
{{- toYaml . | nindent 4 }} {{- toYaml . | nindent 4 }}
{{- end }} {{- end }}
{{- with include "seaweedfs.commonLabels" (dict "context" $ "exclude" $.Values.global.seaweedfs.monitoring.additionalLabels) }}{{ . | nindent 4 }}{{ end }}
{{- with .Values.admin.serviceMonitor.annotations }} {{- with .Values.admin.serviceMonitor.annotations }}
annotations: annotations:
{{- toYaml . | nindent 4 }} {{- toYaml . | nindent 4 }}
@@ -15,14 +15,13 @@ apiVersion: apps/v1
kind: StatefulSet kind: StatefulSet
metadata: metadata:
name: {{ include "seaweedfs.componentName" (list . "admin") }} name: {{ include "seaweedfs.componentName" (list . "admin") }}
namespace: {{ include "seaweedfs.namespace" . | quote }} namespace: {{ .Release.Namespace }}
labels: labels:
app.kubernetes.io/name: {{ template "seaweedfs.name" . }} app.kubernetes.io/name: {{ template "seaweedfs.name" . }}
helm.sh/chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }} helm.sh/chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
app.kubernetes.io/managed-by: {{ .Release.Service }} app.kubernetes.io/managed-by: {{ .Release.Service }}
app.kubernetes.io/instance: {{ .Release.Name }} app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/component: admin app.kubernetes.io/component: admin
{{- with include "seaweedfs.commonLabels" $ }}{{ . | nindent 4 }}{{ end }}
{{- if .Values.admin.annotations }} {{- if .Values.admin.annotations }}
annotations: annotations:
{{- toYaml .Values.admin.annotations | nindent 4 }} {{- toYaml .Values.admin.annotations | nindent 4 }}
@@ -139,11 +138,9 @@ spec:
- name: {{ $key }} - name: {{ $key }}
{{- if kindIs "string" $value }} {{- if kindIs "string" $value }}
value: {{ tpl $value $ | quote }} value: {{ tpl $value $ | quote }}
{{- else if kindIs "map" $value }} {{- else }}
valueFrom: valueFrom:
{{ toYaml $value | nindent 16 | trim }} {{ toYaml $value | nindent 16 | trim }}
{{- else if not (kindIs "invalid" $value) }}
value: {{ toJson $value | quote }}
{{- end -}} {{- end -}}
{{- end }} {{- end }}
{{- $secretExtraEnvironmentVars := .Values.admin.secretExtraEnvironmentVars }} {{- $secretExtraEnvironmentVars := .Values.admin.secretExtraEnvironmentVars }}
@@ -186,7 +183,7 @@ spec:
{{- else if .Values.global.seaweedfs.masterServer }} {{- else if .Values.global.seaweedfs.masterServer }}
-masters={{ .Values.global.seaweedfs.masterServer }} \ -masters={{ .Values.global.seaweedfs.masterServer }} \
{{- else }} {{- else }}
-masters={{ range $index := until (.Values.master.replicas | int) }}${SEAWEEDFS_FULLNAME}-master-{{ $index }}.${SEAWEEDFS_FULLNAME}-master.{{ include "seaweedfs.namespace" $ }}:{{ $.Values.master.port }}{{ if lt $index (sub ($.Values.master.replicas | int) 1) }},{{ end }}{{ end }} \ -masters={{ range $index := until (.Values.master.replicas | int) }}${SEAWEEDFS_FULLNAME}-master-{{ $index }}.${SEAWEEDFS_FULLNAME}-master.{{ $.Release.Namespace }}:{{ $.Values.master.port }}{{ if lt $index (sub ($.Values.master.replicas | int) 1) }},{{ end }}{{ end }} \
{{- end }} {{- end }}
{{- if $urlPrefix }} {{- if $urlPrefix }}
-urlPrefix={{ $urlPrefix }} \ -urlPrefix={{ $urlPrefix }} \
@@ -4,14 +4,13 @@ apiVersion: apps/v1
kind: Deployment kind: Deployment
metadata: metadata:
name: {{ include "seaweedfs.fullname" . }}-all-in-one name: {{ include "seaweedfs.fullname" . }}-all-in-one
namespace: {{ include "seaweedfs.namespace" . | quote }} namespace: {{ .Release.Namespace }}
labels: labels:
app.kubernetes.io/name: {{ template "seaweedfs.name" . }} app.kubernetes.io/name: {{ template "seaweedfs.name" . }}
helm.sh/chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }} helm.sh/chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
app.kubernetes.io/managed-by: {{ .Release.Service }} app.kubernetes.io/managed-by: {{ .Release.Service }}
app.kubernetes.io/instance: {{ .Release.Name }} app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/component: seaweedfs-all-in-one app.kubernetes.io/component: seaweedfs-all-in-one
{{- with include "seaweedfs.commonLabels" $ }}{{ . | nindent 4 }}{{ end }}
{{- if .Values.allInOne.annotations }} {{- if .Values.allInOne.annotations }}
annotations: annotations:
{{- toYaml .Values.allInOne.annotations | nindent 4 }} {{- toYaml .Values.allInOne.annotations | nindent 4 }}
@@ -41,12 +40,12 @@ spec:
{{- $podAnnotations := mergeOverwrite (deepCopy (.Values.podAnnotations | default dict)) (.Values.allInOne.podAnnotations | default dict) }} {{- $podAnnotations := mergeOverwrite (deepCopy (.Values.podAnnotations | default dict)) (.Values.allInOne.podAnnotations | default dict) }}
{{- $existingS3ConfigSecret := or .Values.allInOne.s3.existingConfigSecret .Values.s3.existingConfigSecret .Values.filer.s3.existingConfigSecret }} {{- $existingS3ConfigSecret := or .Values.allInOne.s3.existingConfigSecret .Values.s3.existingConfigSecret .Values.filer.s3.existingConfigSecret }}
{{- if $existingS3ConfigSecret }} {{- if $existingS3ConfigSecret }}
{{- $configSecret := (lookup "v1" "Secret" (include "seaweedfs.namespace" .) $existingS3ConfigSecret) | default dict }} {{- $configSecret := (lookup "v1" "Secret" .Release.Namespace $existingS3ConfigSecret) | default dict }}
{{- $_ := set $podAnnotations "checksum/s3config" ($configSecret | toYaml | sha256sum) }} {{- $_ := set $podAnnotations "checksum/s3config" ($configSecret | toYaml | sha256sum) }}
{{- else }} {{- else }}
{{- $_ := set $podAnnotations "checksum/s3config" (include "seaweedfs.s3.configChecksum" .) }} {{- $_ := set $podAnnotations "checksum/s3config" (include "seaweedfs.s3.configChecksum" .) }}
{{- end }} {{- end }}
{{- $_ := set $podAnnotations "checksum/master-config" (include "seaweedfs.master.configChecksum" .) }} {{- $_ := set $podAnnotations "checksum/master-config" (include (print .Template.BasePath "/master/master-configmap.yaml") . | sha256sum) }}
annotations: annotations:
{{- toYaml $podAnnotations | nindent 8 }} {{- toYaml $podAnnotations | nindent 8 }}
spec: spec:
@@ -119,11 +118,9 @@ spec:
- name: {{ $key }} - name: {{ $key }}
{{- if kindIs "string" $value }} {{- if kindIs "string" $value }}
value: {{ tpl $value $ | quote }} value: {{ tpl $value $ | quote }}
{{- else if kindIs "map" $value }} {{- else }}
valueFrom: valueFrom:
{{ toYaml $value | nindent 16 }} {{ toYaml $value | nindent 16 }}
{{- else if not (kindIs "invalid" $value) }}
value: {{ toJson $value | quote }}
{{- end }} {{- end }}
{{- end }} {{- end }}
{{- end }} {{- end }}
@@ -4,14 +4,13 @@ apiVersion: v1
kind: PersistentVolumeClaim kind: PersistentVolumeClaim
metadata: metadata:
name: {{ include "seaweedfs.fullname" . }}-all-in-one-data name: {{ include "seaweedfs.fullname" . }}-all-in-one-data
namespace: {{ include "seaweedfs.namespace" . | quote }} namespace: {{ .Release.Namespace }}
labels: labels:
app.kubernetes.io/name: {{ template "seaweedfs.name" . }} app.kubernetes.io/name: {{ template "seaweedfs.name" . }}
helm.sh/chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }} helm.sh/chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
app.kubernetes.io/managed-by: {{ .Release.Service }} app.kubernetes.io/managed-by: {{ .Release.Service }}
app.kubernetes.io/instance: {{ .Release.Name }} app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/component: seaweedfs-all-in-one app.kubernetes.io/component: seaweedfs-all-in-one
{{- with include "seaweedfs.commonLabels" $ }}{{ . | nindent 4 }}{{ end }}
{{- with .Values.allInOne.data.annotations }} {{- with .Values.allInOne.data.annotations }}
annotations: annotations:
{{- toYaml . | nindent 4 }} {{- toYaml . | nindent 4 }}
@@ -3,14 +3,13 @@ apiVersion: v1
kind: Service kind: Service
metadata: metadata:
name: {{ include "seaweedfs.componentName" (list . "all-in-one") }} name: {{ include "seaweedfs.componentName" (list . "all-in-one") }}
namespace: {{ include "seaweedfs.namespace" . | quote }} namespace: {{ .Release.Namespace }}
labels: labels:
app.kubernetes.io/name: {{ template "seaweedfs.name" . }} app.kubernetes.io/name: {{ template "seaweedfs.name" . }}
helm.sh/chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }} helm.sh/chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
app.kubernetes.io/managed-by: {{ .Release.Service }} app.kubernetes.io/managed-by: {{ .Release.Service }}
app.kubernetes.io/instance: {{ .Release.Name }} app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/component: seaweedfs-all-in-one app.kubernetes.io/component: seaweedfs-all-in-one
{{- with include "seaweedfs.commonLabels" $ }}{{ . | nindent 4 }}{{ end }}
{{- if .Values.allInOne.service.annotations }} {{- if .Values.allInOne.service.annotations }}
annotations: annotations:
{{- toYaml .Values.allInOne.service.annotations | nindent 4 }} {{- toYaml .Values.allInOne.service.annotations | nindent 4 }}
@@ -5,7 +5,7 @@ apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor kind: ServiceMonitor
metadata: metadata:
name: {{ include "seaweedfs.fullname" . }}-all-in-one name: {{ include "seaweedfs.fullname" . }}-all-in-one
namespace: {{ include "seaweedfs.namespace" . | quote }} namespace: {{ .Release.Namespace }}
labels: labels:
app.kubernetes.io/name: {{ template "seaweedfs.name" . }} app.kubernetes.io/name: {{ template "seaweedfs.name" . }}
helm.sh/chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }} helm.sh/chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
@@ -15,7 +15,6 @@ metadata:
{{- with .Values.global.seaweedfs.monitoring.additionalLabels }} {{- with .Values.global.seaweedfs.monitoring.additionalLabels }}
{{- toYaml . | nindent 4 }} {{- toYaml . | nindent 4 }}
{{- end }} {{- end }}
{{- with include "seaweedfs.commonLabels" (dict "context" $ "exclude" $.Values.global.seaweedfs.monitoring.additionalLabels) }}{{ . | nindent 4 }}{{ end }}
spec: spec:
endpoints: endpoints:
{{- if .Values.allInOne.metricsPort }} {{- if .Values.allInOne.metricsPort }}
@@ -4,14 +4,13 @@ apiVersion: cert-manager.io/v1{{ if .Values.global.seaweedfs.certificates.alphac
kind: Certificate kind: Certificate
metadata: metadata:
name: {{ include "seaweedfs.fullname" . }}-admin-cert name: {{ include "seaweedfs.fullname" . }}-admin-cert
namespace: {{ include "seaweedfs.namespace" . | quote }} namespace: {{ .Release.Namespace }}
labels: labels:
app.kubernetes.io/name: {{ template "seaweedfs.name" . }} app.kubernetes.io/name: {{ template "seaweedfs.name" . }}
helm.sh/chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }} helm.sh/chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
app.kubernetes.io/managed-by: {{ .Release.Service }} app.kubernetes.io/managed-by: {{ .Release.Service }}
app.kubernetes.io/instance: {{ .Release.Name }} app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/component: admin app.kubernetes.io/component: admin
{{- with include "seaweedfs.commonLabels" $ }}{{ . | nindent 4 }}{{ end }}
{{- if .Values.admin.annotations }} {{- if .Values.admin.annotations }}
annotations: annotations:
{{- toYaml .Values.admin.annotations | nindent 4 }} {{- toYaml .Values.admin.annotations | nindent 4 }}
@@ -27,13 +26,13 @@ spec:
- "SeaweedFS CA" - "SeaweedFS CA"
dnsNames: dnsNames:
- '{{ include "seaweedfs.fullname" . }}-admin' - '{{ include "seaweedfs.fullname" . }}-admin'
- '{{ include "seaweedfs.fullname" . }}-admin.{{ include "seaweedfs.namespace" . }}' - '{{ include "seaweedfs.fullname" . }}-admin.{{ .Release.Namespace }}'
- '{{ include "seaweedfs.fullname" . }}-admin.{{ include "seaweedfs.namespace" . }}.svc' - '{{ include "seaweedfs.fullname" . }}-admin.{{ .Release.Namespace }}.svc'
- '{{ include "seaweedfs.fullname" . }}-admin.{{ include "seaweedfs.namespace" . }}.svc.cluster.local' - '{{ include "seaweedfs.fullname" . }}-admin.{{ .Release.Namespace }}.svc.cluster.local'
- '*.{{ include "seaweedfs.fullname" . }}-admin' - '*.{{ include "seaweedfs.fullname" . }}-admin'
- '*.{{ include "seaweedfs.fullname" . }}-admin.{{ include "seaweedfs.namespace" . }}' - '*.{{ include "seaweedfs.fullname" . }}-admin.{{ .Release.Namespace }}'
- '*.{{ include "seaweedfs.fullname" . }}-admin.{{ include "seaweedfs.namespace" . }}.svc' - '*.{{ include "seaweedfs.fullname" . }}-admin.{{ .Release.Namespace }}.svc'
- '*.{{ include "seaweedfs.fullname" . }}-admin.{{ include "seaweedfs.namespace" . }}.svc.cluster.local' - '*.{{ include "seaweedfs.fullname" . }}-admin.{{ .Release.Namespace }}.svc.cluster.local'
{{- if .Values.certificates.dnsNames }} {{- if .Values.certificates.dnsNames }}
{{- range .Values.certificates.dnsNames }} {{- range .Values.certificates.dnsNames }}
- {{ . | quote }} - {{ . | quote }}
@@ -4,13 +4,12 @@ apiVersion: cert-manager.io/v1{{ if .Values.global.seaweedfs.certificates.alphac
kind: Certificate kind: Certificate
metadata: metadata:
name: {{ include "seaweedfs.fullname" . }}-ca-cert name: {{ include "seaweedfs.fullname" . }}-ca-cert
namespace: {{ include "seaweedfs.namespace" . | quote }} namespace: {{ .Release.Namespace }}
labels: labels:
app.kubernetes.io/name: {{ template "seaweedfs.name" . }} app.kubernetes.io/name: {{ template "seaweedfs.name" . }}
helm.sh/chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }} helm.sh/chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
app.kubernetes.io/managed-by: {{ .Release.Service }} app.kubernetes.io/managed-by: {{ .Release.Service }}
app.kubernetes.io/instance: {{ .Release.Name }} app.kubernetes.io/instance: {{ .Release.Name }}
{{- with include "seaweedfs.commonLabels" $ }}{{ . | nindent 4 }}{{ end }}
spec: spec:
secretName: {{ include "seaweedfs.fullname" . }}-ca-cert secretName: {{ include "seaweedfs.fullname" . }}-ca-cert
commonName: "{{ include "seaweedfs.fullname" . }}-root-ca" commonName: "{{ include "seaweedfs.fullname" . }}-root-ca"
@@ -4,13 +4,12 @@ apiVersion: cert-manager.io/v1{{ if .Values.global.seaweedfs.certificates.alphac
kind: Issuer kind: Issuer
metadata: metadata:
name: {{ include "seaweedfs.fullname" . }}-ca-issuer name: {{ include "seaweedfs.fullname" . }}-ca-issuer
namespace: {{ include "seaweedfs.namespace" . | quote }} namespace: {{ .Release.Namespace }}
labels: labels:
app.kubernetes.io/name: {{ template "seaweedfs.name" . }} app.kubernetes.io/name: {{ template "seaweedfs.name" . }}
helm.sh/chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }} helm.sh/chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
app.kubernetes.io/managed-by: {{ .Release.Service }} app.kubernetes.io/managed-by: {{ .Release.Service }}
app.kubernetes.io/instance: {{ .Release.Name }} app.kubernetes.io/instance: {{ .Release.Name }}
{{- with include "seaweedfs.commonLabels" $ }}{{ . | nindent 4 }}{{ end }}
spec: spec:
ca: ca:
secretName: {{ include "seaweedfs.fullname" . }}-ca-cert secretName: {{ include "seaweedfs.fullname" . }}-ca-cert
@@ -4,13 +4,11 @@ apiVersion: cert-manager.io/v1{{ if .Values.global.seaweedfs.certificates.alphac
kind: Issuer kind: Issuer
metadata: metadata:
name: {{ include "seaweedfs.fullname" . }}-issuer name: {{ include "seaweedfs.fullname" . }}-issuer
namespace: {{ include "seaweedfs.namespace" . | quote }}
labels: labels:
app.kubernetes.io/name: {{ template "seaweedfs.name" . }} app.kubernetes.io/name: {{ template "seaweedfs.name" . }}
helm.sh/chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }} helm.sh/chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
app.kubernetes.io/managed-by: {{ .Release.Service }} app.kubernetes.io/managed-by: {{ .Release.Service }}
app.kubernetes.io/instance: {{ .Release.Name }} app.kubernetes.io/instance: {{ .Release.Name }}
{{- with include "seaweedfs.commonLabels" $ }}{{ . | nindent 4 }}{{ end }}
spec: spec:
selfSigned: {} selfSigned: {}
{{- end }} {{- end }}
Loaded 100 of 1087 files, more files were not shown because too many files have changed in this diff. Show more