[GH-ISSUE #4082] [Other] docker/build.sh leaves out tools/dsv41/*.py, so the image build stops at "installer tool missing: tools/dsv41/tune.py" #1778

Closed
opened 2026-11-04 01:53:58 +07:00 by bsakaguchi · 4 comments
Owner

Originally created by @noonghunna on GitHub (Oct 25, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/4082

Area

[Other] (anything else, including setup and installation)

Desktop app, Terminal or source?

Docker

What happened

Building the image for v0.2.5 with the repo's own script stops in the terminal stage, at python3 /src/packaging/package_terminal.py:

#9 8.335 copying the application
#9 8.337 installer tool missing: tools/dsv41/tune.py
#9 ERROR: process "/bin/sh -c python3 /src/packaging/package_terminal.py --out /out --cache /cache  && ..." did not complete successfully: exit code: 1

Since b7958c04 (2026-10-24), packaging/package_terminal.py puts dsv41/pack_gguf, dsv41/smoke and dsv41/tune in INSTALLER_SCRIPTS. docker/build.sh says it stages "exactly what packaging/package_terminal.py copies", but it only takes ':(glob)tools/*.py' (line 68; the branch without git on line 71 takes tools/*.py). That glob doesn't reach tools/dsv41/, so the build context has no tools/dsv41/ and local_imports() exits on the first script it can't find. docker/build.sh on main (41cf05a0) is the same.

The Docker images workflow runs the same docker/publish.sh → docker/build.sh, so a run for 0.2.4 or 0.2.5 would stop here too. ghcr.io has no 0.2.4 or 0.2.5 image yet (the newest tags are 0.2.3-*).

Adding the subfolder to both staging lines fixes it for me:

-  { git ls-files -z -- $paths ':(glob)tools/*.py'; } | tar --null -T - -cf - | tar -xf - -C "$ctx/terminal-src"
+  { git ls-files -z -- $paths ':(glob)tools/*.py' ':(glob)tools/dsv41/*.py'; } | tar --null -T - -cf - | tar -xf - -C "$ctx/terminal-src"
 ...
-  tar -cf - --exclude='__pycache__' $paths tools/*.py | tar -xf - -C "$ctx/terminal-src"
+  tar -cf - --exclude='__pycache__' $paths tools/*.py tools/dsv41/*.py | tar -xf - -C "$ctx/terminal-src"

With the first change, docker/publish.sh --release-tag v0.2.5 --flavors cuda13 --no-latest completes: the cuda13 image builds and its check prints strata 0.2.5 (build 0.1.50; python 3.12.15 …). I only tested the git branch (line 68).

tests/terminal/test_bundle_tools_paths.py checks that the bundle carries every by-path tool, but it doesn't look at what docker/build.sh stages, so this slipped past it.

Smallest steps or command that reproduce it

git clone --depth 1 --branch v0.2.5 https://github.com/Niko1221/Strata.git && cd Strata
sh docker/publish.sh --release-tag v0.2.5 --flavors cuda13 --image strata-test --no-latest

The engine package downloads and verifies fine (0.1.50-linux-x86_64-cuda-cuda13: signature and every file verified); the failure comes after, in the terminal stage.

Reproduction status

Reproduced locally

Strata version

v0.2.5 (tag → fa663fab); docker/build.sh unchanged on main 41cf05a0

Graphics card, memory and system

Ubuntu 24.04, Docker 29.9.1. The build fails before any GPU is used.

Model, size and settings

not relevant (image build)

Logs

the snippet above.

Originally created by @noonghunna on GitHub (Oct 25, 2026). Original GitHub issue: https://github.com/Niko1221/Strata/issues/4082 ### Area [Other] (anything else, including setup and installation) ### Desktop app, Terminal or source? Docker ### What happened Building the image for v0.2.5 with the repo's own script stops in the `terminal` stage, at `python3 /src/packaging/package_terminal.py`: ``` #9 8.335 copying the application #9 8.337 installer tool missing: tools/dsv41/tune.py #9 ERROR: process "/bin/sh -c python3 /src/packaging/package_terminal.py --out /out --cache /cache && ..." did not complete successfully: exit code: 1 ``` Since b7958c04 (2026-10-24), `packaging/package_terminal.py` puts `dsv41/pack_gguf`, `dsv41/smoke` and `dsv41/tune` in `INSTALLER_SCRIPTS`. `docker/build.sh` says it stages "exactly what packaging/package_terminal.py copies", but it only takes `':(glob)tools/*.py'` (line 68; the branch without git on line 71 takes `tools/*.py`). That glob doesn't reach `tools/dsv41/`, so the build context has no `tools/dsv41/` and `local_imports()` exits on the first script it can't find. `docker/build.sh` on main (41cf05a0) is the same. The `Docker images` workflow runs the same `docker/publish.sh` → `docker/build.sh`, so a run for 0.2.4 or 0.2.5 would stop here too. ghcr.io has no 0.2.4 or 0.2.5 image yet (the newest tags are `0.2.3-*`). Adding the subfolder to both staging lines fixes it for me: ```diff - { git ls-files -z -- $paths ':(glob)tools/*.py'; } | tar --null -T - -cf - | tar -xf - -C "$ctx/terminal-src" + { git ls-files -z -- $paths ':(glob)tools/*.py' ':(glob)tools/dsv41/*.py'; } | tar --null -T - -cf - | tar -xf - -C "$ctx/terminal-src" ... - tar -cf - --exclude='__pycache__' $paths tools/*.py | tar -xf - -C "$ctx/terminal-src" + tar -cf - --exclude='__pycache__' $paths tools/*.py tools/dsv41/*.py | tar -xf - -C "$ctx/terminal-src" ``` With the first change, `docker/publish.sh --release-tag v0.2.5 --flavors cuda13 --no-latest` completes: the cuda13 image builds and its check prints `strata 0.2.5 (build 0.1.50; python 3.12.15 …)`. I only tested the git branch (line 68). `tests/terminal/test_bundle_tools_paths.py` checks that the bundle carries every by-path tool, but it doesn't look at what `docker/build.sh` stages, so this slipped past it. ### Smallest steps or command that reproduce it ``` git clone --depth 1 --branch v0.2.5 https://github.com/Niko1221/Strata.git && cd Strata sh docker/publish.sh --release-tag v0.2.5 --flavors cuda13 --image strata-test --no-latest ``` The engine package downloads and verifies fine (`0.1.50-linux-x86_64-cuda-cuda13: signature and every file verified`); the failure comes after, in the `terminal` stage. ### Reproduction status Reproduced locally ### Strata version v0.2.5 (tag → fa663fab); `docker/build.sh` unchanged on main 41cf05a0 ### Graphics card, memory and system Ubuntu 24.04, Docker 29.9.1. The build fails before any GPU is used. ### Model, size and settings not relevant (image build) ### Logs the snippet above.
Author
Owner

@volkertb commented on GitHub (Oct 25, 2026):

Same here, and the same fix works for another flavor: with both staging lines patched,
docker/build.sh --flavor hip --engine …/0.1.50-linux-x86_64-hip-rx7900 --version 0.2.5
builds and the image reports strata 0.2.5 (build 0.1.50 …). (Ubuntu , Docker .)

On which releases are affected: b7958c04 is not in v0.2.4, so that tag's image build should still work;
v0.2.4.1, v0.2.4.2 and v0.2.5 contain it (git merge-base --is-ancestor b7958c04 <tag>).

<!-- gh-comment-id:6397486156 --> @volkertb commented on GitHub (Oct 25, 2026): Same here, and the same fix works for another flavor: with both staging lines patched, `docker/build.sh --flavor hip --engine …/0.1.50-linux-x86_64-hip-rx7900 --version 0.2.5` builds and the image reports `strata 0.2.5 (build 0.1.50 …)`. (Ubuntu <your version>, Docker <your version>.) On which releases are affected: b7958c04 is not in `v0.2.4`, so that tag's image build should still work; `v0.2.4.1`, `v0.2.4.2` and `v0.2.5` contain it (`git merge-base --is-ancestor b7958c04 <tag>`).
Author
Owner

@noonghunna commented on GitHub (Oct 25, 2026):

Thanks for checking, you're right: b7958c04 isn't in v0.2.4, so the v0.2.4 image should still build. The affected tags are v0.2.4.1, v0.2.4.2, v0.2.5 and now v0.2.6.

docker/build.sh is unchanged in v0.2.6 and on main (both 4b9e05a2). With the same change to the git ls-files line, docker/publish.sh --release-tag v0.2.6 --flavors cuda13 --no-latest completes and the image reports strata 0.2.6 (build 0.1.51 …).

<!-- gh-comment-id:6400001296 --> @noonghunna commented on GitHub (Oct 25, 2026): Thanks for checking, you're right: b7958c04 isn't in `v0.2.4`, so the `v0.2.4` image should still build. The affected tags are `v0.2.4.1`, `v0.2.4.2`, `v0.2.5` and now `v0.2.6`. `docker/build.sh` is unchanged in `v0.2.6` and on main (both 4b9e05a2). With the same change to the `git ls-files` line, `docker/publish.sh --release-tag v0.2.6 --flavors cuda13 --no-latest` completes and the image reports `strata 0.2.6 (build 0.1.51 …)`.
Author
Owner

@simlu commented on GitHub (Oct 25, 2026):

Is this why the most recent builds don't have docker images published?

<!-- gh-comment-id:6401620923 --> @simlu commented on GitHub (Oct 25, 2026): Is this why the most recent builds don't have docker images published?
Author
Owner

@noonghunna commented on GitHub (Oct 28, 2026):

Fixed upstream in d398f353 (the change from #3974): docker/build.sh now stages the nested tools/ scripts on both branches, ':(glob)tools/**/*.py' with git and find tools -name '*.py' without. So tools/dsv41/ reaches the build context. It's in v0.2.7, and the published 0.2.7-cuda13 image serves fine for us.

On the question above: yes, as far as I can tell. ghcr.io has cuda13 images for 0.2.1 to 0.2.3 and 0.2.7, and none in between. 0.2.4.1, 0.2.4.2, 0.2.5 and 0.2.6 all carry the change that broke the build. (0.2.4 itself doesn't, so its missing image has another cause.)

Closing, and thanks for #3974.

<!-- gh-comment-id:6474241388 --> @noonghunna commented on GitHub (Oct 28, 2026): Fixed upstream in d398f353 (the change from #3974): `docker/build.sh` now stages the nested `tools/` scripts on both branches, `':(glob)tools/**/*.py'` with git and `find tools -name '*.py'` without. So `tools/dsv41/` reaches the build context. It's in v0.2.7, and the published `0.2.7-cuda13` image serves fine for us. On the question above: yes, as far as I can tell. ghcr.io has `cuda13` images for 0.2.1 to 0.2.3 and 0.2.7, and none in between. 0.2.4.1, 0.2.4.2, 0.2.5 and 0.2.6 all carry the change that broke the build. (0.2.4 itself doesn't, so its missing image has another cause.) Closing, and thanks for #3974.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Niko1221/Strata#1778
No description provided.