Skip to content

fix(deploy): a stray apostrophe stopped every update before its migrations (#20693) - #20697

Closed
mrveiss wants to merge 5 commits into
mainfrom
issue-20693-migration-quote
Closed

mrveiss wants to merge 5 commits into
mainfrom
issue-20693-migration-quote

Conversation

@mrveiss

@mrveiss mrveiss commented Nov 2, 2026

Copy link
Copy Markdown
Owner

Thinking Path

#20693: every builtin update since 2026-11-02 stopped its backend play before migrations, so new migrations never reached the node and Company OS answers 500. An apostrophe in a shell comment (libpq's own variables, from #19812) makes Ansible's argument splitter refuse the whole include when it loads, even where that task's when is false. The pre-migration backup hasn't been running either.

What Changed

  • The apostrophe is gone from _shared/tasks/pre_migration_backup.yml. Comment wording only.
  • tools/lint/check_ansible_free_form_args.py runs Ansible's own split_args over every free-form block in the Ansible tree, with a known-bad control and a floor on the number of blocks.
  • A small workflow runs it on any Ansible change, using the fleet's pinned ansible-core. It isn't in the role-facts workflow because that one is scoped to far fewer paths.

Refs #20693. Not done here:

  • The update reporting failed when the migration sequence fails, which goes to its own linked issue.
  • The host criterion: this reaches the node through the builtin updater, and nothing has been applied by hand.

Verification

  • check_ansible_free_form_args.py run locally with ansible-core 2.17: all blocks parse in this tree, and the file from origin/main is refused.
  • repo_tests/ansible_free_form_args_20693_test.py passes.
  • The new workflow hasn't run yet. No playbook was run.

Model Used

Claude Opus 5.5

@mrveiss mrveiss added the phase:M1.4 Wizard and SLM: choose a mode, apply it, default models work label Nov 2, 2026
@coderabbitai

coderabbitai Bot commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 22 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration
Commits

Reviewing files that changed from the base of the PR and between 1416e3d and c6bcd79.

Files selected for processing: 4
  • .github/workflows/ansible-free-form-args.yml
  • autobot-slm-backend/ansible/_shared/tasks/pre_migration_backup.yml
  • repo_tests/ansible_free_form_args_20693_test.py
  • tools/lint/check_ansible_free_form_args.py
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@mrveiss

mrveiss commented Nov 2, 2026

Copy link
Copy Markdown
Owner Author

Code review on PR #20697 (head 39de488): approve.

Read the diff; not run. One comment word in pre_migration_backup.yml removes the apostrophe. check_ansible_free_form_args.py uses Ansible's own splitter with a block floor, and refuses invalid YAML. Vault and unknown-tag files are skipped, by design. Refs #20693 is right: reporting a migration failure and the host check remain.

@github-actions

github-actions Bot commented Nov 2, 2026

Copy link
Copy Markdown
Contributor

Notice: 29 open PRs — past the runaway threshold (25)

This is not a request to defer this PR. There is no cap on open PRs (#19397) -- nothing blocks opening or pushing a PR.

This notice only means the count is high enough to be worth a glance for a runaway — something opening PRs in a loop, or a merge pipeline that has stalled so nothing is draining.

Currently open:

If the queue is draining normally, ignore this. Otherwise:

  1. Check whether CI is dispatching at all — see the ci-dispatch-watchdog status on these PRs
  2. Approved PRs land through the merge train the coordinator sequences (merge commits, never squash) -- check the open chore(merge-train) PR is moving, not each PR on its own
  3. Look for a loop opening near-identical PRs

Warn-only runaway detector — .github/workflows/pr-queue-gate.yml. It never blocks a merge.

@mrveiss

mrveiss commented Nov 3, 2026

Copy link
Copy Markdown
Owner Author

Landed in the merge train (PR #20691) as 29ed803: frozen head 39de488 is an ancestor of that merge. This PR's later head c6bcd79 only merged main, with 0 non-merge commits since.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

phase:M1.4 Wizard and SLM: choose a mode, apply it, default models work

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant