fix(tests): name the peer cache priming task statically #52
No reviewers
Labels
No labels
bug
cannot reproduce
duplicate
enhancement
help wanted
invalid
need info
need triage
need verification
not a bug
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
claudiomaradonna/castrum!52
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/peer-derivation-task-name"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Why
The
peer_derivationgate, one of the checksmake checkruns beforeevery push and on the forge, proves how
firewall-applyworks out whichcluster peers its firewall admits. It first primes a fact cache from a
small fixture playbook.
On every run, that fixture printed a template error,
'fixture_host' is undefined, although the gate passed. Everyone whoreads
make check's output meets it, and has to stop to tell it from areal failure, which hides a real template error in the same place. The
fixture's task was named with its own loop variable, which Ansible
templates before the loop defines it.
What changed
Before, the priming task printed a template error in every
make check.Now its name is static, "Cache each fixture host's default route", and
each item still prints its host; the gate captures the priming run's
output and fails when it holds a template error. The change is in
tests/fixtures/peer_derivation/prime.ymlandtests/gates/check_peer_derivation.sh.How to verify
Have the toolchain CONTRIBUTING sets up, run
from the clone's root.
On
mainthe gate passes and prints:On the branch:
prints
0, and the gate still passes.Checks:
make checkpassed on the tip with no template error in itsoutput; the gate as changed fails on
mainwith "FAIL: priming the factcache hit a template error". Not tried:
make test, since podman wasmissing where the change was made; the change touches no role or
scenario.