Upgrade the Narratio role to version 2.1.0

This commit is contained in:
2026-09-16 19:24:30 +00:00
parent eeb1105590
commit 292d8669e7
8 changed files with 59 additions and 10 deletions

View File

@@ -56,8 +56,8 @@ run_converge "$baseline_repeat_log" "${baseline_args[@]}"
require_clean_recap "$baseline_repeat_log"
selected_version_log="$test_tmp/selected-version.log"
run_converge "$selected_version_log" "${baseline_args[@]}" -e 'narratio_version=v2.0.0'
/usr/local/bin/narratio version | grep -Fx 'narratio v2.0.0'
run_converge "$selected_version_log" "${baseline_args[@]}" -e 'narratio_version=v2.1.0'
/usr/local/bin/narratio version | grep -Fx 'narratio v2.1.0'
custom_go_binary="$test_tmp/go"
custom_go_invocations="$test_tmp/go-invocations.log"
@@ -73,7 +73,7 @@ run_converge "$recovery_log" "${baseline_args[@]}" \
-e '{"narratio_manage_build_dependencies": false}' \
-e "narratio_go_binary=$custom_go_binary"
grep -q . "$custom_go_invocations"
/usr/local/bin/narratio version | grep -Fx 'narratio v2.0.0'
/usr/local/bin/narratio version | grep -Fx 'narratio v2.1.0'
"$ansible_playbook" -i "$inventory" "$verify_baseline"
recovery_repeat_log="$test_tmp/recovery-repeat.log"
run_converge "$recovery_repeat_log" "${baseline_args[@]}" \
@@ -83,7 +83,11 @@ require_clean_recap "$recovery_repeat_log"
representative_log="$test_tmp/representative.log"
"$ansible_playbook" -i "$inventory" "$representative" | tee "$representative_log"
"$ansible_playbook" -i "$inventory" "$verify_config"
synthetic_notarius_api_key=notarius-representative-synthetic-value
representative_validation_log="$test_tmp/representative-validation.log"
NARRATIO_TEST_NOTARIUS_API_KEY="$synthetic_notarius_api_key" \
"$ansible_playbook" -i "$inventory" "$verify_config" | tee "$representative_validation_log"
! grep -Fq "$synthetic_notarius_api_key" "$representative_log" "$representative_validation_log"
representative_repeat_log="$test_tmp/representative-repeat.log"
"$ansible_playbook" -i "$inventory" "$representative" | tee "$representative_repeat_log"
require_clean_recap "$representative_repeat_log"

View File

@@ -25,6 +25,9 @@
narratio_seriatim_report: false
narratio_audita_modules: []
narratio_audita_report: false
narratio_notarius_llm_api_key: NARRATIO_TEST_NOTARIUS_API_KEY
narratio_notarius_resume: false
narratio_notarius_chunk_cache: auto
narratio_normalize_output_path: null
narratio_trim_enabled: false
narratio_trim_bounds_render_debug: false

View File

@@ -3,6 +3,19 @@
hosts: localhost
gather_facts: false
tasks:
- name: Read the baseline pipeline
become: true
ansible.builtin.slurp:
src: /usr/local/etc/narratio/pipeline.yml
register: narratio_baseline_pipeline
- name: Verify null Notarius fields are omitted
ansible.builtin.assert:
that:
- "'notarius' not in narratio_pipeline"
vars:
narratio_pipeline: "{{ narratio_baseline_pipeline.content | b64decode | from_yaml }}"
- name: Validate the pipeline as the Narratio account
become: true
become_user: narratio

View File

@@ -25,6 +25,9 @@
- narratio_pipeline.seriatim.report == false
- narratio_pipeline.audita.modules == []
- narratio_pipeline.audita.report == false
- narratio_pipeline.notarius.llm_api_key == 'NARRATIO_TEST_NOTARIUS_API_KEY'
- narratio_pipeline.notarius.resume == false
- narratio_pipeline.notarius.chunk_cache == 'auto'
- narratio_pipeline.trim.enabled == false
- narratio_pipeline.trim.bounds.render_debug == false
- narratio_pipeline.render.enabled == false
@@ -47,4 +50,6 @@
- validate
- --config
- /usr/local/etc/narratio/pipeline.yml
environment:
NARRATIO_TEST_NOTARIUS_API_KEY: "{{ lookup('ansible.builtin.env', 'NARRATIO_TEST_NOTARIUS_API_KEY') }}"
changed_when: false