1
0
mirror of https://github.com/containers/ramalama.git synced 2026-02-05 06:46:39 +01:00
Commit Graph

3621 Commits

Author SHA1 Message Date
Mike Bonnet
08199e6be7 disable "ollama pull" tests
"ollama pull" commands are consistently failing with "Error: digest mismatch". This appears
to be a problem with ollama, and not related to ramalama. Disable/ignore the failing tests
until the issue is resolved.

Signed-off-by: Mike Bonnet <mikeb@redhat.com>
2026-01-08 15:02:38 -08:00
Oliver Walsh
41148c2aa4 Merge pull request #2284 from olliewalsh/rpm_build_setuptools
Stop pinning setuptools version in pyproject.toml
2026-01-07 19:00:20 +00:00
Oliver Walsh
3e2fd1f201 Stop pinning setuptools version in pyproject.toml
Pinning the setuptools version to >=61 breaks rpm builds on centos-stream9
where the setuptools version is older.
The rpm builds are using https://src.fedoraproject.org/rpms/pyproject-rpm-macros
which should work with pyproject.yaml even when the setuptools version does not.

The setuptools/pyproject docs do not mention pinning the setuptools version,
all of the example just show an unversioned dependence on 'setuptools'.

Signed-off-by: Oliver Walsh <owalsh@redhat.com>
2026-01-07 18:17:14 +00:00
Oliver Walsh
a5799dd25f Merge pull request #2283 from olliewalsh/macos_missing_timeout
ci: install coreutils on macos
2026-01-07 17:41:22 +00:00
Oliver Walsh
193e31cb4c ci: install coreutils on macos
Signed-off-by: Oliver Walsh <owalsh@redhat.com>
2026-01-07 17:34:15 +00:00
Oliver Walsh
b186dbb9dc Merge pull request #2278 from rhatdan/llama.cpp
Bump the version of whisper.cpp and llama.cpp
2026-01-07 16:47:56 +00:00
Daniel J Walsh
e12b515caf Merge pull request #2281 from olliewalsh/llamacpp_cpu_all_variants
Set GGML_CPU_ALL_VARIANTS for llama-cpp builds
2026-01-07 10:12:05 -05:00
Daniel J Walsh
0ac66c5ccd Merge pull request #2227 from telemaco/e2e-pytest-pull-cmd
Add e2e pytest test for pull command
2026-01-07 10:11:37 -05:00
Daniel J Walsh
4d1d03fe97 Bump the version of whisper.cpp and llama.cpp
Fixes: https://github.com/containers/ramalama/issues/2277

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2026-01-07 10:07:58 -05:00
Daniel J Walsh
05fe53aa2a Merge pull request #2280 from jwieleRH/type
Add type annotations for BaseEngine and info_cli
2026-01-07 10:05:03 -05:00
Daniel J Walsh
bd40af6b23 Update ramalama/engine.py
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>

Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
2026-01-07 10:04:53 -05:00
Oliver Walsh
2a93d80078 Set GGML_CPU_ALL_VARIANTS for llama-cpp builds
Builds shared library backends for multiple CPU variants and loads
the appropriate variant at runtime.

Signed-off-by: Oliver Walsh <owalsh@redhat.com>
2026-01-07 13:48:03 +00:00
Michael Engel
d5daa44b8c Merge pull request #2279 from containers/bats-fix-artifact-directory
056-artifact.bats: fix the expected return code for OSErrors
2026-01-07 09:39:01 +01:00
John Wiele
514e891b5b Add type annotations for BaseEngine and info_cli
Create BaseEngineArgsType Protocol to properly type engine initialization
arguments.

Add DefaultArgsType annotation to info_cli function.

This resolves annotation-unchecked notes from mypy type checking.

Fix port handling in Engine.add_port_option to support both string and
int types.

Signed-off-by: John Wiele <jwiele@redhat.com>
Assisted-by: Claude Code <noreply@anthropic.com>
2026-01-07 01:07:43 -05:00
Mike Bonnet
835a87ede1 056-artifact.bats: fix the expected return code for OSErrors
Passing a directory instead of a file to "ramalama convert" results in a IsADirectoryError which is a
subclass of OSError (synonym of IOError). IOErrors result in a return code of 5 (EIO).

Signed-off-by: Mike Bonnet <mikeb@redhat.com>
2026-01-06 11:50:42 -08:00
Daniel J Walsh
3afda31e80 Merge pull request #2241 from ramalama-labs/chore/typing-cleanup
chore typing and some bug fixes
2026-01-06 10:26:38 -05:00
Daniel J Walsh
865d5f1d6e Merge pull request #2248 from rhatdan/quadlet
Fix quadlet generation for multi-part models
2026-01-06 10:20:56 -05:00
Daniel J Walsh
2384a68724 Merge pull request #2272 from jwieleRH/toml
Update maintainers in pyproject.toml.
2026-01-06 10:20:37 -05:00
Daniel J Walsh
14c263d25e Merge pull request #2273 from containers/konflux/mintmaker/main/docsite-lockfile-maintenance
chore(deps): lock file maintenance
2026-01-06 10:19:52 -05:00
Daniel J Walsh
70be950fdb Merge pull request #2274 from nathan-weinberg/claude
chore: add CLAUDE.md
2026-01-06 10:19:33 -05:00
Daniel J Walsh
b9f671646e Apply suggestions from code review
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>

