Skip to content

fix: use compact JSON in ANC hotfix injection#8410

Merged
Devinwong merged 1 commit into
mainfrom
devinwon/anc-hotfix-compact-json
Apr 27, 2026
Merged

fix: use compact JSON in ANC hotfix injection#8410
Devinwong merged 1 commit into
mainfrom
devinwon/anc-hotfix-compact-json

Conversation

@Devinwong

Copy link
Copy Markdown
Collaborator

Summary

Uses compact JSON serialization (separators=(',', ':')) in hotfix/anc_hotfix_generate.py so the injected content matches the format of hotfix/anc-hotfix-version.json exactly.

Before: {"version": "202504.27.0"} (space after colon)
After: {"version":"202504.27.0"} (compact, matches source file)

This ensures idempotent regeneration — re-running the script produces identical output.

Follow-up to #8405.

Use json.dumps separators=(',', ':') to produce compact JSON
without spaces, matching the format in anc-hotfix-version.json
for consistent idempotent regeneration.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@Devinwong Devinwong merged commit 05e4149 into main Apr 27, 2026
19 checks passed
@Devinwong Devinwong deleted the devinwon/anc-hotfix-compact-json branch April 27, 2026 17:55

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR makes the ANC hotfix injection script emit compact JSON so the injected aks-node-controller-hotfix.json content matches hotfix/anc-hotfix-version.json formatting exactly, ensuring idempotent regeneration in the GitHub Action flow introduced in #8405.

Changes:

  • Serialize the injected hotfix JSON using compact separators (',', ':') to remove whitespace after :.

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.

3 participants