Skip to content

fix(ci): deploy plugin to all matching pods and fix language-file counter#13

Merged
slydlake merged 1 commit into
mainfrom
fix/deploy-script-multi-pod
Jun 13, 2026
Merged

fix(ci): deploy plugin to all matching pods and fix language-file counter#13
slydlake merged 1 commit into
mainfrom
fix/deploy-script-multi-pod

Conversation

@slydlake

Copy link
Copy Markdown
Contributor

Summary

  • deploy-plugin-to-wordpress-pod.sh now deploys to every running pod matching the selector, not just the first one. Scaled deployments (multiple replicas) were left with a partially-deployed plugin, causing wp-admin to flap between old/new code depending on which pod served the request.
  • generate-language-files.sh used ((compiled++)), whose post-increment return value is 0 on the first iteration and aborts the script under set -e before any .mo file is compiled.

Test plan

  • Reviewed script logic by inspection (no CI-runnable test for these deploy scripts)

…nter

The deploy script previously targeted a single pod even when the
selector matched multiple replicas, so a scaled deployment ended up
with the plugin only partially deployed and wp-admin flapping between
old and new code depending on which pod served the request.

generate-language-files.sh used `((compiled++))`, whose post-increment
return value is 0 on the first iteration and aborts the script under
`set -e` before any .mo file is compiled.
@slydlake slydlake merged commit 9e3f9f0 into main Jun 13, 2026
23 checks passed
@slydlake slydlake deleted the fix/deploy-script-multi-pod branch June 13, 2026 22:59
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