Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
56 commits
Select commit Hold shift + click to select a range
aab913f
feat(package): reuse prebuilt seekdb binary distributions
hnwyllmm Nov 11, 2026
ddeeede
fix(package): validate directory bundles and consolidate RPM entrypoint
hnwyllmm Nov 11, 2026
de97057
chore(package): remove obsolete root RPM entrypoint
hnwyllmm Nov 11, 2026
ee33011
feat(package): timestamp binary archives in UTC
hnwyllmm Nov 11, 2026
29308ad
feat(package): identify Windows MD binary distributions
hnwyllmm Nov 11, 2026
631b1f1
fix(package): preserve native runtime dependency resolution
hnwyllmm Nov 11, 2026
c1db2f5
fix(windows): avoid optional API imports and validate bundled runtimes
hnwyllmm Nov 11, 2026
d2e7a5b
fix(package): normalize Linux modes and preserve loader paths
hnwyllmm Nov 11, 2026
a12b4dd
fix(macos): keep release builds on the macOS 13 baseline
hnwyllmm Nov 11, 2026
ae06618
fix(package): check the macOS baseline in native PKG bundling
hnwyllmm Nov 11, 2026
c6c91b6
fix(package): preserve ELF plugin loading and executable modes
hnwyllmm Nov 11, 2026
65288df
fix(android): align the native API target with seekdb-deps
hnwyllmm Nov 12, 2026
9570bdf
fix(package): enforce glibc baselines and preserve hwcaps selection
hnwyllmm Nov 12, 2026
6e98aec
feat(package): export Android binaries with API and alignment checks
hnwyllmm Nov 12, 2026
02da75e
feat(ci): add cached GitHub packaging for supported platforms
hnwyllmm Nov 12, 2026
c6e297a
fix(package): preserve default and plugin library lookup
hnwyllmm Nov 12, 2026
51c59b2
ci(package): use cached Conda sysroots for Linux builds
hnwyllmm Nov 12, 2026
6cb75af
ci(package): keep only the dependency SDK cache
hnwyllmm Nov 12, 2026
1ab70cf
ci(package): use default artifact retention
hnwyllmm Nov 12, 2026
2bc9ac0
ci(package): install the EL7 Clang host runtime
hnwyllmm Nov 12, 2026
d2cfb0c
ci(package): pass build parallelism through without validation
hnwyllmm Nov 12, 2026
a8eadf3
fix(package): preserve released RPM dependencies
hnwyllmm Nov 12, 2026
27c7c9f
fix(package): preserve released DEB dependencies
hnwyllmm Nov 12, 2026
6105121
ci(package): reuse binary artifacts from a previous workflow run
hnwyllmm Nov 12, 2026
6a2f242
ci(package): replace release counters with UTC timestamps
hnwyllmm Nov 12, 2026
521d067
fix(build): skip the Unix Android toolchain on Windows hosts
hnwyllmm Nov 12, 2026
4f13464
fix(build): keep lockfile inputs identical across checkout platforms
hnwyllmm Nov 12, 2026
ba52c52
fix(ci): isolate Windows build tools and bound SDK cache restores
hnwyllmm Nov 12, 2026
d382bd1
fix(ci): prefer MSYS make during Windows compilation
hnwyllmm Nov 12, 2026
ba103ff
feat(ci): package iOS device and simulator frameworks
hnwyllmm Nov 13, 2026
32d9db6
fix(ci): preserve existing non-iOS SDK cache paths
hnwyllmm Nov 13, 2026
22c4f1f
perf(ci): trim the iOS host SDK bootstrap
hnwyllmm Nov 13, 2026
97fc2aa
feat(package): separate debug symbols from runtime distributions
hnwyllmm Nov 13, 2026
3b0c7c2
fix(package): address loader and packaging entrypoint reviews
hnwyllmm Nov 13, 2026
e2308f0
feat(package): identify native target distributions
hnwyllmm Nov 13, 2026
067289f
feat(package): cover current Debian and Ubuntu LTS releases
hnwyllmm Nov 13, 2026
8ae0d64
fix(ci): use seekdb memory budget in package smoke checks
hnwyllmm Nov 14, 2026
39de118
fix(package): use prebuilt Windows MD jemalloc and VSAG
hnwyllmm Nov 16, 2026
e0ebb4d
fix(package): allow reproducible dependency timestamps in Windows ZIPs
hnwyllmm Nov 16, 2026
788684d
fix(ci): align packaging with locked dependency SDKs
hnwyllmm Nov 17, 2026
13e1983
docs(package): remove packaging README from PR
hnwyllmm Nov 17, 2026
2f86017
refactor(package): remove redundant shell entrypoints
hnwyllmm Nov 17, 2026
6c2b17b
fix(package): target macOS 15 across release builds
hnwyllmm Nov 17, 2026
c9d0ee3
refactor(ci): move package smoke checks out of workflow
hnwyllmm Nov 17, 2026
48a87e4
perf(ci): compile macOS packages with two parallel jobs
hnwyllmm Nov 17, 2026
3e86867
fix(package): collect baseline libraries without hwcaps promotion
hnwyllmm Nov 18, 2026
d5a8d64
fix(package): preserve and validate native debug symbols
hnwyllmm Nov 18, 2026
130a21d
fix(package): make timezone import data optional
hnwyllmm Nov 18, 2026
b7474fb
refactor(package): clarify distribution and debug module names
hnwyllmm Nov 18, 2026
9731970
refactor(package): remove timezone data packaging support
hnwyllmm Nov 19, 2026
ab6595a
revert(windows): restore direct thread description call
hnwyllmm Nov 19, 2026
3fc6360
fix(package): reject unsupported ELF loader attributes
hnwyllmm Nov 19, 2026
7aa18b7
fix(package): validate Linux loaders and obshell imports
hnwyllmm Nov 19, 2026
3de9bfd
fix(package): preserve system libaio SONAME compatibility
hnwyllmm Nov 19, 2026
ca59867
fix(package): validate Linux runtime and debug dependencies
hnwyllmm Nov 19, 2026
ce91725
refactor(package): remove special ELF loader checks
hnwyllmm Nov 19, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .bazelrc
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ build --experimental_writable_outputs
# Native generators and Cargo build scripts use installed SDK utilities.
build:windows --action_env=PATH
build:macos --action_env=PATH
build:macos --action_env=MACOSX_DEPLOYMENT_TARGET=15.0
build:windows --repo_env=BAZEL_WIN32_WINNT=/D_WIN32_WINNT=0x0A00
build:windows --platforms=//bazel/platforms:windows_x86_64
build:windows --host_platform=//bazel/platforms:windows_x86_64
Expand All @@ -45,7 +46,9 @@ build:O2 --compilation_mode=opt
# Apple's fastbuild/dbg DEBUG macro conflicts with seekdb's DEBUG log level.
build:macos --copt=-UDEBUG
build:macos --macos_minimum_os=15.0
build:macos --copt=-Werror=unguarded-availability
build:android --platforms=//bazel/platforms:android_arm64
build:android --copt=-Werror=unguarded-availability
build:ios --platforms=@apple_support//platforms:ios_arm64
build:ios --ios_minimum_os=18.0
build:ios --//src/standby:enable_standby=false
Expand Down
7 changes: 6 additions & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
.gitattributes export-ignore
.gitignore export-ignore

