Repository navigation
Conversation
scripts/semaphore-launch.py refuses a --set the template's survey does not declare, and neither Deploy weft Front Door nor Deploy weft Staging declared weft_force_redeploy. So a host already healthy on its pin could not be redeployed through the launcher: the #1252 backup settings would never render on a front door whose pin had not moved, and staging's re-launch after weft_workspace_id is set (agent-cloud#1255, step 9) would leave a workspace that had passed its first deploy on the old settings. Both surveys gain the field, default "false", the same shape as force_overwrite; the playbook already reads it with `| bool`.
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
scripts/semaphore-launch.pyrefuses a--setthat the template's survey does not declare (build_task, "Not survey fields of ..."). Neither Deploy weft Front Door nor Deploy weft Staging declaredweft_force_redeploy, sotasks/weft-deploy.yml's redeploy switch could not be reached through the launcher. jestyr27 flagged this as unverified on #1255.What it blocks:
weft_workspace_idis set, staging is re-launched with the same commit. If the workspace passed its first deploy, it is left alone and the id never renders.Both surveys gain
weft_force_redeploy, a string defaulting to"false", the same shape asforce_overwrite. The playbook already reads it asweft_force_redeploy | default(false) | bool. The launcher fills the default, so a launch that doesn't set it behaves as before.After merge, the two
(Dev)surveys still need publishing through Publish Semaphore Template Surveys (Dev).Checks run locally:
yamllint -c .yamllint.yml platform/semaphore/templates.yml(no errors; the three line-length warnings are on existing lines), and pytest over everyplatform/testsfile touching templates, surveys, Semaphore, the launcher and weft (38 files, all passed). Not run locally: ansible-lint, shellcheck and BATS. No playbook or shell changed.Summary by CodeRabbit
trueto request redeployment of hosts already on the selected pin or release; it defaults tofalse.