Co-authored-by: sourcery-ai[bot] <58596630+sourcery-ai[bot]@users.noreply.github.com>
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
2026-01-06 10:19:20 -05:00
Daniel J Walsh
84ce0b72fd Merge pull request #2276 from containers/konflux/mintmaker/main/registry.access.redhat.com-ubi9-ubi-9.x
chore(deps): update registry.access.redhat.com/ubi9/ubi docker tag to v9.7-1767674301
2026-01-06 10:17:18 -05:00
red-hat-konflux-kflux-prd-rh03[bot]
76a912d08f chore(deps): update registry.access.redhat.com/ubi9/ubi docker tag to v9.7-1767674301
Signed-off-by: red-hat-konflux-kflux-prd-rh03 <206760901+red-hat-konflux-kflux-prd-rh03[bot]@users.noreply.github.com>
2026-01-06 12:40:56 +00:00
Ian Eaves
3e80552b7d rebase
Signed-off-by: Ian Eaves <ian.k.eaves@gmail.com>
2026-01-05 14:08:55 -06:00
Ian Eaves
55ea43aff2 ci suggestions
Signed-off-by: Ian Eaves <ian.k.eaves@gmail.com>
2026-01-05 13:51:51 -06:00
Ian Eaves
6e217d10db chore typing and some bug fixes
Signed-off-by: Ian Eaves <ian.k.eaves@gmail.com>
2026-01-05 13:51:48 -06:00
Roberto Majadas
2d4050b568 Add e2e pytest test for pull command
- Migrate to e2e pytest the `test/system/050-pull.bats` bat test.
- Ollama fixture has been added to test on a insolated ollama instance
- The tests cover a wide range of functionalities, including:
  - Pulling models from different transports like Ollama, Hugging Face, OCI, and local files.
  - Verifying the use of local caches from Ollama and Hugging Face to speed up subsequent pulls.
  - Testing error handling for non-existent models and endianness mismatches.
  - Ensuring proper interaction with authenticated OCI registries for pulling private models.
  - Validating the handling of models with multiple layers and references.

Signed-off-by: Roberto Majadas <rmajadas@redhat.com>
2026-01-05 19:02:41 +01:00
Nathan Weinberg
059945f3d8 chore: add CLAUDE.md
a committed CLAUDE.md can ensure more consistent
behavior for contributors utilizing Claude Code
or other supported agents for ramalama development

Signed-off-by: Nathan Weinberg <nweinber@redhat.com>
2026-01-05 12:39:47 -05:00
red-hat-konflux-kflux-prd-rh03[bot]
265fc14cdb chore(deps): lock file maintenance
Signed-off-by: red-hat-konflux-kflux-prd-rh03 <206760901+red-hat-konflux-kflux-prd-rh03[bot]@users.noreply.github.com>
2026-01-05 00:41:45 +00:00
John Wiele
fe31ba5750 Update maintainers in pyproject.toml.
Update email address for Dan Walsh. Add Mike Bonnet. Subtract Eric
Curtin.

Signed-off-by: John Wiele <jwiele@redhat.com>
2026-01-03 12:12:46 -05:00
Daniel J Walsh
07143fb585 Fix quadlet generation for multi-part models
Add support for generating multiple Mount= declarations in quadlet files
for multi-part models (e.g., models split into multiple GGUF files).

Changes:
- Add _get_all_model_part_paths() method to Transport class to retrieve
  all parts of a multi-part model from the ref file
- Update Quadlet class to accept and store model_parts list
- Modify _gen_model_volume() to generate Mount= entries for each part
- Update generate_container_config() to pass model parts to quadlet
- Add test case for multi-part model quadlet generation

The fix ensures that when generating quadlet files for models like
gpt-oss-120b that are split across multiple files, all parts are
properly mounted into the container with correct src/dest paths.

Fixes #2017

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2026-01-02 11:59:55 -05:00
Daniel J Walsh
005b91691e Merge pull request #2267 from telemaco/e2e-pytest-convert-cmd
Add e2e pytest test for convert command
2026-01-02 11:58:37 -05:00
Roberto Majadas
ff87990058 Add e2e pytest test for convert command
- Migrate to e2e pytest the `test/system/055-convert.bats` bat test.