# Keep dependency lockfile inputs byte-identical across build hosts.
* text=auto eol=lf
*.bat text eol=crlf
*.cmd text eol=crlf

# All OceanBase code is auto-formatted using clang-format.
*.c filter=codeformat
*.cc filter=codeformat
Expand All @@ -9,4 +14,4 @@
*.hpp filter=codeformat
*.i filter=codeformat
*.ic filter=codeformat
*.js filter=codeformat
*.js filter=codeformat
27 changes: 27 additions & 0 deletions .github/packaging.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"micromamba": "2.8.1-0",
"linux_sysroots": {
"x86_64": {
"2.17": {
"spec": "sysroot_linux-64=2.17=h0157908_18",
"sha256": "69ab5804bdd2e8e493d5709eebff382a72fab3e9af6adf93a237ccf8f7dbd624"
},
"2.28": {
"spec": "sysroot_linux-64=2.28=he3f20f0_9",
"sha256": "e2c4c08188bc543756ce2cf596b9547a241398b0ddce1cef77aa93847f22a97e"
}
},
"aarch64": {
"2.17": {
"spec": "sysroot_linux-aarch64=2.17=h68829e0_18",
"sha256": "1e478bfd87c296829e62f0cae37e591568c2dcfc90ee6228c285bb1c7130b915"
},
"2.28": {
"spec": "sysroot_linux-aarch64=2.28=h585391f_9",
"sha256": "1bd2db6b2e451247bab103e4a0128cf6c7595dd72cb26d70f7fadd9edd1d1bc3"
}
}
},
"android_ndk": "27.3.13750724",
"ios_minimum_os": "18.0"
}
112 changes: 112 additions & 0 deletions .github/scripts/check_deb.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,112 @@
#!/usr/bin/env python3
"""Install and smoke-test DEBs in their target distribution container."""

import argparse
import os
from pathlib import Path
import re
import subprocess
import time

