325 lines
11 KiB
TOML
325 lines
11 KiB
TOML
schema = "gamecult.idunn.target_declaration.v1"
|
|
target = "vili"
|
|
source_stamp_environment = "VILI_BUILD_COMMIT"
|
|
required_gitlinks = ["vendor/CultLib", "vendor/kimodo", "vendor/SOMA-X"]
|
|
|
|
# External inputs: a relocatable CPython, then Blender and the libraries it loads. The locked site-packages are installed into this tree itself: a copied
|
|
# environment would carry an absolute interpreter link and a recorded build path, and the seal refuses both.
|
|
[[external_inputs]]
|
|
id = "cpython"
|
|
url = "https://github.com/astral-sh/python-build-standalone/releases/download/20261021/cpython-3.12.15+20261021-x86_64-unknown-linux-gnu-install_only.tar.gz"
|
|
sha256 = "5ff9f0602ce964a529ed1e8555d3abab6341926d724402ba9a15e9e877191124"
|
|
runner = "python-build"
|
|
destination = "release/cpython.tar.gz"
|
|
|
|
# Blender 5.2.2 LTS, unpacked beside the interpreter. The tree is sealed whole; the daemon runs it with
|
|
# LD_LIBRARY_PATH=blender/lib (scripts/vili-daemon.mjs exportEnv).
|
|
[[external_inputs]]
|
|
id = "blender-linux-x64"
|
|
url = "https://download.blender.org/release/Blender5.2/blender-5.2.2-linux-x64.tar.xz"
|
|
sha256 = "84098912789dc450e95697c4184fb8a90acbe5111c2ba4aede3fecb57806a168"
|
|
runner = "python-build"
|
|
destination = "release/blender.tar.xz"
|
|
|
|
# The nine Debian bookworm packages whose shared libraries Blender loads and its tree does not carry (the Blender
|
|
# tarball's loader reaches libGL and the X client libraries). Their usr/lib/x86_64-linux-gnu/*.so* go into blender/lib;
|
|
# nothing is installed on the host (motion-pipeline:ruling:blender-libs-bundled-in-release). One snapshot.debian.org
|
|
# timestamp, so the bytes are immutable; each sha256 is the package's own.
|
|
|
|
[[external_inputs]]
|
|
id = "deb-libxrender1"
|
|
url = "https://snapshot.debian.org/archive/debian/20260301T000000Z/pool/main/libx/libxrender/libxrender1_0.9.10-1.1_amd64.deb"
|
|
sha256 = "b2a6d160578f359220101947c8d67059b44704a251e688de1d0b744fefedfd1a"
|
|
runner = "python-build"
|
|
destination = "release/deb-libxrender1.deb"
|
|
|
|
[[external_inputs]]
|
|
id = "deb-libxfixes3"
|
|
url = "https://snapshot.debian.org/archive/debian/20260301T000000Z/pool/main/libx/libxfixes/libxfixes3_6.0.0-2_amd64.deb"
|
|
sha256 = "1cd616396ff2ecae77e6e8b5b7695d414f0146de2d147837a2a02165f99e1a2c"
|
|
runner = "python-build"
|
|
destination = "release/deb-libxfixes3.deb"
|
|
|
|
[[external_inputs]]
|
|
id = "deb-libxi6"
|
|
url = "https://snapshot.debian.org/archive/debian/20260301T000000Z/pool/main/libx/libxi/libxi6_1.8-1+b1_amd64.deb"
|
|
sha256 = "6c2fb5f241b311788990122c6e693915867cd8ed9d6da2e3524aec7ed3cdb4c0"
|
|
runner = "python-build"
|
|
destination = "release/deb-libxi6.deb"
|
|
|
|
[[external_inputs]]
|
|
id = "deb-libxkbcommon0"
|
|
url = "https://snapshot.debian.org/archive/debian/20260301T000000Z/pool/main/libx/libxkbcommon/libxkbcommon0_1.5.0-1_amd64.deb"
|
|
sha256 = "e3fe045b9a33a101de1c5a912a4a10928db055c3f68930f47eccbb44d7c7d54e"
|
|
runner = "python-build"
|
|
destination = "release/deb-libxkbcommon0.deb"
|
|
|
|
[[external_inputs]]
|
|
id = "deb-libsm6"
|
|
url = "https://snapshot.debian.org/archive/debian/20260301T000000Z/pool/main/libs/libsm/libsm6_1.2.3-1_amd64.deb"
|
|
sha256 = "22a420890489023346f30fecef14ea900a0788e7bf959ef826aabb83944fccfb"
|
|
runner = "python-build"
|
|
destination = "release/deb-libsm6.deb"
|
|
|
|
[[external_inputs]]
|
|
id = "deb-libice6"
|
|
url = "https://snapshot.debian.org/archive/debian/20260301T000000Z/pool/main/libi/libice/libice6_1.0.10-1_amd64.deb"
|
|
sha256 = "452796e565c9d42386bd59990000ae9c37d85e142e00ee2b14df0787e2bbf970"
|
|
runner = "python-build"
|
|
destination = "release/deb-libice6.deb"
|
|
|
|
[[external_inputs]]
|
|
id = "deb-libgl1"
|
|
url = "https://snapshot.debian.org/archive/debian/20260301T000000Z/pool/main/libg/libglvnd/libgl1_1.6.0-1_amd64.deb"
|
|
sha256 = "6f89b1702c48e9a2437bb3c1ffac8e1ab2d828fc28b3d14b2eecd4cc19b2c790"
|
|
runner = "python-build"
|
|
destination = "release/deb-libgl1.deb"
|
|
|
|
[[external_inputs]]
|
|
id = "deb-libglx0"
|
|
url = "https://snapshot.debian.org/archive/debian/20260301T000000Z/pool/main/libg/libglvnd/libglx0_1.6.0-1_amd64.deb"
|
|
sha256 = "95f568df73dedf43ae66834a75502112e0d4f3ad7124f3dbfa790b739383b896"
|
|
runner = "python-build"
|
|
destination = "release/deb-libglx0.deb"
|
|
|
|
[[external_inputs]]
|
|
id = "deb-libglvnd0"
|
|
url = "https://snapshot.debian.org/archive/debian/20260301T000000Z/pool/main/libg/libglvnd/libglvnd0_1.6.0-1_amd64.deb"
|
|
sha256 = "b6da5b153dd62d8b5e5fbe25242db1fc05c068707c365db49abda8c2427c75f8"
|
|
runner = "python-build"
|
|
destination = "release/deb-libglvnd0.deb"
|
|
|
|
# ---- node-build: the daemon, the Idunn entry and its dependencies
|
|
|
|
[[steps]]
|
|
id = "install-cultlib-build-dependencies"
|
|
phase = "prepare"
|
|
runner = "node-build"
|
|
working_directory = "vendor/CultLib"
|
|
required_environment = ["HOME", "NPM_CONFIG_CACHE"]
|
|
argv = ["npm", "ci", "--ignore-scripts"]
|
|
|
|
[[steps]]
|
|
id = "build-cultcache-ts"
|
|
phase = "prepare"
|
|
runner = "node-build"
|
|
working_directory = "vendor/CultLib"
|
|
required_environment = ["HOME", "NPM_CONFIG_CACHE"]
|
|
argv = ["npm", "run", "build", "--workspace=packages/cultcache-ts"]
|
|
|
|
[[steps]]
|
|
id = "build-cultnet-ts"
|
|
phase = "prepare"
|
|
runner = "node-build"
|
|
working_directory = "vendor/CultLib"
|
|
required_environment = ["HOME", "NPM_CONFIG_CACHE"]
|
|
argv = ["npm", "run", "build", "--workspace=packages/cultnet-ts"]
|
|
|
|
[[steps]]
|
|
id = "install-vili-dependencies"
|
|
phase = "prepare"
|
|
runner = "node-build"
|
|
required_environment = ["HOME", "NPM_CONFIG_CACHE"]
|
|
argv = ["npm", "ci", "--ignore-scripts", "--install-links"]
|
|
|
|
[[steps]]
|
|
id = "test-daemon"
|
|
phase = "test"
|
|
runner = "node-build"
|
|
required_environment = ["HOME", "NPM_CONFIG_CACHE"]
|
|
argv = ["node", "--test", "--test-timeout=60000", "scripts/test-vili-daemon.mjs"]
|
|
|
|
[[steps]]
|
|
id = "assemble-vili-release"
|
|
phase = "build"
|
|
runner = "node-build"
|
|
required_environment = ["HOME", "NPM_CONFIG_CACHE"]
|
|
argv = ["node", "deployment/idunn/assemble-release.mjs", "release/vili", "release/node"]
|
|
|
|
# ---- python-build: the interpreter and its locked packages
|
|
|
|
[[steps]]
|
|
id = "unpack-cpython"
|
|
phase = "prepare"
|
|
runner = "python-build"
|
|
argv = ["tar", "-xzf", "release/cpython.tar.gz", "-C", "release"]
|
|
|
|
[[steps]]
|
|
id = "unpack-blender"
|
|
phase = "prepare"
|
|
runner = "python-build"
|
|
argv = ["tar", "-xJf", "release/blender.tar.xz", "-C", "release", "--transform", "s,^blender-5.2.2-linux-x64,blender,"]
|
|
|
|
[[steps]]
|
|
id = "unpack-blender-libs"
|
|
phase = "prepare"
|
|
runner = "python-build"
|
|
required_environment = ["PATH"]
|
|
argv = [
|
|
"python3.12", "deployment/idunn/unpack-debs.py", "release/blender/lib",
|
|
"release/deb-libxrender1.deb",
|
|
"release/deb-libxfixes3.deb",
|
|
"release/deb-libxi6.deb",
|
|
"release/deb-libxkbcommon0.deb",
|
|
"release/deb-libsm6.deb",
|
|
"release/deb-libice6.deb",
|
|
"release/deb-libgl1.deb",
|
|
"release/deb-libglx0.deb",
|
|
"release/deb-libglvnd0.deb",
|
|
]
|
|
|
|
[[steps]]
|
|
id = "install-build-tools"
|
|
phase = "prepare"
|
|
runner = "python-build"
|
|
required_environment = ["HOME", "PIP_CACHE_DIR", "TMPDIR", "PATH", "PIP_DISABLE_PIP_VERSION_CHECK", "PIP_NO_INPUT"]
|
|
argv = ["python3.12", "-m", "pip", "install", "--no-deps", "--require-hashes", "-r", "deployment/idunn/requirements-build.lock"]
|
|
|
|
[[steps]]
|
|
id = "install-locked-packages"
|
|
phase = "prepare"
|
|
runner = "python-build"
|
|
required_environment = ["HOME", "PIP_CACHE_DIR", "TMPDIR", "PATH", "PIP_DISABLE_PIP_VERSION_CHECK", "PIP_NO_INPUT"]
|
|
argv = ["python3.12", "-m", "pip", "install", "--no-deps", "--require-hashes", "--no-build-isolation", "-r", "deployment/idunn/requirements.lock"]
|
|
|
|
[[steps]]
|
|
id = "install-vendored-packages"
|
|
phase = "prepare"
|
|
runner = "python-build"
|
|
required_environment = ["HOME", "PIP_CACHE_DIR", "TMPDIR", "PATH", "PIP_DISABLE_PIP_VERSION_CHECK", "PIP_NO_INPUT"]
|
|
argv = ["python3.12", "-m", "pip", "install", "--no-deps", "--no-build-isolation", "--no-index", "vendor/SOMA-X", "vendor/kimodo/MotionCorrection", "vendor/kimodo"]
|
|
|
|
[[steps]]
|
|
id = "test-worker"
|
|
phase = "test"
|
|
runner = "python-build"
|
|
working_directory = "."
|
|
required_environment = ["HOME", "TMPDIR", "PYTHONPATH", "PATH", "VILI_BLENDER"]
|
|
argv = ["python3.12", "-m", "unittest", "discover", "-s", "scripts", "-p", "test_*.py"]
|
|
|
|
# Every module the worker and the encoder child import at top level, kimodo.scripts.generate included.
|
|
[[steps]]
|
|
id = "import-smoke"
|
|
phase = "acceptance"
|
|
runner = "python-build"
|
|
required_environment = ["HOME", "TMPDIR", "PYTHONPATH", "PATH"]
|
|
argv = [
|
|
"python3.12", "-c",
|
|
"import accelerate, cultcache_py, huggingface_hub.constants, kimodo, kimodo.constraints, kimodo.exports.motion_io, kimodo.meta, kimodo.model.llm2vec.llm2vec, kimodo.model.load_model, kimodo.model.loading, kimodo.model.registry, kimodo.scripts.generate, kimodo.tools, msgpack, peft, torch, transformers",
|
|
]
|
|
|
|
[[steps]]
|
|
id = "compile-python"
|
|
phase = "build"
|
|
runner = "python-build"
|
|
required_environment = ["PATH"]
|
|
argv = ["python3.12", "-m", "compileall", "-q", "-j", "4", "--invalidation-mode", "unchecked-hash", "release/python/lib/python3.12"]
|
|
|
|
# ---- the sealed release: node, vili, python, blender
|
|
|
|
[[artifacts]]
|
|
id = "node"
|
|
source_kind = "runner-output"
|
|
runner = "node-build"
|
|
source = "release/node/node"
|
|
destination = "node"
|
|
executable = true
|
|
|
|
[[artifacts]]
|
|
id = "vili"
|
|
source_kind = "runner-output"
|
|
runner = "node-build"
|
|
source = "release/vili"
|
|
destination = "vili"
|
|
|
|
[[artifacts]]
|
|
id = "python"
|
|
source_kind = "runner-output"
|
|
runner = "python-build"
|
|
source = "release/python"
|
|
destination = "python"
|
|
executable_members = ["bin/python3.12"]
|
|
|
|
[[artifacts]]
|
|
id = "blender"
|
|
source_kind = "runner-output"
|
|
runner = "python-build"
|
|
source = "release/blender"
|
|
destination = "blender"
|
|
executable_members = ["blender"]
|
|
|
|
[service]
|
|
executable_artifact = "node"
|
|
required_adjacent_artifacts = ["vili", "python", "blender"]
|
|
arguments = [
|
|
{ kind = "literal", value = "vili/scripts/idunn-entry.mjs" },
|
|
{ kind = "literal", value = "--state-root" },
|
|
{ kind = "binding", name = "state_root" },
|
|
{ kind = "literal", value = "--kimodo-commit" },
|
|
{ kind = "literal", value = "6bb58488037dd65360ff0c5d1692b403a23309f7" },
|
|
]
|
|
transport = "http"
|
|
route_required = true
|
|
required_environment = [
|
|
"GAMECULT_IDUNN_CANDIDATE_BIND",
|
|
"GAMECULT_IDUNN_PROCESS_WRITE_LEASE",
|
|
"GAMECULT_IDUNN_RUNTIME_BUNDLE",
|
|
"VILI_MODELS_ROOT",
|
|
"VILI_THREADS",
|
|
]
|
|
|
|
[service.health]
|
|
contract = "gamecult.runtime_presence_health.v2"
|
|
|
|
[state]
|
|
schema_generation = "vili-v1"
|
|
|
|
[[state.slots]]
|
|
id = "service-store"
|
|
relative_path = "vili.service.cc"
|
|
kind = "cultcache-file"
|
|
schema = "gamecult.vili.operator_state.v1"
|
|
writer = "process-bound-single-writer"
|
|
recovery = "rebuildable"
|
|
startup = "create-or-open-after-write-lease"
|
|
|
|
[[state.slots]]
|
|
id = "text-embeddings"
|
|
relative_path = "embeddings/text-embeddings.cc"
|
|
kind = "cultcache-file"
|
|
schema = "gamecult.vili.text_embedding.v0"
|
|
writer = "process-bound-single-writer"
|
|
recovery = "rebuildable"
|
|
startup = "create-or-open-after-write-lease"
|
|
|
|
[[state.slots]]
|
|
id = "jobs"
|
|
relative_path = "jobs"
|
|
kind = "external-directory"
|
|
schema = "gamecult.vili.motion_job.v1"
|
|
writer = "process-bound-single-writer"
|
|
recovery = "preserve"
|
|
startup = "create-or-open-after-write-lease"
|
|
|
|
[[state.slots]]
|
|
id = "artifacts"
|
|
relative_path = "artifacts"
|
|
kind = "external-directory"
|
|
schema = "gamecult.vili.motion_artifact.v0"
|
|
writer = "process-bound-single-writer"
|
|
recovery = "preserve"
|
|
startup = "create-or-open-after-write-lease"
|
|
|
|
[[state.slots]]
|
|
id = "logs"
|
|
relative_path = "logs"
|
|
kind = "external-directory"
|
|
schema = "text.log"
|
|
writer = "process-bound-single-writer"
|
|
recovery = "rebuildable"
|
|
startup = "create-or-open-after-write-lease"
|
|
|
|
[[provides]]
|
|
capability = "vili.motion.api"
|
|
schema = "http.v1"
|
|
compatibility = "v1"
|