Signed-off-by: Roberto Majadas <rmajadas@redhat.com>
2025-12-29 18:22:59 +01:00
Daniel J Walsh
7630400864 Merge pull request #2268 from telemaco/e2e-pytest-info-cmd
Add e2e pytest test for info command
2025-12-29 09:35:23 -05:00
Daniel J Walsh
25b98cd3ac Merge pull request #2271 from containers/konflux/mintmaker/main/docsite-lockfile-maintenance
chore(deps): lock file maintenance
2025-12-29 09:32:43 -05:00
Daniel J Walsh
cdf389e669 Merge pull request #2270 from containers/konflux/references/main
chore(deps): update konflux references to 0b10508
2025-12-29 09:32:18 -05:00
red-hat-konflux-kflux-prd-rh03[bot]
2c4ca2e963 chore(deps): lock file maintenance
Signed-off-by: red-hat-konflux-kflux-prd-rh03 <206760901+red-hat-konflux-kflux-prd-rh03[bot]@users.noreply.github.com>
2025-12-29 00:41:56 +00:00
red-hat-konflux-kflux-prd-rh03[bot]
8c96e531b8 chore(deps): update konflux references to 0b10508
Signed-off-by: red-hat-konflux-kflux-prd-rh03 <206760901+red-hat-konflux-kflux-prd-rh03[bot]@users.noreply.github.com>
2025-12-27 08:37:51 +00:00
Roberto Majadas
55b0e0ebac Add e2e pytest test for info command
- Migrate to e2e pytest the `test/system/050-info.bats` bat test.

Signed-off-by: Roberto Majadas <rmajadas@redhat.com>
2025-12-23 17:48:09 +01:00
Daniel J Walsh
5a3d77ee13 Merge pull request #2259 from rhatdan/silence-cuda-warnings
Add --quiet/-q flag to silence warnings
2025-12-22 14:08:26 -05:00
Daniel J Walsh
5f985008e3 Merge pull request #2264 from containers/konflux/mintmaker/main/docsite-lockfile-maintenance
chore(deps): lock file maintenance
2025-12-22 09:42:28 -05:00
Daniel J Walsh
7a31e55ec3 Merge pull request #2266 from containers/konflux/mintmaker/main/registry.access.redhat.com-ubi9-ubi-9.x
chore(deps): update registry.access.redhat.com/ubi9/ubi docker tag to v9.7-1766364927
2025-12-22 09:41:57 -05:00
red-hat-konflux-kflux-prd-rh03[bot]
4a9e805c48 chore(deps): update registry.access.redhat.com/ubi9/ubi docker tag to v9.7-1766364927
Signed-off-by: red-hat-konflux-kflux-prd-rh03 <206760901+red-hat-konflux-kflux-prd-rh03[bot]@users.noreply.github.com>
2025-12-22 08:34:07 +00:00
red-hat-konflux-kflux-prd-rh03[bot]
1a308469e0 chore(deps): lock file maintenance
Signed-off-by: red-hat-konflux-kflux-prd-rh03 <206760901+red-hat-konflux-kflux-prd-rh03[bot]@users.noreply.github.com>
2025-12-22 00:37:06 +00:00
Daniel J Walsh
e4ddee365c Merge pull request #2263 from containers/konflux/references/main
chore(deps): update konflux references
2025-12-20 08:03:24 -05:00
red-hat-konflux-kflux-prd-rh03[bot]
40254a5cf7 chore(deps): update konflux references
Signed-off-by: red-hat-konflux-kflux-prd-rh03 <206760901+red-hat-konflux-kflux-prd-rh03[bot]@users.noreply.github.com>
2025-12-20 08:30:55 +00:00
Oliver Walsh
0bec66e377 Merge pull request #2251 from containers/fix-ci-bats-cuda
ci: fix podman-in-podman setup for nvidia GPUs
2025-12-19 20:26:05 +00:00
Mike Bonnet
822af7cbf8 040-serve.bats: llama-stack: only pass "--dri off" if /dev/dri is not present
When testing with nvidia hardware, passing "--dri off" prevents access to the hardware
and causes the cuda image to crash.

Signed-off-by: Mike Bonnet <mikeb@redhat.com>
2025-12-19 11:31:43 -08:00
Mike Bonnet
27628c2fe5 002-bench.bats: only skip if running with --nocontainer
llama-bench is included in the ramalama images, it doesn't need to be
present in the host environment.

Signed-off-by: Mike Bonnet <mikeb@redhat.com>
2025-12-19 11:31:25 -08:00
Mike Bonnet
1422b512ee ci: fix podman-in-podman setup for nvidia GPUs
To run CI in Konflux we're using podman-in-podman to provide fine-grained control
over the test environment. Previously we were deleting the CDI hooks from the outer
podman environment because they were unnecessary.

Recent changes to the cuda image require the symlinks created by the hooks to be
present, so mount /usr/bin/nvidia-container-runtime and /usr/bin/nvidia-cdi-hook
into the outer podman environment and re-enable the hooks.

Signed-off-by: Mike Bonnet <mikeb@redhat.com>
2025-12-19 11:31:24 -08:00