HERE = Path(__file__).resolve().parent
SCRIPTS = Path("/usr/libexec/seekdb/scripts")
START_LOG = Path("/tmp/seekdb-start.log")


def run(arguments, **kwargs):
subprocess.run([str(value) for value in arguments], check=True, **kwargs)


def container():
root = HERE.parents[1]
arch = {"x86_64": "amd64", "aarch64": "arm64"}[os.environ["PACKAGE_ARCH"]]
run(["docker", "run", "--rm", "--platform", "linux/" + arch,
"--ulimit", "nofile=65536:65536", "--ulimit", "stack=-1:-1",
"--env", "DEBIAN_FRONTEND=noninteractive", "--env", "TELEMETRY_MODE=0",
"--mount", "type=bind,source=%s,target=/packages,readonly" % (root / "dist"),
"--mount", "type=bind,source=%s,target=/checks,readonly" % HERE,
os.environ["PACKAGE_IMAGE"], "bash", "-ec", "\n".join([
"cat /etc/os-release",
"apt-get update -qq",
"apt-get install -y --no-install-recommends /packages/*.deb python3-pymysql",
"exec python3 /checks/check_deb.py --installed",
])])


def configure():
config = Path("/etc/seekdb/seekdb.cnf")
content = config.read_text()
for line in (HERE / "fixtures/seekdb-smoke.cnf").read_text().splitlines():
if not line or line.startswith("#"):
continue
key = line.split("=", 1)[0]
content, count = re.subn(r"^" + re.escape(key) + r"=.*$", line, content, flags=re.MULTILINE)
if not count:
content = content.rstrip("\n") + "\n" + line + "\n"
config.write_text(content)


def sql(process):
import pymysql

deadline = time.monotonic() + 240
while True:
try:
connection = pymysql.connect(host="127.0.0.1", port=2881, user="root", password="",
connect_timeout=2, read_timeout=10, write_timeout=10, autocommit=True)
break
except pymysql.err.OperationalError:
if process.poll() is not None:
raise RuntimeError("seekdb exited before accepting connections")
if time.monotonic() >= deadline:
raise
time.sleep(2)
with connection:
with connection.cursor() as cursor:
cursor.execute("CREATE DATABASE packaging_smoke")
cursor.execute("CREATE TABLE packaging_smoke.t (id INT PRIMARY KEY, v VARCHAR(32))")
cursor.execute("INSERT INTO packaging_smoke.t VALUES (1, 'ready')")
cursor.execute("SELECT v FROM packaging_smoke.t WHERE id = 1")
assert cursor.fetchone() == ("ready",)
cursor.execute("DROP DATABASE packaging_smoke")
print("Installed seekdb passed SQL read/write checks", flush=True)


def stop(process):
with subprocess.Popen([str(SCRIPTS / "seekdb_systemd_stop")],
env=dict(os.environ, MAINPID=str(process.pid))) as stopper:
# Reap seekdb while the stop helper runs so it does not wait on a zombie.
try:
result = process.wait(timeout=45)
except subprocess.TimeoutExpired:
process.kill()
process.wait()
raise
if stopper.returncode:
raise subprocess.CalledProcessError(stopper.returncode, stopper.args)
if result:
raise subprocess.CalledProcessError(result, process.args)


def installed():
run(["seekdb", "--version"])
run(["systemd-analyze", "verify", "--man=no", "/usr/lib/systemd/system/seekdb.service"])
configure()
with START_LOG.open("w") as log:
process = subprocess.Popen([str(SCRIPTS / "seekdb_systemd_start")], stdout=log, stderr=subprocess.STDOUT)
try:
try:
sql(process)
finally:
stop(process)
except BaseException:
for log in [START_LOG, *sorted(Path("/var/lib/seekdb/log").glob("*.log"))]:
subprocess.run(["tail", "-n", "80", str(log)], check=False)
raise


if __name__ == "__main__":
parser = argparse.ArgumentParser(description=__doc__)
parser.add_argument("--installed", action="store_true", help="check the installed package inside the container")
arguments = parser.parse_args()
installed() if arguments.installed else container()
6 changes: 6 additions & 0 deletions .github/scripts/check_windows.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
$archive = Get-Item dist/seekdb-binary-*.zip
$destination = Join-Path $env:RUNNER_TEMP 'seekdb-package-check'
Expand-Archive -LiteralPath $archive.FullName -DestinationPath $destination
$executable = Get-ChildItem $destination -Filter seekdb.exe -Recurse
& $executable.FullName --version
if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }
5 changes: 5 additions & 0 deletions .github/scripts/fixtures/seekdb-smoke.cnf
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Resource limits for the installed-package smoke check.
cpu_count=2
memory_budget=2G
datafile_size=1G
log_disk_size=2G
Loading
Loading