Skip to content

Commit b2b83ef

Browse files
SecAI-Hubclaude
andcommitted
Fix recipe name casing and update tests for kargs schema change
- recipe.yml: name SecAI_OS -> secai_os (Docker requires lowercase stage names) - test_memory_protection.py: kargs_module["append"] -> kargs_module["kargs"] to match the BlueBuild kargs module schema update from previous commit Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 70a457c commit b2b83ef

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

recipes/recipe.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
--- # yaml-language-server: $schema=https://schema.blue-build.org/recipe-v1.json
22

3-
name: SecAI_OS
3+
name: secai_os
44
description: "Offline-first Secure AI appliance (uBlue base) with sealed runtime and defense-in-depth."
55

66
# SECURITY: Base image should be digest-pinned in production.

tests/test_memory_protection.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,22 +48,22 @@ class TestKernelArgs:
4848
def test_init_on_free(self):
4949
recipe = yaml.safe_load(RECIPE_PATH.read_text())
5050
kargs_module = next(m for m in recipe["modules"] if m.get("type") == "kargs")
51-
assert "init_on_free=1" in kargs_module["append"]
51+
assert "init_on_free=1" in kargs_module["kargs"]
5252

5353
def test_init_on_alloc(self):
5454
recipe = yaml.safe_load(RECIPE_PATH.read_text())
5555
kargs_module = next(m for m in recipe["modules"] if m.get("type") == "kargs")
56-
assert "init_on_alloc=1" in kargs_module["append"]
56+
assert "init_on_alloc=1" in kargs_module["kargs"]
5757

5858
def test_zswap_disabled(self):
5959
recipe = yaml.safe_load(RECIPE_PATH.read_text())
6060
kargs_module = next(m for m in recipe["modules"] if m.get("type") == "kargs")
61-
assert "zswap.enabled=0" in kargs_module["append"]
61+
assert "zswap.enabled=0" in kargs_module["kargs"]
6262

6363
def test_swap_disabled(self):
6464
recipe = yaml.safe_load(RECIPE_PATH.read_text())
6565
kargs_module = next(m for m in recipe["modules"] if m.get("type") == "kargs")
66-
assert "systemd.swap=0" in kargs_module["append"]
66+
assert "systemd.swap=0" in kargs_module["kargs"]
6767

6868

6969
class TestTEEDetection:

0 commit comments

Comments
 (0)