Skip to content

fix(jenkins-ps3-k8s): render ps3-clouds without YAML aliases (JCasC reload)#94

Merged
nogueiraanderson merged 1 commit into
mainfrom
jenkins-ps3-clouds-no-yaml-aliases
Jun 2, 2026
Merged

fix(jenkins-ps3-k8s): render ps3-clouds without YAML aliases (JCasC reload)#94
nogueiraanderson merged 1 commit into
mainfrom
jenkins-ps3-clouds-no-yaml-aliases

Conversation

@nogueiraanderson
Copy link
Copy Markdown
Collaborator

Bug

  • The generated ps3-clouds configScript carried 81 YAML anchors/aliases (PyYAML emits them for repeated nodes). JCasC (SnakeYAML) caps aliases at 50, so the live reload threw ConfiguratorException and the controller kept its prior, identical in-memory clouds. No outage, but a fresh boot would fail to load the clouds. Caught on the ps3 testbed after the static render gates accepted the aliased form.

Fix

  • render-clouds.py now disables anchors/aliases (spells repeated nodes out fully, like the hand-written original) and adds a no-alias drift gate.
  • Regenerated ps3-clouds anchor-free. Zero aliases, semantically identical (4 clouds, 70 slots, 0 effective diff vs the running config).
  • ADR 0029 records the no-YAML-aliases requirement.

…eload)

PyYAML emitted anchors/aliases for repeated nodes; the configScript had 81 aliases.
JCasC (SnakeYAML) caps aliases at 50, so the live reload threw ConfiguratorException
and the controller kept its old (identical) in-memory clouds. The hand-written
original had none.

- render-clouds.py: ignore_aliases (spell repeated nodes out fully) + a no-alias gate.
- Regenerate ps3-clouds anchor-free (semantically identical: 4 clouds, 70 slots,
  0 effective diff vs the running config).
- ADR 0029: record the no-YAML-aliases requirement.
@nogueiraanderson nogueiraanderson merged commit aba37c5 into main Jun 2, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant