From eab808d3e013a8f76f174038c7afe60bfdeb4eae Mon Sep 17 00:00:00 2001 From: Dandaedre Date: Sat, 19 Sep 2026 07:39:32 +0200 Subject: [PATCH] JKF update --- Jenkinsfile | 6 +++++- README.md | 5 +++-- TASKS.md | 5 +++-- 3 files changed, 11 insertions(+), 5 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 96c7be3..308ff8b 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -81,7 +81,11 @@ pipeline { uv sync --frozen ./scripts/build.sh uv run python -m unittest discover -s tests -v - RAVENOUS_CHARACTER_JSON="${BUILD_DIR}/example-character.json" node tests/test_character_io.mjs + if command -v node >/dev/null 2>&1; then + RAVENOUS_CHARACTER_JSON="${BUILD_DIR}/example-character.json" node tests/test_character_io.mjs + else + echo 'Node is not installed on this agent; skipping the optional Roll20 Mod simulator test.' + fi ./scripts/build.sh --check test -f "${BUILD_DIR}/ravenous.html" diff --git a/README.md b/README.md index 8c71024..3b13c5f 100644 --- a/README.md +++ b/README.md @@ -156,8 +156,9 @@ python tools/generate_character.py --seed 42 --output /tmp/ravenous-example.json Une même graine produit exactement le même JSON, ce qui permet de reproduire un échec d'import. Sans `--output`, le JSON est écrit sur la sortie standard. La CI -génère et archive également `build/example-character.json`, puis l'importe dans -le simulateur de l'API Mod. +génère, valide et archive également `build/example-character.json`. Elle +l'importe dans le simulateur de l'API Mod lorsque Node est disponible sur +l'agent ; l'absence de ce runtime n'empêche pas la construction de la feuille. Le script `./scripts/build.sh` génère automatiquement ce même exemple dans son dossier de sortie, et `./scripts/build.sh --check` vérifie également son contenu. diff --git a/TASKS.md b/TASKS.md index d6954f7..481538c 100644 --- a/TASKS.md +++ b/TASKS.md @@ -28,8 +28,9 @@ parser, browser, or chat. - [x] Add structured start/end-turn reminders to temporary effects, including turn countdowns, expiration notices, and copying reminder configuration from consumables. Keep mechanical changes manual. -- [x] Generate a deterministic randomized character JSON fixture covering all - repeating sections and import it through the Mod simulator in Jenkins. +- [x] Generate, validate, and archive a deterministic randomized character JSON + fixture covering all repeating sections in Jenkins. Import it through the Mod + simulator when Node is available on the build agent. ## Next: Roll20 smoke test