Commit Graph
7 Commits
Author SHA1 Message Date
Niko1221 6b74e749ae packaging: every Linux CUDA package carries licenses/ (libgomp and libatomic notices)
collect_libs.py bundles libatomic.so.1 and libgomp.so.1 from the build machine
without a flag and writes their notices to <out>/licenses/. package_engine.py
without --tree packs top-level files only, so the notice reaches the package
only with --include 'licenses/*'. The Inkling stage of Dockerfile.src has it
since the previous commit; this adds it to the other packagers that run
collect_libs.py and package_engine.py:

- tools/docker/Dockerfile.src: the engine and Hy4 packages
- tools/packaging/build_cuda_linux.sh, build_cuda_linux_aarch64.sh
  (aarch64 packs what engine/spark/build_engine.sh collected)

A package without a licenses folder is unchanged (the glob matches nothing).

Tests: test_engine_deps_linux checks libgomp.so.1 is on the bundle list with
its notice; test_bundle_system_notices checks every package script that calls
collect_libs.py, and all three package_engine calls in Dockerfile.src, pass
--include 'licenses/*'.
2026-11-26 23:04:55 +01:00
Niko1221 c234774038 fix(packaging): bundle libgomp.so.1 with the engine, like libatomic.so.1
From PR #7189 by @rafal-prasal, applied unchanged.

The source Docker build (tools/docker/Dockerfile.src, BUILD_INKLING=1) stopped at
"strata-inkling needs libgomp.so.1": strata-inkling is linked against OpenMP,
binary_deps.py does not count libgomp as a base system library since 0.2.14, and
collect_libs.py left it to the OS.

- collect_libs.py: libgomp.so.1 joins BUNDLE_FROM_SYSTEM, so it is copied from the
  build machine with its notice, like libatomic.so.1.
- tools/packaging/notices/libgomp.txt: the notice (GPL-3.0-or-later WITH
  GCC-exception-3.1).
- Dockerfile.src: the inkling2 shape passes --include 'licenses/*', so the notice
  travels in the package.
2026-11-25 23:59:41 +01:00
Niko1221 db4b257754 fix(docker): fix MODEL_PATH validation, package shape engines in Dockerfile.src, update docs to 0.2.20 2026-11-23 01:04:51 +01:00
Niko1221 7aaa789a94 feat(nextgen): apply NextGen integration across engine, qwen35, hy4flash, and inkling2 2026-11-22 13:12:57 +01:00
Niko1221 b4a305a1a0 The source Docker build works again: the ignore list stops cutting out engine/
Since the layout move /engine/ is the engine's source, but tools/docker/Dockerfile.src.dockerignore still carried the old /engine/ line (the built engine of setup.py), so the build context had no engine/ and `cmake -S engine` could not run. The list now names the folders .gitignore names for the built engines (/terminal/engine/, /terminal/engine-sycl/, /terminal/engine-cuda12/, /engine-sycl/, /engine-cuda12/) and the vendored llama.cpp at its new place (engine/third_party/llama.cpp, terminal/third_party/llama.cpp).

There is no Dockerfile at the repository root, so the commands in docs/DOCKER.md and in the Dockerfile.src header now name it with -f tools/docker/Dockerfile.src (the ignore list next to it is only read then) and pass STRATA_COMMIT, which the Terminal stage needs because .git is not copied. The CUDA 12 example uses nvidia/cuda:12.9.2-devel-ubuntu24.04 (the tag exists) and no longer says BUILD_VISION=0: the picture reader is built for the same architectures as the engine, sm_60 / 61 / 70 included, and package_engine.py checks vision_archs against the package's archs; BUILD_VISION=0 stays documented as the opt-out.

terminal/tests/terminal/test_docker_src_context.py reads the ignore list the way docker does and checks that no tracked file under engine/, tools/ or terminal/ is cut out, that the engine source is in, that the built-engine folders are out, and that every documented source build names the Dockerfile with -f. It fails on the old files and passes now.

Based on the report and change of #6064 by rafal-prasal (credited in the release notes).
2026-11-20 07:11:56 +01:00
Niko1221 926bd1cf9e Dockerfile.src: the engine is configured from engine/ and the Terminal is packaged with tools/packaging/package_terminal.py
The source image copies the repository root to /src. Its engine stage ran `cmake -S .` (the root has no CMakeLists.txt since the layout move)
and its Terminal stage ran /src/packaging/package_terminal.py (the script is in tools/packaging). Both lines now name the moved places;
the rest of the file already did.
2026-11-17 16:55:10 +01:00
Niko1221 4058aa782b Layout move for 0.2.16: the top level becomes app/, engine/, terminal/, docs/, tools/ and .github/
Made by tools/layout/move_0216.py (the commit before this one) on db8e0be9c, the final code head of 0.2.16:
- 75 git mv (renames, so `git log --follow` and blame keep working; packaging/acceptance_matrix.md shows as delete + add because its links
  changed too) and 3 removals: SETUP.bat, UPDATE.bat and update.sh (setup.py --update pulls the code now);
- 1,425 path edits in 307 files: root-relative paths in CI, Docker, .gitignore and the release scripts; Markdown links; Python and
  Node joins from a root that moved with its folder; explicit edits for code that computes a root or names a moved path; tables of
  repository paths inside tests.

engine/ holds what CMake builds (src, include, cmake, metal, sycl, spark, third_party, the C++ tests and benches). app/ is the desktop
app and its host (was apps/). terminal/ is the Terminal in the layout of the installed one (strata.py, setup.py, strata_cli,
strata_control, serve, bin, data, ref, crates, the Python tools and tests). docs/ has the documentation, docs/lang/ the translated
READMEs, docs/history and docs/bench-results. tools/ has the repository's own checks, packaging, docker, research and nix.
tests/core/test_tqp_ref.py is a pytest file and stays with the Python tests (terminal/tests/core/).
AGENTS.md, README.md, LICENSE, setup.sh and START-HERE.bat stay at the root.

No behaviour change: the same command lines, the same sources. For this head a replay of the script gave the same numbers and the path
scan (tools/layout/checks/path_scan.py) reports no hit; the suites and the builds run on this commit next.
2026-11-17 13:19:21 +01:00